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

CodeTestsIBC Class Reference

#include <CodeTestsIBC.H>

Inheritance diagram for CodeTestsIBC:

Inheritance graph
[legend]
Collaboration diagram for CodeTestsIBC:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CodeTestsIBC ()
 Null constructor.
 CodeTestsIBC (const Real &a_gamma, const Real &a_artvisc, const Real &a_rsTolerance, const Real &a_maxRsIter, const Real &a_maxMach, const CodeUnits &a_codeUnits)
 Constructor which defines parameters used by Fortran routines.
 ~CodeTestsIBC ()
 Destructor.
void setFortranCommon (const Real &a_gamma, 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 setDustCollapse (const Real &a_radius, const Real &a_density, const RealVect &a_shift=RealVect::Zero)
void setFortranCommonSet ()
 Set the flag m_isFortranCommonSet to true.
void setCodeUnits (const CodeUnits &a_codeUnits)
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.

Protected Member Functions

void dustCollapse (LevelData< FArrayBox > &a_U)

Protected Attributes

Real m_density
Real m_radius
RealVect m_shift
CodeUnits m_codeUnits
int m_problem
bool m_isFortranCommonSet

Detailed Description

General input for Hydro: a_gamma - Gamma for polytropic, gamma-law 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_maxMach - max Mach number to switch from Etot to entropy (S) eq.

Initial conditions parameters for various code tests.

a_cloudRadius - Initial radius of the dust sphere a_cloudDensity - Initial density of the dust sphere

Gas Test: a_center - Initial radius of the explosion a_radius - Initial radius of the explosion a_velocity - Initial velocity of the gas a_ms - Mach number a_gasProblem - specific gas problem

Other Parameters: a_codeUnits - contains the units of the code;


Constructor & Destructor Documentation

CodeTestsIBC::CodeTestsIBC  ) 
 

Null constructor.

CodeTestsIBC::CodeTestsIBC const Real a_gamma,
const Real a_artvisc,
const Real a_rsTolerance,
const Real a_maxRsIter,
const Real a_maxMach,
const CodeUnits a_codeUnits
 

Constructor which defines parameters used by Fortran routines.

General input for Hydro: a_gamma - Gamma for polytropic, gamma-law 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_maxMach - max Mach number to switch from Etot to entropy (S) eq.

Other Parameters: a_codeUnits - contains the units of the code;

CodeTestsIBC::~CodeTestsIBC  )  [inline]
 

Destructor.


Member Function Documentation

void CodeTestsIBC::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 CodeTestsIBC::dustCollapse LevelData< FArrayBox > &  a_U  )  [protected]
 

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

Set up initial conditions for gas.

Implements PhysIBC.

PhysIBC* CodeTestsIBC::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 CodeTestsIBC::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 CodeTestsIBC::setBdrySlopes FArrayBox a_dW,
const FArrayBox a_W,
const int &  a_dir,
const Real a_time
[virtual]
 

Set boundary slopes.

Implements PhysIBC.

void CodeTestsIBC::setCodeUnits const CodeUnits a_codeUnits  ) 
 

void CodeTestsIBC::setDustCollapse const Real a_radius,
const Real a_density,
const RealVect a_shift = RealVect::Zero
 

void CodeTestsIBC::setFortranCommon const Real a_gamma,
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.

General input for Hydro: a_gamma - Gamma for polytropic, gamma-law 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_maxMach - max Mach number to switch from Etot to entropy (S) eq.

Other Parameters: a_codeUnits - contains the units of the code;

void CodeTestsIBC::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).


Member Data Documentation

CodeUnits CodeTestsIBC::m_codeUnits [protected]
 

Real CodeTestsIBC::m_density [protected]
 

bool CodeTestsIBC::m_isFortranCommonSet [protected]
 

int CodeTestsIBC::m_problem [protected]
 

Real CodeTestsIBC::m_radius [protected]
 

RealVect CodeTestsIBC::m_shift [protected]
 


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