forked from Exawind/amr-wind
-
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.
Added function to sum Kinetic Energy (Exawind#34)
* added function that computes kinetic energy and an input to control frequency. Added 3D Taylor-Green Vortex initial condition and input file * moved a FAB based volmask to an iMultiFab level_mask. Level mask does not have to perform box intersection everytime kinetic energy is called but instead only when regrid is called. * cleaned up a bit and now compiles with latest AMReX development branch * updated ComputeKineticEnergy to use the three MultiFab version of ReduceSum and divided by freestream density ro_0. Use latest version of AMReX development to compile. * Removed level_mask setup function since it already exists in AMReX as makeFineMask, thanks Weiqun. * moved the ComputeKineticEnergy to public for CUDA lambdas to work, and flipped the masking number (0,1)->(1,0), thanks Weiqun
- Loading branch information
1 parent
2396738
commit c9b991d
Showing
7 changed files
with
177 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# SIMULATION STOP # | ||
#.......................................# | ||
stop_time = 3.183098861837907 # Max (simulated) time to evolve | ||
#max_step = 1 # Max number of time steps | ||
steady_state = 0 # Steady-state solver? | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# TIME STEP COMPUTATION # | ||
#.......................................# | ||
incflo.fixed_dt = .005 # Use this constant dt if > 0 | ||
incflo.cfl = 0.7 # CFL factor | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# INPUT AND OUTPUT # | ||
#.......................................# | ||
amr.KE_int = 1 | ||
amr.plot_int = 10 # Steps between plot files | ||
#amr.plot_per = 0.1 # Steps between plot files | ||
amr.check_int = -1 # Steps between checkpoint files | ||
amr.restart = "" # Checkpoint to restart from | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# PHYSICS # | ||
#.......................................# | ||
incflo.gravity = 0. 0. 0. # Gravitational force (3D) | ||
incflo.ro_0 = 1. # Reference density | ||
# Re = rho*u*L/mu = 1*1*1*L/mu = 1600, L = 1/2/pi, mu = 1/1600/2/pi | ||
incflo.mu = 0.00009947183943 # Dynamic viscosity coefficient | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# ADAPTIVE MESH REFINEMENT # | ||
#.......................................# | ||
amr.n_cell = 64 64 64 # Grid cells at coarsest AMRlevel | ||
amr.max_level = 0 # Max AMR level in hierarchy | ||
##amr.blocking_factor = 16 | ||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# GEOMETRY # | ||
#.......................................# | ||
geometry.prob_lo = 0. 0. 0. # Lo corner coordinates | ||
geometry.prob_hi = 1. 1. 1. # Hi corner coordinates | ||
geometry.is_periodic = 1 1 1 # Periodicity x y z (0/1) | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# INITIAL CONDITIONS # | ||
#.......................................# | ||
incflo.probtype = 3 | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# NUMERICAL PARAMETERS # | ||
#.......................................# | ||
incflo.steady_state_tol = 1.e-5 # Tolerance for steady-state | ||
amrex.fpe_trap_invalid = 1 # Trap NaNs | ||
|
||
#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨# | ||
# VERBOSITY # | ||
#.......................................# | ||
incflo.verbose = 1 # incflo_level | ||
mac.verbose = 0 # MacProjector |
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