forked from AMReX-Fluids/incflo
-
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.
Appears to work for 3D with multiple boxes. Needs cgilet hydro
e39e4f5
- Loading branch information
Showing
6 changed files
with
123 additions
and
14 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 |
---|---|---|
@@ -0,0 +1,99 @@ | ||
amrex.fpe_trap_invalid = 1 | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# SIMULATION STOP # | ||
#.......................................# | ||
max_step = 1 # Max number of time steps | ||
steady_state = 0 # Steady-state solver? | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# TIME STEP COMPUTATION # | ||
#.......................................# | ||
incflo.fixed_dt = -1.e-5 # Use this constant dt if > 0 | ||
incflo.cfl = 0.45 | ||
|
||
incflo.do_initial_proj = 1 | ||
incflo.initial_iterations = 0 | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# INPUT AND OUTPUT # | ||
#.......................................# | ||
amr.plot_int = 1 # Steps between plot files | ||
amr.plt_regtest = 1 | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# PHYSICS # | ||
#.......................................# | ||
incflo.gravity = 0. 0. 0. # Gravitational force (3D) | ||
incflo.ro_0 = 1. # Reference density | ||
|
||
incflo.fluid_model = "newtonian" # Fluid model (rheology) | ||
incflo.mu = 0.00 # Dynamic viscosity coefficient | ||
incflo.constant_density = true # | ||
|
||
incflo.advection_type = "Godunov" | ||
incflo.diffusion_type = 0 | ||
incflo.redistribution_type = "StateRedist" | ||
|
||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# ADAPTIVE MESH REFINEMENT # | ||
#.......................................# | ||
amr.n_cell = 64 32 32 # Grid cells at coarsest AMRlevel | ||
amr.max_level = 0 # Max AMR level in hierarchy | ||
amr.max_grid_size_x = 1024 | ||
amr.max_grid_size_y = 1024 | ||
amr.max_grid_size_z = 1024 | ||
#amr.blocking_factor = 8 | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# GEOMETRY # | ||
#.......................................# | ||
geometry.prob_lo = -2. -1. -1. # Lo corner coordinates | ||
geometry.prob_hi = 2. 1. 1. # Hi corner coordinates | ||
geometry.is_periodic = 0 0 0 # Periodicity x y z (0/1) | ||
|
||
# Boundary conditionse39e4f5 | ||
xlo.type = "mixed" | ||
xlo.velocity = 1.0 0.0 0.0 | ||
xlo.pressure = 0.0 | ||
|
||
xhi.type = "mixed" | ||
xhi.velocity = 1.0 0.0 0.0 | ||
xhi.pressure = 0.0 | ||
|
||
ylo.type = "nsw" | ||
yhi.type = "nsw" | ||
|
||
zlo.type = "nsw" | ||
zhi.type = "nsw" | ||
|
||
# Add box | ||
incflo.geometry = "box" | ||
box.internal_flow = false | ||
|
||
box.Lo = -2.1 -0.10 -1.1 | ||
box.Hi = 2.10 0.10 1.1 | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# INITIAL CONDITIONS # | ||
#.......................................# | ||
incflo.probtype = 1101 | ||
|
||
incflo.ic_u = 1.0 # | ||
incflo.ic_v = 0.0 # | ||
incflo.ic_w = 0.0 # | ||
incflo.ic_p = 0.0 # | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# VERBOSITY # | ||
#.......................................# | ||
incflo.verbose = 1 # incflo itself | ||
mac_proj.verbose = 1 # MAC Projector | ||
nodal_proj.verbose = 1 # Nodal Projector | ||
|
||
|
||
#.......................................# | ||
# EB FLOW # | ||
#.......................................# | ||
eb_flow.vel_mag = 0.0 |