#include <SelfGravityPhysics.H>
Inheritance diagram for SelfGravityPhysics:
Public Member Functions | |
SelfGravityPhysics () | |
Constructor. | |
virtual | ~SelfGravityPhysics () |
Destructor. | |
virtual Real | getMaxWaveSpeed (const FArrayBox &a_U, const Box &a_box) |
Compute the maximum wave speed. | |
virtual Real | getMaxWaveSpeedWithSource (const FArrayBox &a_U, const FArrayBox &a_S, const Real &a_dx, const Box &a_box) |
Compute the maximum wave speed with gravity term. | |
virtual GodunovPhysics * | new_godunovPhysics () const |
Object factory for this class. | |
virtual Vector< string > | stateNames () |
Names of the conserved variables. | |
virtual Vector< string > | plotNames () |
Names of the plot variables. | |
virtual int | numConserved () |
Number of conserved variables. | |
virtual int | numFluxes () |
Number of flux variables. | |
virtual bool | isDefined () |
virtual int | numPrimitives () |
Number of primitive variables. | |
virtual int | numSlopes () |
Number of primitive variables for which slopes are computed. | |
virtual void | consToPrim (FArrayBox &a_W, const FArrayBox &a_U, const Box &a_box) |
Compute the primitive variables from the conserved variables within a_box. | |
virtual void | getFlux (FArrayBox &a_flux, const FArrayBox &a_whalf, const int &a_dir, const Box &a_box) |
Compute the fluxes from primitive variable values on a face. | |
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. | |
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. | |
virtual void | charValues (FArrayBox &a_lambda, const FArrayBox &a_W, const int &a_dir, const Box &a_box) |
Compute the characteristic values (eigenvalues). | |
virtual void | incrementSource (FArrayBox &a_localS, const FArrayBox &a_S, const FArrayBox &a_W, const Real &a_time, const Real &a_dt, const Box &a_box) |
Add to (increment) the source terms given the current state. | |
virtual void | incrementSource (FArrayBox &a_S, const FArrayBox &a_W, const Box &a_box) |
Add to (increment) the source terms given the current state. | |
virtual 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 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 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. | |
virtual void | synchronize (FArrayBox &a_U, const FArrayBox &a_UOld, const Box &a_box) |
synchronize entropy and pressure | |
virtual void | setupSourceTerm (FArrayBox &a_S, const ForceBox &a_force, const FArrayBox &a_U, const Real &a_time, const Real &a_dt, const Box &a_box) |
virtual Real | applySource (FArrayBox &a_U, const FArrayBox &a_force, const Real &a_time, const Real &a_dt, const Box &a_box) |
apply source and returns max dt based on CFL condition | |
virtual void | forceCorrection (FArrayBox &a_U, const ForceBox &a_force, const Real &a_time, const Real &a_dt, const Box &a_box) |
virtual void | setPressureToEntropy (FArrayBox &a_U, const Box &a_box) |
virtual Interval | velocityInterval () |
Interval within the primitive variables corresponding to the velocities. | |
virtual int | pressureIndex () |
Component index within the primitive variables of the pressure. | |
virtual int | densityIndex () |
Component index within the primitive variables of the pressure. | |
virtual int | bulkModulusIndex () |
Component index within the primitive variables of the bulk modulus. | |
virtual int | entropyIndex () |
Component index within the primitive variables of the entropy. | |
virtual Real | smallPressure () |
Used to limit the absolute value of a "pressure" difference. | |
virtual void | setSmallPressure (const Real &a_smallPressure) |
set smallPressure parameter | |
virtual void | setUnits (const CodeUnits &a_units) |
setup code units utility | |
Protected Attributes | |
Real | m_smallPressure |
CodeUnits | m_units |
FArrayBox * | m_source |
|
Constructor.
|
|
Destructor.
|
|
apply source and returns max dt based on CFL condition
|
|
Component index within the primitive variables of the bulk modulus.
Implements GodunovPhysics. |
|
Transform a_dW from primitive to characteristic variables. On input, a_dW contains the increments of the primitive variables. On output, it contains the increments in the characteristic variables. IMPORTANT NOTE: It is assumed that the characteristic analysis puts the eigenvalues in order from smallest to largest and orders the eigenvalues and characteristic variables accordingly. Implements GodunovPhysics. |
|
Transform a_dW from characteristic to primitive variables.
Implements GodunovPhysics. |
|
Compute the characteristic values (eigenvalues).
Implements GodunovPhysics. |
|
Compute the primitive variables from the conserved variables within a_box.
Implements GodunovPhysics. |
|
Component index within the primitive variables of the pressure.
|
|
Component index within the primitive variables of the entropy.
|
|
|
|
Compute the fluxes from primitive variable values on a face.
Implements GodunovPhysics. |
|
Compute the maximum wave speed.
Implements GodunovPhysics. |
|
Compute the maximum wave speed with gravity term.
|
|
Add to (increment) the source terms given the current state. On input, a_S contains the current source terms. On output, a_S has had any additional source terms (based on the current state, a_W) added to it. This should all be done on the region defined by a_box. Implements GodunovPhysics. |
|
Add to (increment) the source terms given the current state.
|
|
|
|
Object factory for this class.
Implements GodunovPhysics. |
|
Number of conserved variables.
Implements GodunovPhysics. |
|
Number of flux variables. This can be greater than the number of conserved variables if addition fluxes/face-centered quantities are computed. Implements GodunovPhysics. |
|
Number of primitive variables.
Implements GodunovPhysics. |
|
Number of primitive variables for which slopes are computed.
|
|
Names of the plot variables.
|
|
Post-normal predictor calculation.
Implements GodunovPhysics. |
|
Component index within the primitive variables of the pressure.
Implements GodunovPhysics. |
|
Compute the quasilinear update A*dW/dx.
Implements GodunovPhysics. |
|
Compute the solution to the Riemann problem.
Implements GodunovPhysics. |
|
|
|
set smallPressure parameter
|
|
setup code units utility
|
|
|
|
Used to limit the absolute value of a "pressure" difference.
Implements GodunovPhysics. |
|
Names of the conserved variables.
Implements GodunovPhysics. |
|
synchronize entropy and pressure
|
|
Interval within the primitive variables corresponding to the velocities.
Implements GodunovPhysics. |
|
|
|
|
|
|