Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

TestsIBC Class Reference

#include <TestsIBC.H>

Inheritance diagram for TestsIBC:

Inheritance graph
[legend]
Collaboration diagram for TestsIBC:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TestsIBC ()
 Null constructor.
 TestsIBC (const std::string a_problem, const Real &a_gamma, const Real &a_ms, const RealVect &a_center, const Real &a_size, const RealVect &a_velocity, const Real &a_artvisc, const Real &a_rsTolerance, const Real &a_maxRsIter, const Real &a_maxMach)
 Constructor which defines parameters used by Fortran routines.
 ~TestsIBC ()
 Destructor.
void setFortranCommon (const Real &a_gamma, const Real &a_ms, const RealVect &a_center, const Real &a_size, const RealVect &a_velocity, const Real &a_artvisc, const Real &a_rsTolerance, const Real &a_maxRsIter, const Real &a_maxMach)
 Sets parameters in a common block used by Fortran routines.
void setTestProblem (const std::string a_problem)
 set the specific test problem
void setTestProblem (const int &a_problem)
 set the specific test problem
void setFortranCommonSet ()
 Set the flag m_isFortranCommonSet to true.
PhysIBCnew_physIBC ()
 Factory method - this object is its own factory.
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.
void setBdrySlopes (FArrayBox &a_dW, const FArrayBox &a_W, const int &a_dir, const Real &a_time)
 Set boundary slopes.
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.
void initialize (LevelData< FArrayBox > &a_U)
 Set up initial conditions for gas and particles.

Protected Attributes

bool m_isFortranCommonSet
bool m_isProblemSet
int m_problem

Detailed Description

Parameters: a_gamma - Gamma for polytropic, gamma-law gas a_size - Initial radius of the explosion a_velocity - Initial velocity of the gas a_artvisc - Artificial viscosity coefficient a_rsTolerance - tolerance for the Riemann solver a_max_Rs_iter - max number of iteration in the Riemann solver a_Sthreshold - min Eth/Etot to switch from Etot to entropy (S) eq. a_maxMach - maximum Mach number beyond which to use the entropy instead of the pressure


Constructor & Destructor Documentation

TestsIBC::TestsIBC  ) 
 

Null constructor.

TestsIBC::TestsIBC const std::string  a_problem,
const Real a_gamma,
const Real a_ms,
const RealVect a_center,
const Real a_size,
const RealVect a_velocity,
const Real a_artvisc,
const Real a_rsTolerance,
const Real a_maxRsIter,
const Real a_maxMach
 

Constructor which defines parameters used by Fortran routines.

Parameters: a_gamma - Gamma for polytropic, gamma-law gas a_size - Initial radius of the explosion a_velocity - Initial velocity of the gas a_artvisc - Artificial viscosity coefficient a_rsTolerance - tolerance for the Riemann solver a_max_Rs_iter - max number of iteration in the Riemann solver a_Sthreshold - min Eth/Etot to switch from Etot to entropy (S) eq. a_maxMach - maximum Mach number beyond which to use the entropy instead of the pressure

TestsIBC::~TestsIBC  )  [inline]
 

Destructor.


Member Function Documentation

void TestsIBC::artViscBC FArrayBox a_F,
const FArrayBox a_U,
const FArrayBox a_divVel,
const int &  a_dir,
const Real a_time
[virtual]
 

Adjust boundary fluxes to account for artificial viscosity.

Implements PhysIBC.

void TestsIBC::initialize LevelData< FArrayBox > &  a_U  )  [virtual]
 

Set up initial conditions for gas and particles.

Implements PhysIBC.

PhysIBC* TestsIBC::new_physIBC  )  [virtual]
 

Factory method - this object is its own factory.

Return a pointer to a new PhysIBC object with m_isDefined = false (i.e., its define() must be called before it is used) and m_isFortranCommonSet set to value of m_isFortranCommonset in the current (factory) object.

Implements PhysIBC.

void TestsIBC::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
[virtual]
 

Set boundary primitive values.

Implements PhysIBC.

void TestsIBC::setBdrySlopes FArrayBox a_dW,
const FArrayBox a_W,
const int &  a_dir,
const Real a_time
[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.

void TestsIBC::setFortranCommon const Real a_gamma,
const Real a_ms,
const RealVect a_center,
const Real a_size,
const RealVect a_velocity,
const Real a_artvisc,
const Real a_rsTolerance,
const Real a_maxRsIter,
const Real a_maxMach
 

Sets parameters in a common block used by Fortran routines.

Parameters: a_gamma - Gamma for polytropic, gamma-law gas a_size - Initial radius of the explosion a_velocity - Initial velocity of the gas a_artvisc - Artificial viscosity coefficient a_rsTolerance - tolerance for the Riemann solver a_max_Rs_iter - max number of iteration in the Riemann solver a_Sthreshold - min Eth/Etot to switch from Etot to entropy (S) eq. a_maxMach - maximum Mach number beyond which to use the entropy instead of the pressure

void TestsIBC::setFortranCommonSet  ) 
 

Set the flag m_isFortranCommonSet to true.

Set the flag m_isFortranCommonSet to true so that new IBCs made with new_physIBC() will have this flag set without calling setFortranCommon() (this is a clumsy design and should be improved).

void TestsIBC::setTestProblem const int &  a_problem  ) 
 

set the specific test problem

void TestsIBC::setTestProblem const std::string  a_problem  ) 
 

set the specific test problem


Member Data Documentation

bool TestsIBC::m_isFortranCommonSet [protected]
 

bool TestsIBC::m_isProblemSet [protected]
 

int TestsIBC::m_problem [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Oct 5 14:02:30 2005 for Chombo&AMRSelfGravity by  doxygen 1.4.1