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 limiter tests Refs idaholab#28891
- Loading branch information
Showing
41 changed files
with
601 additions
and
28 deletions.
There are no files selected for viewing
Binary file removed
BIN
-65 KB
modules/navier_stokes/test/tests/finite_volume/ins/advection-schemes/gold/min_mod.e
Binary file not shown.
Binary file removed
BIN
-65 KB
modules/navier_stokes/test/tests/finite_volume/ins/advection-schemes/gold/quick.e
Binary file not shown.
Binary file removed
BIN
-65 KB
modules/navier_stokes/test/tests/finite_volume/ins/advection-schemes/gold/sou.e
Binary file not shown.
Binary file removed
BIN
-65 KB
modules/navier_stokes/test/tests/finite_volume/ins/advection-schemes/gold/vanLeer.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
114 changes: 114 additions & 0 deletions
114
...stokes/test/tests/finite_volume/limiters/dispersion-test/bottom_left_tri_mesh_advection.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,114 @@ | ||
[GlobalParams] | ||
advected_interp_method = 'min_mod' #average upwind sou min_mod vanLeer quick venkatakrishnan skewness-corrected | ||
velocity_interp_method = 'average' | ||
[] | ||
|
||
[UserObjects] | ||
[rc] | ||
type = INSFVRhieChowInterpolator | ||
u = vel_x | ||
v = vel_y | ||
a_u = vel_x | ||
a_v = vel_y | ||
pressure = pressure | ||
velocity_interp_method = 'rc' | ||
[] | ||
[] | ||
|
||
[Mesh] | ||
[outer_bdy] | ||
type = PolyLineMeshGenerator | ||
points = '0.0 0.0 0.0 | ||
0.0 1.0 0.0 | ||
1.0 1.0 0.0 | ||
1.0 0.0 0.0' | ||
loop = true | ||
[] | ||
[triang] | ||
type = XYDelaunayGenerator | ||
boundary = 'outer_bdy' | ||
add_nodes_per_boundary_segment = 3 | ||
refine_boundary = true | ||
desired_area = 0.02 | ||
[] | ||
[sidesets] | ||
type = SideSetsFromNormalsGenerator | ||
input = triang | ||
normals = '-1 0 0 | ||
1 0 0 | ||
0 -1 0 | ||
0 1 0' | ||
fixed_normal = true | ||
new_boundary = 'left right bottom top' | ||
[] | ||
[] | ||
|
||
[AuxVariables] | ||
[vel_x] | ||
type = INSFVVelocityVariable | ||
initial_condition = 1.0 | ||
[] | ||
[vel_y] | ||
type = INSFVVelocityVariable | ||
initial_condition = 1.0 | ||
[] | ||
[pressure] | ||
type = INSFVPressureVariable | ||
initial_condition = 1.0 | ||
[] | ||
[] | ||
|
||
[Variables] | ||
[scalar] | ||
type = INSFVScalarFieldVariable | ||
two_term_boundary_expansion = false | ||
[] | ||
[] | ||
|
||
[FVKernels] | ||
[scalar_advection] | ||
type = INSFVScalarFieldAdvection | ||
variable = scalar | ||
rhie_chow_user_object = 'rc' | ||
[] | ||
[] | ||
|
||
[FVBCs] | ||
[fv_inflow] | ||
type = NSFVOutflowTemperatureBC | ||
u = vel_x | ||
v = vel_y | ||
backflow_T = 1.0 | ||
rho = 1.0 | ||
cp = 1.0 | ||
variable = scalar | ||
boundary = 'left' | ||
[] | ||
[fv_outflow] | ||
type = NSFVOutflowTemperatureBC | ||
u = vel_x | ||
v = vel_y | ||
backflow_T = 0.0 | ||
rho = 1.0 | ||
cp = 1.0 | ||
variable = scalar | ||
boundary = 'right top bottom' | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
solve_type = 'NEWTON' | ||
petsc_options_iname = '-pc_type -pc_factor_shift_type' | ||
petsc_options_value = 'lu NONZERO' | ||
dt = 0.1 | ||
end_time = 5.0 | ||
steady_state_detection = false | ||
steady_state_tolerance = 1e-12 | ||
nl_abs_tol = 1e-12 | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
csv = true | ||
[] |
Binary file added
BIN
+229 KB
...avier_stokes/test/tests/finite_volume/limiters/dispersion-test/gold/bottom_left_min_mod.e
Binary file not shown.
Binary file added
BIN
+229 KB
.../navier_stokes/test/tests/finite_volume/limiters/dispersion-test/gold/bottom_left_quick.e
Binary file not shown.
Binary file added
BIN
+229 KB
...es/navier_stokes/test/tests/finite_volume/limiters/dispersion-test/gold/bottom_left_sou.e
Binary file not shown.
Binary file added
BIN
+187 KB
...st/tests/finite_volume/limiters/dispersion-test/gold/bottom_left_tri_mesh_advection_out.e
Binary file not shown.
Binary file added
BIN
+187 KB
...kes/test/tests/finite_volume/limiters/dispersion-test/gold/bottom_left_tri_mesh_min_mod.e
Binary file not shown.
Binary file added
BIN
+187 KB
...tokes/test/tests/finite_volume/limiters/dispersion-test/gold/bottom_left_tri_mesh_quick.e
Binary file not shown.
Binary file added
BIN
+102 KB
..._stokes/test/tests/finite_volume/limiters/dispersion-test/gold/bottom_left_tri_mesh_sou.e
Binary file not shown.
Binary file added
BIN
+187 KB
...kes/test/tests/finite_volume/limiters/dispersion-test/gold/bottom_left_tri_mesh_vanLeer.e
Binary file not shown.
Binary file added
BIN
+229 KB
...avier_stokes/test/tests/finite_volume/limiters/dispersion-test/gold/bottom_left_vanLeer.e
Binary file not shown.
Binary file added
BIN
+229 KB
...okes/test/tests/finite_volume/limiters/dispersion-test/gold/bottom_left_venkatakrishnan.e
Binary file not shown.
Binary file added
BIN
+229 KB
...r_stokes/test/tests/finite_volume/limiters/dispersion-test/gold/top_right_advection_out.e
Binary file not shown.
Binary file added
BIN
+229 KB
.../navier_stokes/test/tests/finite_volume/limiters/dispersion-test/gold/top_right_min_mod.e
Binary file not shown.
Binary file added
BIN
+229 KB
...es/navier_stokes/test/tests/finite_volume/limiters/dispersion-test/gold/top_right_quick.e
Binary file not shown.
Binary file added
BIN
+229 KB
modules/navier_stokes/test/tests/finite_volume/limiters/dispersion-test/gold/top_right_sou.e
Binary file not shown.
Binary file added
BIN
+229 KB
.../navier_stokes/test/tests/finite_volume/limiters/dispersion-test/gold/top_right_vanLeer.e
Binary file not shown.
Binary file added
BIN
+229 KB
...stokes/test/tests/finite_volume/limiters/dispersion-test/gold/top_right_venkatakrishnan.e
Binary file not shown.
104 changes: 104 additions & 0 deletions
104
modules/navier_stokes/test/tests/finite_volume/limiters/dispersion-test/tests
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,104 @@ | ||
[Tests] | ||
design = 'INSFVScalarFieldAdvection.md' | ||
issues = '#28891' | ||
[bottom_left_limited_scalar_advection] | ||
requirement = 'The system shall be able to perform a variety of limiting schemes when solving scalar transport equations in cartesian meshes with bottom-left advection. These schemes include' | ||
[sou] | ||
type = Exodiff | ||
input = 'bottom_left_advection.i' | ||
exodiff = bottom_left_sou.e | ||
cli_args = 'GlobalParams/advected_interp_method=sou Outputs/file_base=bottom_left_sou' | ||
detail = 'second-order upwind' | ||
[] | ||
[vanLeer] | ||
type = Exodiff | ||
input = 'bottom_left_advection.i' | ||
exodiff = bottom_left_vanLeer.e | ||
cli_args = 'GlobalParams/advected_interp_method=vanLeer Outputs/file_base=bottom_left_vanLeer' | ||
detail = 'van Leer' | ||
[] | ||
[min_mod] | ||
type = Exodiff | ||
input = 'bottom_left_advection.i' | ||
exodiff = bottom_left_min_mod.e | ||
cli_args = 'GlobalParams/advected_interp_method=min_mod Outputs/file_base=bottom_left_min_mod' | ||
detail = 'min-mod' | ||
[] | ||
[quick] | ||
type = Exodiff | ||
input = 'bottom_left_advection.i' | ||
exodiff = bottom_left_quick.e | ||
cli_args = 'GlobalParams/advected_interp_method=quick Outputs/file_base=bottom_left_quick' | ||
detail = 'QUICK' | ||
[] | ||
[venkatakrishnan] | ||
type = Exodiff | ||
input = 'bottom_left_advection.i' | ||
exodiff = bottom_left_venkatakrishnan.e | ||
cli_args = 'GlobalParams/advected_interp_method=venkatakrishnan Outputs/file_base=bottom_left_venkatakrishnan' | ||
detail = 'venkatakrishnan' | ||
[] | ||
[] | ||
[top_right_limited_scalar_advection] | ||
requirement = 'The system shall be able to perform a variety of limiting schemes when solving scalar transport equations in cartesian meshes with top-right advection. These schemes include' | ||
[sou] | ||
type = Exodiff | ||
input = 'top_right_advection.i' | ||
exodiff = top_right_sou.e | ||
cli_args = 'GlobalParams/advected_interp_method=sou Outputs/file_base=top_right_sou' | ||
detail = 'second-order upwind' | ||
[] | ||
[vanLeer] | ||
type = Exodiff | ||
input = 'top_right_advection.i' | ||
exodiff = top_right_vanLeer.e | ||
cli_args = 'GlobalParams/advected_interp_method=vanLeer Outputs/file_base=top_right_vanLeer' | ||
detail = 'van Leer' | ||
[] | ||
[min_mod] | ||
type = Exodiff | ||
input = 'top_right_advection.i' | ||
exodiff = top_right_min_mod.e | ||
cli_args = 'GlobalParams/advected_interp_method=min_mod Outputs/file_base=top_right_min_mod' | ||
detail = 'min-mod' | ||
[] | ||
[quick] | ||
type = Exodiff | ||
input = 'top_right_advection.i' | ||
exodiff = top_right_quick.e | ||
cli_args = 'GlobalParams/advected_interp_method=quick Outputs/file_base=top_right_quick' | ||
detail = 'QUICK' | ||
[] | ||
[venkatakrishnan] | ||
type = Exodiff | ||
input = 'top_right_advection.i' | ||
exodiff = top_right_venkatakrishnan.e | ||
cli_args = 'GlobalParams/advected_interp_method=venkatakrishnan Outputs/file_base=top_right_venkatakrishnan' | ||
detail = 'venkatakrishnan' | ||
[] | ||
[] | ||
[bottom_left_tri_mesh_limited_scalar_advection] | ||
requirement = 'The system shall be able to perform a variety of limiting schemes when solving scalar transport equations in triangular meshes with bottom-left advection. These schemes include' | ||
[vanLeer] | ||
type = Exodiff | ||
input = 'bottom_left_tri_mesh_advection.i' | ||
exodiff = bottom_left_tri_mesh_vanLeer.e | ||
cli_args = 'GlobalParams/advected_interp_method=vanLeer Outputs/file_base=bottom_left_tri_mesh_vanLeer' | ||
detail = 'van Leer' | ||
[] | ||
[min_mod] | ||
type = Exodiff | ||
input = 'bottom_left_tri_mesh_advection.i' | ||
exodiff = bottom_left_tri_mesh_min_mod.e | ||
cli_args = 'GlobalParams/advected_interp_method=min_mod Outputs/file_base=bottom_left_tri_mesh_min_mod' | ||
detail = 'min-mod' | ||
[] | ||
[quick] | ||
type = Exodiff | ||
input = 'bottom_left_tri_mesh_advection.i' | ||
exodiff = bottom_left_tri_mesh_quick.e | ||
cli_args = 'GlobalParams/advected_interp_method=quick Outputs/file_base=bottom_left_tri_mesh_quick' | ||
detail = 'QUICK' | ||
[] | ||
[] | ||
[] |
99 changes: 99 additions & 0 deletions
99
...les/navier_stokes/test/tests/finite_volume/limiters/dispersion-test/top_right_advection.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,99 @@ | ||
[GlobalParams] | ||
advected_interp_method = 'min_mod' #average upwind sou min_mod vanLeer quick venkatakrishnan skewness-corrected | ||
velocity_interp_method = 'average' | ||
[] | ||
|
||
[UserObjects] | ||
[rc] | ||
type = INSFVRhieChowInterpolator | ||
u = vel_x | ||
v = vel_y | ||
a_u = vel_x | ||
a_v = vel_y | ||
pressure = pressure | ||
velocity_interp_method = 'rc' | ||
[] | ||
[] | ||
|
||
[Mesh] | ||
[gen] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
xmin = 0 | ||
xmax = 1 | ||
ymin = 0 | ||
ymax = 1 | ||
nx = 10 | ||
ny = 10 | ||
[] | ||
[] | ||
|
||
[AuxVariables] | ||
[vel_x] | ||
type = INSFVVelocityVariable | ||
initial_condition = -1.0 | ||
[] | ||
[vel_y] | ||
type = INSFVVelocityVariable | ||
initial_condition = -1.0 | ||
[] | ||
[pressure] | ||
type = INSFVPressureVariable | ||
initial_condition = 1.0 | ||
[] | ||
[] | ||
|
||
[Variables] | ||
[scalar] | ||
type = INSFVScalarFieldVariable | ||
two_term_boundary_expansion = false | ||
[] | ||
[] | ||
|
||
[FVKernels] | ||
[scalar_advection] | ||
type = INSFVScalarFieldAdvection | ||
variable = scalar | ||
rhie_chow_user_object = 'rc' | ||
[] | ||
[] | ||
|
||
[FVBCs] | ||
[fv_inflow] | ||
type = NSFVOutflowTemperatureBC | ||
u = vel_x | ||
v = vel_y | ||
backflow_T = 1.0 | ||
rho = 1.0 | ||
cp = 1.0 | ||
variable = scalar | ||
boundary = 'right' | ||
[] | ||
[fv_outflow] | ||
type = NSFVOutflowTemperatureBC | ||
u = vel_x | ||
v = vel_y | ||
backflow_T = 0.0 | ||
rho = 1.0 | ||
cp = 1.0 | ||
variable = scalar | ||
boundary = 'left top bottom' | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
solve_type = 'NEWTON' | ||
petsc_options_iname = '-pc_type -pc_factor_shift_type' | ||
petsc_options_value = 'lu NONZERO' | ||
dt = 0.1 | ||
end_time = 5.0 | ||
steady_state_detection = false | ||
steady_state_tolerance = 1e-12 | ||
nl_abs_tol = 1e-12 | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
csv = true | ||
[] |
Binary file added
BIN
+132 KB
modules/navier_stokes/test/tests/finite_volume/limiters/lid-driven-segregated/gold/min_mod.e
Binary file not shown.
Binary file added
BIN
+132 KB
.../navier_stokes/test/tests/finite_volume/limiters/lid-driven-segregated/gold/min_mod_run.e
Binary file not shown.
Binary file added
BIN
+132 KB
modules/navier_stokes/test/tests/finite_volume/limiters/lid-driven-segregated/gold/quick.e
Binary file not shown.
Binary file added
BIN
+132 KB
...es/navier_stokes/test/tests/finite_volume/limiters/lid-driven-segregated/gold/quick_run.e
Binary file not shown.
Binary file added
BIN
+132 KB
modules/navier_stokes/test/tests/finite_volume/limiters/lid-driven-segregated/gold/upwind.e
Binary file not shown.
Binary file added
BIN
+132 KB
...s/navier_stokes/test/tests/finite_volume/limiters/lid-driven-segregated/gold/upwind_run.e
Binary file not shown.
Binary file added
BIN
+132 KB
modules/navier_stokes/test/tests/finite_volume/limiters/lid-driven-segregated/gold/vanLeer.e
Binary file not shown.
Binary file added
BIN
+132 KB
.../navier_stokes/test/tests/finite_volume/limiters/lid-driven-segregated/gold/vanLeer_run.e
Binary file not shown.
Oops, something went wrong.