Chombo + EB
3.2
|
Example of an circular/spherical explosion. More...
#include <ExplosionIBC.H>
Public Member Functions | |
ExplosionIBC () | |
Null constructor. More... | |
ExplosionIBC (Real &a_smallPressure, const Real &a_gamma, const Real &a_ms, const RealVect &a_center, const Real &a_size, const RealVect &a_velocity, const Real &a_artvisc) | |
Constructor which defines parameters used by Fortran routines. More... | |
virtual | ~ExplosionIBC () |
Destructor. More... | |
void | setFortranCommon (Real &a_smallPressure, const Real &a_gamma, const Real &a_ms, const RealVect &a_center, const Real &a_size, const RealVect &a_velocity, const Real &a_artvisc) |
Sets parameters in a common block used by Fortran routines. More... | |
PhysIBC * | new_physIBC () |
Factory method - this object is its own factory. More... | |
void | initialize (LevelData< FArrayBox > &a_U) |
Set up initial conditions. More... | |
void | primBC (FArrayBox &a_WGdnv, const FArrayBox &a_Wextrap, const FArrayBox &a_W, const int &a_dir, const Side::LoHiSide &a_side, const Real &a_time) |
Set boundary primitive values. More... | |
void | setBdrySlopes (FArrayBox &a_dW, const FArrayBox &a_W, const int &a_dir, const Real &a_time) |
Set boundary slopes. More... | |
void | artViscBC (FArrayBox &a_F, const FArrayBox &a_U, const FArrayBox &a_divVel, const int &a_dir, const Real &a_time) |
Adjust boundary fluxes to account for artificial viscosity. More... | |
Public Member Functions inherited from PhysIBC | |
PhysIBC () | |
Constructor. More... | |
virtual | ~PhysIBC () |
Destructor. More... | |
virtual void | define (const ProblemDomain &a_domain, const Real &a_dx) |
Define the object. More... | |
virtual void | getBoundaryFaces (Box &a_boundaryBox, const Box &a_dataFaceBox, const int &a_dir, const Side::LoHiSide &a_side) |
This function is called by primBC() to get boundary faces of a Box. More... | |
Protected Attributes | |
bool | m_isFortranCommonSet |
Protected Attributes inherited from PhysIBC | |
bool | m_isDefined |
ProblemDomain | m_domain |
Real | m_dx |
Example of an circular/spherical explosion.
Parameters: a_smallPressure - Lower limit for pressure (returned) a_gamma - Gamma for polytropic, gamma-law gas a_ms - Mach shock number of the discontinuity a_center - Center of the explosion a_size - Initial radius of the explosion a_velocity - Initial velocity of the system a_artvisc - Artificial viscosity coefficient
ExplosionIBC::ExplosionIBC | ( | ) |
Null constructor.
ExplosionIBC::ExplosionIBC | ( | Real & | a_smallPressure, |
const Real & | a_gamma, | ||
const Real & | a_ms, | ||
const RealVect & | a_center, | ||
const Real & | a_size, | ||
const RealVect & | a_velocity, | ||
const Real & | a_artvisc | ||
) |
Constructor which defines parameters used by Fortran routines.
|
virtual |
Destructor.
void ExplosionIBC::setFortranCommon | ( | Real & | a_smallPressure, |
const Real & | a_gamma, | ||
const Real & | a_ms, | ||
const RealVect & | a_center, | ||
const Real & | a_size, | ||
const RealVect & | a_velocity, | ||
const Real & | a_artvisc | ||
) |
Sets parameters in a common block used by Fortran routines.
|
virtual |
Set up initial conditions.
Implements PhysIBC.
|
virtual |
Set boundary primitive values.
Implements PhysIBC.
|
virtual |
Set boundary slopes.
The boundary slopes in a_dW are already set to one sided difference approximations. If this function doesn't change them they will be used for the slopes at the boundaries.
Implements PhysIBC.
|
virtual |
Adjust boundary fluxes to account for artificial viscosity.
Implements PhysIBC.
|
protected |