-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28321 from lindsayad/auto-multi-pre-24690
Automatically setup multiple preconditioners for Newton
- Loading branch information
Showing
8 changed files
with
148 additions
and
24 deletions.
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
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
96 changes: 96 additions & 0 deletions
96
test/tests/misc/multiple-nl-systems/different-vars-per-system.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,96 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 1 | ||
nx = 20 | ||
[] | ||
|
||
[Problem] | ||
nl_sys_names = 'u v' | ||
[] | ||
|
||
[Variables] | ||
[u] | ||
solver_sys = 'u' | ||
[] | ||
[v] | ||
solver_sys = 'v' | ||
[] | ||
[w] | ||
solver_sys = 'u' | ||
[] | ||
[] | ||
|
||
[Kernels] | ||
[diff_u] | ||
type = Diffusion | ||
variable = u | ||
[] | ||
[diff_v] | ||
type = Diffusion | ||
variable = v | ||
[] | ||
[force] | ||
type = CoupledForce | ||
variable = v | ||
v = u | ||
[] | ||
[diff_w] | ||
type = Diffusion | ||
variable = w | ||
[] | ||
[] | ||
|
||
[BCs] | ||
[left_u] | ||
type = DirichletBC | ||
variable = u | ||
boundary = left | ||
value = 0 | ||
[] | ||
[right_u] | ||
type = DirichletBC | ||
variable = u | ||
boundary = right | ||
value = 1 | ||
[] | ||
[left_v] | ||
type = DirichletBC | ||
variable = v | ||
boundary = left | ||
value = 0 | ||
[] | ||
[right_v] | ||
type = DirichletBC | ||
variable = v | ||
boundary = right | ||
value = 1 | ||
[] | ||
[left_w] | ||
type = DirichletBC | ||
variable = w | ||
boundary = left | ||
value = 0 | ||
[] | ||
[right_w] | ||
type = DirichletBC | ||
variable = w | ||
boundary = right | ||
value = 1 | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = SteadySolve2 | ||
solve_type = 'NEWTON' | ||
petsc_options = '-snes_monitor' | ||
petsc_options_iname = '-pc_type -pc_hypre_type' | ||
petsc_options_value = 'hypre boomeramg' | ||
first_nl_sys_to_solve = 'u' | ||
second_nl_sys_to_solve = 'v' | ||
[] | ||
|
||
[Outputs] | ||
print_nonlinear_residuals = false | ||
print_linear_residuals = false | ||
exodus = true | ||
[] |
Binary file added
BIN
+65.1 KB
test/tests/misc/multiple-nl-systems/gold/different-vars-per-system_out.e
Binary file not shown.
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