forked from idaholab/moose
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrea Rovinelli
committed
Dec 2, 2020
1 parent
87beb7f
commit 0cef780
Showing
6 changed files
with
133 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
test/tests/executioners/nl_pingpong/nonlinear_residual_pingpong.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
nx = 4 | ||
ny = 4 | ||
xmin = -1 | ||
xmax = 1 | ||
ymin = -1 | ||
ymax = 1 | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
order = FIRST | ||
family = LAGRANGE | ||
initial_condition = 0.1 | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./diff] | ||
type = Diffusion | ||
variable = u | ||
[../] | ||
[./power] | ||
type = PReaction | ||
variable = u | ||
coefficient = 0.2 | ||
power = -5 | ||
# Comment out this will make fixed point iteration converged in one iteration. | ||
# However, this makes the solving diverge and require a proper initial condition (>1.00625). | ||
vector_tags = 'previous' | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./left] | ||
type = VacuumBC | ||
variable = u | ||
boundary = left | ||
[../] | ||
|
||
[./right] | ||
type = NeumannBC | ||
variable = u | ||
boundary = right | ||
value = 10 | ||
[../] | ||
[] | ||
|
||
[Postprocessors] | ||
[./unorm] | ||
type = ElementL2Norm | ||
variable = u | ||
[../] | ||
[] | ||
|
||
[Problem] | ||
type = FixedPointProblem | ||
fp_tag_name = 'previous' | ||
[] | ||
|
||
[Executioner] | ||
type = FixedPointSteady | ||
nl_rel_tol = 1e-50 | ||
nl_abs_tol = 1e-15 | ||
nl_max_its = 50 | ||
line_search = none | ||
n_max_nonlinear_pinpong = 2 | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Tests] | ||
[./nl_pingpong] | ||
type = RunApp | ||
input = 'nonlinear_residual_pingpong.i' | ||
expect_out = "Nonlinear solve did not converge due to DIVERGED_LINE_SEARCH" | ||
requirement = 'MOOSE shall kill execution when non linear residual pinpong is detected.' | ||
issues = '#16376' | ||
design = 'FEProblemSolve.md' | ||
[../] | ||
[] |