Skip to content

Commit

Permalink
Add regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf committed Jan 30, 2023
1 parent 17af662 commit da815d1
Show file tree
Hide file tree
Showing 12 changed files with 1,295 additions and 25 deletions.
3 changes: 3 additions & 0 deletions reg_tests/CTestList.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ if(NOT ENABLE_CUDA AND NOT ENABLE_ROCM)
add_test_r(KOChannelEdge 4)
add_test_r(KEChannelEdge 4)
add_test_r_rst(SSTAMSChannelEdge 4)
add_test_r_rst(SSTLRAMSChannelEdge 4)
add_test_r_rst(KOAMSChannelEdge 4)
add_test_r_rst(KEAMSChannelEdge 4)
#add_test_r_rst(SSTAMSOversetRotCylinder 2)
add_test_r(ablNeutralNGPHypre 2)
add_test_r(ablNeutralNGPHypreSegregated 2)
Expand Down
200 changes: 200 additions & 0 deletions reg_tests/test_files/KEAMSChannelEdge/KEAMSChannelEdge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
Simulations:
- name: sim1
time_integrator: ti_1
optimizer: opt1

linear_solvers:

- name: solve_scalar
type: tpetra
method: gmres
preconditioner: riluk
tolerance: 1e-5
max_iterations: 200
kspace: 200
output_level: 0

- name: solve_cont
type: hypre
method: hypre_gmres
preconditioner: boomerAMG
tolerance: 1e-5
max_iterations: 50
kspace: 75
output_level: 0
bamg_coarsen_type: 8
bamg_interp_type: 6
bamg_cycle_type: 1

realms:

- name: realm_1
mesh: ../../mesh/periodicChannel.g
use_edges: yes
check_for_missing_bcs: yes
automatic_decomposition_type: rcb

time_step_control:
target_courant: 1.0
time_step_change_factor: 1.2

equation_systems:
name: theEqSys
max_iterations: 4

solver_system_specification:
velocity: solve_scalar
turbulent_ke: solve_scalar
total_dissipation_rate: solve_scalar
pressure: solve_cont
ndtw: solve_cont

systems:
- WallDistance:
name: myNDTW
max_iterations: 1
convergence_tolerance: 1.0e-8

- LowMachEOM:
name: myLowMach
max_iterations: 1
convergence_tolerance: 1e-8

- ChienKEpsilon:
name: myKE
max_iterations: 1
convergence_tolerance: 1e-8

initial_conditions:
- constant: ic_1
target_name: Unspecified-2-HEX
value:
pressure: 0
velocity: [22.0,0.0,0.0]
turbulent_ke: 0.0005
total_dissipation_rate: 0.0005

material_properties:
target_name: Unspecified-2-HEX
specifications:
- name: density
type: constant
value: 1.0
- name: viscosity
type: constant
value: 9.99488e-4

boundary_conditions:

- wall_boundary_condition: bc_bot
target_name: bottom
wall_user_data:
velocity: [0,0,0]
turbulent_ke: 0.0
use_wall_function: no

- wall_boundary_condition: bc_top
target_name: top
wall_user_data:
velocity: [0,0,0]
turbulent_ke: 0.0
use_wall_function: no

- periodic_boundary_condition: bc_inlet_outlet
target_name: [inlet, outlet]
periodic_user_data:
search_tolerance: 0.001

- periodic_boundary_condition: bc_front_back
target_name: [front, back]
periodic_user_data:
search_tolerance: 0.001

solution_options:
name: myOptions
turbulence_model: ke
projected_timescale_type: momentum_diag_inv

fix_pressure_at_node:
value: 0.0
node_lookup_type: spatial_location
location: [ 1.0, 1.0, 1.0 ]
search_target_part: [Unspecified-2-HEX]
search_method: stk_kdtree

options:
- hybrid_factor:
velocity: 1.0
turbulent_ke: 1.0
total_dissipation_rate: 1.0

- alpha_upw:
velocity: 1.0
turbulent_ke: 1.0
total_dissipation_rate: 1.0

- upw_factor:
velocity: 1.0
turbulent_ke: 0.0
total_dissipation_rate: 0.0

- noc_correction:
pressure: yes

- limiter:
pressure: no
velocity: yes
turbulent_ke: yes
total_dissipation_rate: yes

- projected_nodal_gradient:
velocity: element
pressure: element
turbulent_ke: element
total_dissipation_rate: element
ndtw: element

- relaxation_factor:
velocity: 1.0
pressure: 1.0
turbulent_ke: 1.0
total_dissipation_rate: 1.0

- source_terms:
momentum: body_force

- source_term_parameters:
momentum: [1.00, 0.0, 0.0]

restart:
restart_data_base_name: KEAMSChannelEdge.rst
restart_frequency: 10
restart_start: 0

output:
output_data_base_name: KEAMSChannelEdge.e
output_frequency: 10
output_node_set: no
output_variables:
- velocity
- pressure
- pressure_force
- tau_wall
- turbulent_ke
- total_dissipation_rate
- minimum_distance_to_wall
- turbulent_viscosity
- element_courant

Time_Integrators:
- StandardTimeIntegrator:
name: ti_1
start_time: 0
time_step: 2.0e-3
termination_step_count: 10
time_stepping_type: fixed
time_step_count: 0
second_order_accuracy: yes

realms:
- realm_1
Loading

0 comments on commit da815d1

Please sign in to comment.