-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Patch to get around issues in linearFV for MSFR sims on the NekRS mesh #32304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a25e1cb
Fix friction type error message in both flow physics
GiudGiud 48e1de4
Add support for symmetry BCs in linear FV flow physics
GiudGiud f166ae2
Remove deprecated MG name from another MG using it as a subMG
GiudGiud 1f11b03
Add an option to contiguously renumber the mesh in the mesh generatio…
GiudGiud 0b74dcb
Cannot use pressure 2 term on symmetry walls
GiudGiud d0915dc
Add test for symmetry BC in physics
GiudGiud d137b02
Address review:
GiudGiud File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
118 changes: 118 additions & 0 deletions
118
...est/tests/finite_volume/ins/channel-flow/linear-segregated/2d-symmetric/channel-physics.i
This file contains hidden or 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,118 @@ | ||
| mu = 2.6 | ||
| rho = 1.2 | ||
| advected_interp_method = 'upwind' | ||
| u_inlet = 1.1 | ||
| half_width = 0.2 | ||
|
|
||
| [Mesh] | ||
| [mesh] | ||
| type = CartesianMeshGenerator | ||
| dim = 2 | ||
| dx = '1.0' | ||
| dy = '${half_width}' | ||
| ix = '30' | ||
| iy = '15' | ||
| subdomain_id = '0' | ||
| [] | ||
| allow_renumbering = false | ||
| [] | ||
|
|
||
| [Problem] | ||
| linear_sys_names = 'u_system v_system pressure_system' | ||
| previous_nl_solution_required = true | ||
| [] | ||
|
|
||
| [Physics] | ||
| [NavierStokes] | ||
| [FlowSegregated/flow] | ||
| velocity_variable = 'vel_x vel_y' | ||
| pressure_variable = 'pressure' | ||
|
|
||
| initial_velocity = '0.5 0 0' | ||
| initial_pressure = '0.2' | ||
|
|
||
| density = ${rho} | ||
| dynamic_viscosity = ${mu} | ||
|
|
||
| inlet_boundaries = 'left' | ||
| momentum_inlet_types = 'fixed-velocity' | ||
| momentum_inlet_functors = '${u_inlet} 0' | ||
|
|
||
| wall_boundaries = 'top bottom' | ||
| momentum_wall_types = 'noslip symmetry' | ||
|
|
||
| outlet_boundaries = 'right' | ||
| momentum_outlet_types = 'fixed-pressure' | ||
| pressure_functors = '1.4' | ||
|
|
||
| orthogonality_correction = false | ||
| pressure_two_term_bc_expansion = true | ||
| momentum_two_term_bc_expansion = true | ||
| momentum_advection_interpolation = ${advected_interp_method} | ||
| [] | ||
| [] | ||
| [] | ||
|
|
||
|
|
||
| [Functions] | ||
| [u_parabolic_profile] | ||
| type = ParsedFunction | ||
| expression = '3/2*${u_inlet}*(1 - pow(y/${half_width}, 2))' # Poiseuille profile | ||
| [] | ||
| [u_parabolic_profile_rz] | ||
| type = ParsedFunction | ||
| expression = '2*${u_inlet}*(1 - pow(y/${half_width}, 2))' # Cylindrical profile | ||
| [] | ||
| [] | ||
|
|
||
| [AuxVariables] | ||
| [vel_exact] | ||
| type = MooseLinearVariableFVReal | ||
| [] | ||
| [] | ||
|
|
||
| [AuxKernels] | ||
| [assign_vel_exact] | ||
| type = FunctionAux | ||
| variable = vel_exact | ||
| function = u_parabolic_profile | ||
| execute_on = TIMESTEP_END | ||
| [] | ||
| [] | ||
|
|
||
| [VectorPostprocessors] | ||
| [outlet_velocity_profile] | ||
| type = SideValueSampler | ||
| variable = 'vel_x vel_exact' | ||
| boundary = 'right' | ||
| sort_by = 'y' | ||
| execute_on = TIMESTEP_END | ||
| [] | ||
| [] | ||
|
|
||
| [Executioner] | ||
| type = SIMPLE | ||
| momentum_l_abs_tol = 1e-12 | ||
| pressure_l_abs_tol = 1e-12 | ||
| momentum_l_tol = 0 | ||
| pressure_l_tol = 0 | ||
| rhie_chow_user_object = 'ins_rhie_chow_interpolator' | ||
| momentum_systems = 'u_system v_system' | ||
| pressure_system = 'pressure_system' | ||
| momentum_equation_relaxation = 0.5 | ||
| pressure_variable_relaxation = 0.3 | ||
| num_iterations = 1000 | ||
| pressure_absolute_tolerance = 1e-10 | ||
| momentum_absolute_tolerance = 1e-10 | ||
| momentum_petsc_options_iname = '-pc_type -pc_hypre_type' | ||
| momentum_petsc_options_value = 'hypre boomeramg' | ||
| pressure_petsc_options_iname = '-pc_type -pc_hypre_type' | ||
| pressure_petsc_options_value = 'hypre boomeramg' | ||
| print_fields = false | ||
| continue_on_max_its = true | ||
| [] | ||
|
|
||
| [Outputs] | ||
| csv = true | ||
| execute_on = timestep_end | ||
| [] |
1 change: 1 addition & 0 deletions
1
.../linear-segregated/2d-symmetric/gold/channel-physics_out_outlet_velocity_profile_0001.csv
This file contains hidden or 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 @@ | ||
| channel_out_outlet_velocity_profile_0001.csv |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.