Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

SineIBC Class Reference

Example of a sinusoidal density variation plus a constant density. More...

#include <SineIBC.H>

Inheritance diagram for SineIBC:

Inheritance graph
[legend]
Collaboration diagram for SineIBC:

Collaboration graph
[legend]
List of all members.

Public Methods

 SineIBC ()
 Null constructor.

 SineIBC (const Real &a_gamma, const Real &a_ambientDensity, const Real &a_deltaDensity, const int &a_pressure, const RealVect &a_center, const RealVect &a_velocity, const Real &a_artvisc)
 Constructor which defines parameters used by Fortran routines.

 ~SineIBC ()
 Destructor.

void setFortranCommon (const Real &a_gamma, const Real &a_ambientDensity, const Real &a_deltaDensity, const int &a_pressure, const RealVect &a_center, const RealVect &a_velocity, const Real &a_artvisc)
 Sets parameters in a common block used by Fortran routines.

void setFortranCommonSet ()
 Set the flag m_isFortranCommonSet to true.

PhysIBCnew_physIBC ()
 Factory method - this object is its own factory.

void fluxBC (FArrayBox &a_F, const FArrayBox &a_W, const FArrayBox &a_Wextrap, const int &a_dir, const Side::LoHiSide &a_side, const Real &a_time)
 Set boundary fluxes.

void setBdrySlopes (FArrayBox &a_dW, const FArrayBox &a_W, const int &a_dir, const Real &a_time)
 Set boundary slopes.

void initialize (LevelData< FArrayBox > &a_U)
 Set up initial conditions.


Protected Attributes

bool m_isFortranCommonSet

Detailed Description

Example of a sinusoidal density variation plus a constant density.

Parameters: a_gamma - Gamma for polytropic, gamma-law gas a_ambientDensity - Ambient density add to the density sinusoid a_deltaDensity - Mean of the sinusoid a_pressure - If 0, use isentropic pressure if 1, use the constant pressure of 1.0 a_center - Center of the peak of the sinusoid a_velocity - Initial velocity of the gas a_artvisc - Artificial viscosity coefficient

The sine is adjusted so that one period fits in the domain in each direction - assuming the domain is a square (required).


Constructor & Destructor Documentation

SineIBC::SineIBC  
 

Null constructor.

SineIBC::SineIBC const Real   a_gamma,
const Real   a_ambientDensity,
const Real   a_deltaDensity,
const int &    a_pressure,
const RealVect   a_center,
const RealVect   a_velocity,
const Real   a_artvisc
 

Constructor which defines parameters used by Fortran routines.

SineIBC::~SineIBC   [inline]
 

Destructor.


Member Function Documentation

void SineIBC::fluxBC FArrayBox   a_F,
const FArrayBox   a_W,
const FArrayBox   a_Wextrap,
const int &    a_dir,
const Side::LoHiSide   a_side,
const Real   a_time
[virtual]
 

Set boundary fluxes.

Implements PhysIBC.

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

Set up initial conditions.

Implements PhysIBC.

PhysIBC* SineIBC::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 SineIBC::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 SineIBC::setFortranCommon const Real   a_gamma,
const Real   a_ambientDensity,
const Real   a_deltaDensity,
const int &    a_pressure,
const RealVect   a_center,
const RealVect   a_velocity,
const Real   a_artvisc
 

Sets parameters in a common block used by Fortran routines.

void SineIBC::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

bool SineIBC::m_isFortranCommonSet [protected]
 


The documentation for this class was generated from the following file:
Generated on Tue Jul 2 10:44:17 2002 for Chombo by doxygen1.2.16