-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Boundary condition treatment for wallmodel and symmetry wall; fixes f…
…vm problems (#844) Co-authored-by: prakash <prakash.mohan@nrel.gov>
- Loading branch information
1 parent
215200b
commit e18bd4a
Showing
14 changed files
with
663 additions
and
10 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
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 |
---|---|---|
|
@@ -14,6 +14,7 @@ enum struct BC { | |
fixed_gradient, | ||
periodic, | ||
wave_generation, | ||
symmetric_wall, | ||
undefined | ||
}; | ||
|
||
|
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
57 changes: 57 additions & 0 deletions
57
test/test_files/halfchannel_symmetricwall/halfchannel_symmetricwall.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,57 @@ | ||
# This is a 2D poiseuille flow when run to steady state | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# SIMULATION STOP # | ||
#.......................................# | ||
time.stop_time = 5.00 # Max (simulated) time to evolve | ||
time.max_step = -1000 # Max number of time steps | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# TIME STEP COMPUTATION # | ||
#.......................................# | ||
time.fixed_dt = 0.005 # Use this constant dt if > 0 | ||
time.cfl = 0.95 # CFL factor | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# INPUT AND OUTPUT # | ||
#.......................................# | ||
time.plot_interval = 10 # Steps between plot files | ||
time.checkpoint_interval = -100 # Steps between checkpoint files | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# PHYSICS # | ||
#.......................................# | ||
incflo.density = 1.0 # Reference density | ||
incflo.use_godunov = 1 | ||
incflo.diffusion_type = 1 | ||
incflo.godunov_type = "weno_z" | ||
|
||
transport.viscosity = 1.0 | ||
turbulence.model = Laminar | ||
|
||
ICNS.source_terms = BodyForce | ||
BodyForce.magnitude = 12.0 0 0 | ||
incflo.physics = ChannelFlow | ||
ChannelFlow.density = 1.0 | ||
ChannelFlow.Mean_Velocity = 1.0 | ||
ChannelFlow.half_channel = true | ||
|
||
io.output_default_variables = 1 | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# ADAPTIVE MESH REFINEMENT # | ||
#.......................................# | ||
amr.n_cell = 16 8 4 # Grid cells at coarsest AMRlevel | ||
amr.blocking_factor = 4 | ||
amr.max_level = 0 # Max AMR level in hierarchy | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# GEOMETRY # | ||
#.......................................# | ||
geometry.prob_lo = 0.0 0.0 0.0 # Lo corner coordinates | ||
geometry.prob_hi = 1.0 0.5 0.25 # Hi corner coordinates | ||
geometry.is_periodic = 1 0 1 # Periodicity x y z (0/1) | ||
|
||
# Boundary conditions | ||
ylo.type = "no_slip_wall" | ||
yhi.type = "symmetric_wall" |
57 changes: 57 additions & 0 deletions
57
test/test_files/halfchannel_zerogradient/halfchannel_zerogradient.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,57 @@ | ||
# This is a 2D poiseuille flow when run to steady state | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# SIMULATION STOP # | ||
#.......................................# | ||
time.stop_time = 5.00 # Max (simulated) time to evolve | ||
time.max_step = -1000 # Max number of time steps | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# TIME STEP COMPUTATION # | ||
#.......................................# | ||
time.fixed_dt = 0.005 # Use this constant dt if > 0 | ||
time.cfl = 0.95 # CFL factor | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# INPUT AND OUTPUT # | ||
#.......................................# | ||
time.plot_interval = 10 # Steps between plot files | ||
time.checkpoint_interval = -100 # Steps between checkpoint files | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# PHYSICS # | ||
#.......................................# | ||
incflo.density = 1.0 # Reference density | ||
incflo.use_godunov = 1 | ||
incflo.diffusion_type = 1 | ||
incflo.godunov_type = "weno_z" | ||
|
||
transport.viscosity = 1.0 | ||
turbulence.model = Laminar | ||
|
||
ICNS.source_terms = BodyForce | ||
BodyForce.magnitude = 12.0 0 0 | ||
incflo.physics = ChannelFlow | ||
ChannelFlow.density = 1.0 | ||
ChannelFlow.Mean_Velocity = 1.0 | ||
ChannelFlow.half_channel = true | ||
|
||
io.output_default_variables = 1 | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# ADAPTIVE MESH REFINEMENT # | ||
#.......................................# | ||
amr.n_cell = 16 8 4 # Grid cells at coarsest AMRlevel | ||
amr.blocking_factor = 4 | ||
amr.max_level = 0 # Max AMR level in hierarchy | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# GEOMETRY # | ||
#.......................................# | ||
geometry.prob_lo = 0.0 0.0 0.0 # Lo corner coordinates | ||
geometry.prob_hi = 1.0 0.5 0.25 # Hi corner coordinates | ||
geometry.is_periodic = 1 0 1 # Periodicity x y z (0/1) | ||
|
||
# Boundary conditions | ||
ylo.type = "no_slip_wall" | ||
yhi.type = "zero_gradient" |
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
Oops, something went wrong.