-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add regression test with init_wave_profile
- Loading branch information
Showing
2 changed files
with
71 additions
and
0 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
70 changes: 70 additions & 0 deletions
70
test/test_files/ow_linear_init_waves/ow_linear_init_waves.inp
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,70 @@ | ||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# SIMULATION STOP # | ||
#.......................................# | ||
time.stop_time = 1 # Max (simulated) time to evolve | ||
time.max_step = 20 # Max number of time steps | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# TIME STEP COMPUTATION # | ||
#.......................................# | ||
time.fixed_dt = 0.01 # Use this constant dt if > 0 | ||
time.cfl = 0.95 # CFL factor | ||
time.use_force_cfl= false | ||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# INPUT AND OUTPUT # | ||
#.......................................# | ||
time.plot_interval = 10 # Steps between plot files | ||
time.checkpoint_interval = -1 # Steps between checkpoint files | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# PHYSICS # | ||
#.......................................# | ||
transport.model = TwoPhaseTransport | ||
transport.viscosity_fluid1=0.0 | ||
transport.viscosity_fluid2=0.0 | ||
transport.turbulent_prandtl = 0.3333 | ||
turbulence.model = Laminar | ||
|
||
incflo.physics = MultiPhase OceanWaves | ||
OceanWaves.label = Wave1 | ||
OceanWaves.Wave1.type = LinearWaves | ||
OceanWaves.Wave1.initialize_wave_field = true | ||
OceanWaves.Wave1.wave_height=0.03 | ||
OceanWaves.Wave1.wave_length=2.0 | ||
OceanWaves.Wave1.water_depth=1 | ||
OceanWaves.Wave1.relax_zone_gen_length=1.5 | ||
OceanWaves.Wave1.numerical_beach_length=1.5 | ||
OceanWaves.Wave1.numerical_beach_length_factor=2.0 | ||
MultiPhase.density_fluid1=1000. | ||
MultiPhase.density_fluid2=1. | ||
ICNS.source_terms = GravityForcing | ||
ICNS.use_perturb_pressure = true | ||
ICNS.reconstruct_true_pressure = true | ||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# ADAPTIVE MESH REFINEMENT # | ||
#.......................................# | ||
amr.n_cell = 192 16 32 # Grid cells at coarsest AMRlevel | ||
amr.max_level = 1 | ||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# GEOMETRY # | ||
#.......................................# | ||
geometry.prob_lo = 0.0 -0.3 -1 # Lo corner coordinates | ||
geometry.prob_hi = 7.2 0.3 0.2 # Hi corner coordinates | ||
geometry.is_periodic = 0 1 0 # Periodicity x y z (0/1) | ||
|
||
xlo.type = "wave_generation" | ||
xhi.type = "slip_wall" | ||
|
||
zlo.type = "slip_wall" | ||
zhi.type = "slip_wall" | ||
|
||
tagging.labels = refine0 | ||
tagging.refine0.type = GeometryRefinement | ||
tagging.refine0.shapes = b0 | ||
tagging.refine0.level = 0 | ||
|
||
tagging.refine0.b0.type = box | ||
tagging.refine0.b0.origin = 0.0 -0.3 -0.1 | ||
tagging.refine0.b0.xaxis = 7.2 0.0 0.0 | ||
tagging.refine0.b0.yaxis = 0.0 0.6 0.0 | ||
tagging.refine0.b0.zaxis = 0.0 0.0 0.2 |