11 #ifndef _POLYTROPICPHYSICS_H_ 12 #define _POLYTROPICPHYSICS_H_ 24 #include "NamespaceHeader.H" 258 #include "NamespaceFooter.H" Vector< string > stateNames()
Names of the conserved variables.
void riemann(FArrayBox &a_WStar, 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.
virtual Real smallPressure()
Used to limit the absolute value of a "pressure" difference (away from zero)
void quasilinearUpdate(FArrayBox &a_dWdx, 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.
virtual void expressions(HDF5HeaderData &a_holder) const
void charValues(FArrayBox &a_lambda, const FArrayBox &a_W, const int &a_dir, const Box &a_box)
Compute the characteristic values (eigenvalues)
Definition: PolytropicPhysics.H:38
~PolytropicPhysics()
Destructor.
int densityIndex()
Component index within the primitive variables of the density.
void operator=(const PolytropicPhysics &)
virtual int pressureIndex()
Component index within the primitive variables of the pressure.
Structure for passing component ranges in code.
Definition: Interval.H:23
int numFluxes()
Number of flux variables.
int numPrimitives()
Number of primitive variables.
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.
double Real
Definition: REAL.H:33
virtual Interval vectorFluxInterval()
Interval within the flux variables corresponding to vector flux.
virtual int bulkModulusIndex()
Component index within the primitive variables of the bulk modulus.
void incrementSource(FArrayBox &a_S, const FArrayBox &a_W, const Box &a_box)
Add to (increment) the source terms given the current state.
Definition: GodunovPhysics.H:40
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.
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
virtual GodunovPhysics * new_godunovPhysics() const
Object factory for this class.
Real m_smallPressure
Definition: PolytropicPhysics.H:248
int numConserved()
Number of conserved variables.
Definition: FArrayBox.H:45
PolytropicPhysics(const Real &a_smallPressure)
Constructor.
void consToPrim(FArrayBox &a_W, const FArrayBox &a_U, const Box &a_box)
Compute primitive variables from conserved variables.
void soundSpeed(FArrayBox &a_speed, const FArrayBox &a_U, const Box &a_box)
Compute the speed of sound.
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.
virtual Interval velocityInterval()
Interval within the primitive variables corresponding to the velocities.
void getFlux(FArrayBox &a_flux, const FArrayBox &a_whalf, const int &a_dir, const Box &a_box)
Compute a flux from primitive variable values on a face.
Real getMaxWaveSpeed(const FArrayBox &a_U, const Box &a_box)
Compute the maximum wave speed.