forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding user-defined picard convergence postprocessor in PicardSolve i…
- Loading branch information
1 parent
dce9cbf
commit 5099518
Showing
8 changed files
with
188 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+35.1 KB
test/tests/multiapps/picard/gold/picard_custom_postprocessor_out_sub0.e
Binary file not shown.
108 changes: 108 additions & 0 deletions
108
test/tests/multiapps/picard/picard_custom_postprocessor.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,108 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
nx = 10 | ||
ny = 10 | ||
parallel_type = replicated | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
[../] | ||
[] | ||
|
||
[AuxVariables] | ||
[./v] | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./diff] | ||
type = CoefDiffusion | ||
variable = u | ||
coef = 0.1 | ||
[../] | ||
[./force_u] | ||
type = CoupledForce | ||
variable = u | ||
v = v | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./left] | ||
type = DirichletBC | ||
variable = u | ||
boundary = left | ||
value = 0 | ||
[../] | ||
[./right] | ||
type = DirichletBC | ||
variable = u | ||
boundary = right | ||
value = 1 | ||
[../] | ||
[] | ||
|
||
[Postprocessors] | ||
[./unorm_begin] | ||
type = ElementL2Norm | ||
variable = u | ||
execute_on = 'initial timestep_begin' | ||
outputs = none | ||
[../] | ||
[./unorm] | ||
type = ElementL2Norm | ||
variable = u | ||
execute_on = 'initial timestep_end' | ||
[../] | ||
[./unorm_err] | ||
type = RelativeDifferencePostprocessor | ||
value1 = unorm | ||
value2 = unorm_begin | ||
outputs = none | ||
[../] | ||
[./vnorm] | ||
type = ElementL2Norm | ||
variable = v | ||
execute_on = 'initial timestep_end' | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
petsc_options_iname = '-pc_type -pc_hypre_type' | ||
petsc_options_value = 'hypre boomeramg' | ||
picard_max_its = 30 | ||
disable_picard_residual_norm_check = true | ||
picard_custom_pp = unorm_err | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
[] | ||
|
||
[MultiApps] | ||
[./sub] | ||
type = FullSolveMultiApp | ||
input_files = steady_picard_sub.i | ||
no_backup_and_restore = true | ||
[../] | ||
[] | ||
|
||
[Transfers] | ||
[./v_from_sub] | ||
type = MultiAppNearestNodeTransfer | ||
direction = from_multiapp | ||
multi_app = sub | ||
source_variable = v | ||
variable = v | ||
[../] | ||
[./u_to_sub] | ||
type = MultiAppNearestNodeTransfer | ||
direction = to_multiapp | ||
multi_app = sub | ||
source_variable = u | ||
variable = u | ||
[../] | ||
[] |
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