File Castro_diffusion.H
Functions
-
void construct_old_diff_source(amrex::MultiFab &source, amrex::MultiFab &state, amrex::Real time, amrex::Real dt)
Construct diffusion source at old time
- Parameters:
source – MultiFab to save source terms to
state – Old state
time – current time
dt – timestep
-
void construct_new_diff_source(amrex::MultiFab &source, amrex::MultiFab &state_old, amrex::MultiFab &state_new, amrex::Real time, amrex::Real dt)
Construct diffusion source 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 getTempDiffusionTerm(amrex::Real time, amrex::MultiFab &state, amrex::MultiFab &DiffTerm)
Get thermal conductivity diffusion term at given time
- Parameters:
time – current time
state – Current state
DiffTerm – MultiFab to save term to
-
void add_temp_diffusion_to_source(amrex::MultiFab &ext_src, amrex::MultiFab &state, amrex::MultiFab &DiffTerm, amrex::Real t, amrex::Real mult_factor = 1.0)
Calculate temperature or enthalpty diffusion terms and add to
ext_src
(multiplied bymult_factor
).- Parameters:
ext_src – Source terms to add diffusion sources to
state – Current state
DiffTerm – MultiFab to save diffusion sources to
t – Current time
mult_factor – Real, factor to multiply diffusion sources by before adding to other sources.