File Castro_rotation.H
Functions
-
void construct_old_rotation_source(amrex::MultiFab &source, amrex::MultiFab &state, amrex::Real time, amrex::Real dt)
Construct rotation source terms at old time
- Parameters:
source – MultiFab to save source terms to
state – Old state
time – current time
dt – timestep
-
void construct_new_rotation_source(amrex::MultiFab &source, amrex::MultiFab &state_old, amrex::MultiFab &state_new, amrex::Real time, amrex::Real dt)
Construct rotation source terms at new time.
- Parameters:
source – MultiFab to save source terms to
state_old – Old State
state_new – New State
time – current time
dt – timestep
-
void fill_rotation_field(amrex::MultiFab &phi, amrex::MultiFab &state, amrex::Real time)
Fill rotational potential and acceleration
- Parameters:
phi – Rotational potential
rot – Rotational acceleration
state – Current state
time – current time
-
void rsrc(const Box &bx, Array4<Real const> const &uold, Array4<Real> const &source, const Real dt)
Add the rotation source for input state uold to the full hydrodynamic source term source
- Parameters:
bx – the box to operate over
source – the full hydrodynamical source term
dt – current timestep
-
void corrrsrc(const Box &bx, Array4<Real const> const &uold, Array4<Real const> const &unew, Array4<Real> const &source, Array4<Real const> const &flux0, Array4<Real const> const &flux1, Array4<Real const> const &flux2, const Real dt, Array4<Real const> const &vol)
Compute the correction source term for rotation
- Parameters:
bx – the box to operate over
uold – old time state
unew – new time state
source – full hydrodynamic state
flux0 – mass flux in x coord dir
flux1 – mass flux in y coord dir
flux2 – mass flux in z coord dir
dt – current timestep
vol – cell volume
-
void fill_rotational_potential(const Box &bx, Array4<Real> const &phi, const Real time)
-
void fill_rotational_psi(const Box &bx, Array4<Real> const &psi, const Real time)