11 #ifndef _ADVECTPHYSICS_H_ 12 #define _ADVECTPHYSICS_H_ 17 #include "NamespaceHeader.H" 235 MayDay::Error(
"AdvectPhysics::velocityInterval - not defined");
278 MayDay::Error(
"AdvectPhysics::bulkModulusIndex - not defined");
290 MayDay::Error(
"AdvectPhysics::bulkModulusIndex - not defined");
307 #include "NamespaceFooter.H" virtual void postNormalPred(FArrayBox &a_dWMinus, FArrayBox &a_dWPlus, const FArrayBox &a_W, const Real &a_dt, const Real &a_dx, const int &a_dir, const Box &a_box)
Post-normal predictor calculation.
virtual Real smallPressure()
Used to limit the absolute value of a "pressure" difference.
Definition: AdvectPhysics.H:263
virtual void charSynthesis(FArrayBox &a_dW, const FArrayBox &a_W, const int &a_dir, const Box &a_box)
Transform a_dW from characteristic to primitive variables.
Definition: AdvectPhysics.H:83
void setVelocities(FArrayBox *a_celVelPtr, FluxBox *a_advVelPtr)
Set cell-centered and face centered advection velocity.
Definition: AdvectPhysics.H:163
virtual void consToPrim(FArrayBox &a_W, const FArrayBox &a_U, const Box &a_box)
Compute primitive variables from conserved variables.
AdvectPhysics()
Constructor.
virtual int numFluxes()
Number of flux variables.
Definition: AdvectPhysics.H:202
virtual int bulkModulusIndex()
Component index within the primitive variables of the bulk modulus.
Definition: AdvectPhysics.H:276
FArrayBox * m_cellVelPtr
cell-centered advection velocity (centered at old time)
Definition: AdvectPhysics.H:303
virtual Interval velocityInterval()
Interval within the primitive variables corresponding to the velocities.
Definition: AdvectPhysics.H:233
A FArrayBox-like container for face-centered fluxes.
Definition: FluxBox.H:22
virtual GodunovPhysics * new_godunovPhysics() const
Factory method - this object is its own factory.
Structure for passing component ranges in code.
Definition: Interval.H:23
virtual Vector< string > stateNames()
Names of the conserved variables.
Definition: AdvectPhysics.H:189
virtual void riemann(FArrayBox &a_WGdnv, const FArrayBox &a_WLeft, const FArrayBox &a_WRight, const FArrayBox &a_W, const Real &a_time, const int &a_dir, const Box &a_box)
Compute the solution to the Riemann problem.
double Real
Definition: REAL.H:33
virtual int densityIndex()
Component index within the primitive variables of the density.
Definition: AdvectPhysics.H:288
virtual void getFlux(FArrayBox &a_flux, const FArrayBox &a_WHalf, const int &a_dir, const Box &a_box)
COMPUTE fluxes from primitive values on a face ( advVel*wHalf)
bool m_isVelSet
Definition: AdvectPhysics.H:298
virtual void charValues(FArrayBox &a_lambda, const FArrayBox &a_W, const int &a_dir, const Box &a_box)
Compute the characteristic values (eigenvalues)
virtual bool isDefined() const
Is the object completely defined.
Definition: AdvectPhysics.H:211
virtual void quasilinearUpdate(FArrayBox &a_AdWdx, const FArrayBox &a_WHalf, const FArrayBox &a_W, const Real &a_scale, const int &a_dir, const Box &a_box)
Compute the quasilinear update A*dW/dx.
static void Error(const char *const a_msg=m_nullString, int m_exitCode=CH_DEFAULT_ERROR_CODE)
Print out message to cerr and exit with the specified exit code.
Definition: GodunovPhysics.H:40
virtual void incrementSource(FArrayBox &a_S, const FArrayBox &a_W, const Box &a_box)
Add to (increment) the source terms given the current state.
Definition: AdvectPhysics.H:111
A class derived from GodunovPhysics for simple advection-diffusion problems.
Definition: AdvectPhysics.H:22
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
virtual Real getMaxWaveSpeed(const FArrayBox &a_U, const Box &a_box)
Compute the maximum wave speed.
virtual void charAnalysis(FArrayBox &a_dW, const FArrayBox &a_W, const int &a_dir, const Box &a_box)
Transform a_dW from primitive to characteristic variables.
Definition: AdvectPhysics.H:65
bool m_isDefined
Definition: GodunovPhysics.H:336
FluxBox * m_advVelPtr
face-centered advection velocity
Definition: AdvectPhysics.H:300
Definition: FArrayBox.H:45
virtual int numPrimitives()
Number of primitve variables.
Definition: AdvectPhysics.H:222
virtual int numConserved()
Number of conserved variables.
Definition: AdvectPhysics.H:180
virtual int pressureIndex()
Component index within the primitive variables of the pressure.
Definition: AdvectPhysics.H:248
~AdvectPhysics()
Destructor.