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

AdvectIBC Class Reference

IBC for simple advection. More...

#include <AdvectIBC.H>

Collaboration diagram for AdvectIBC:

Collaboration graph
[legend]
List of all members.

Public Methods

 AdvectIBC ()
 Null constructor.

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

 ~AdvectIBC ()
 Destructor.

OldPhysIBC * new_physIBC ()
 Factory method - this object is its own factory.

void setDefaultValues ()
 set default boundary values

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.

void advectionVel (const RealVect &a_advVel)
 set velocity

const RealVectadvectionVel () const
void probType (const int a_probtype)
 set problem type

void setBoundaryValue (Real a_bcVal, int a_dir, Side::LoHiSide a_hiLo)
 set boundary value (default is 0)

Real getBoundaryValue (int a_dir, Side::LoHiSide a_hiLo) const
 access boundary value

void setSlopeValue (Real a_slopeVal, int a_dir, Side::LoHiSide a_hiLo)
 set slope value (default is 0)

Real getSlopeValue (int a_dir, Side::LoHiSide a_hiLo) const
 access slope value

int probType () const
 accessor


Protected Attributes

RealVect m_velocity
 advection velocity field

Real m_bcVal [SpaceDim][2]
Real m_slopeVal [SpaceDim][2]
bool m_isBCvalSet
bool m_isSlopeValSet
int m_probtype
 initial condition type


Detailed Description

IBC for simple advection.

Parameters:


Constructor & Destructor Documentation

AdvectIBC::AdvectIBC  
 

Null constructor.

AdvectIBC::AdvectIBC const Real   a_gamma,
const Real   a_ambientDensity,
const Real   a_deltaDensity,
const int &    a_pressure,
const RealVect   a_center,
const Real   a_size,
const RealVect   a_velocity
 

Constructor which defines parameters used by Fortran routines.

AdvectIBC::~AdvectIBC   [inline]
 

Destructor.


Member Function Documentation

const RealVect& AdvectIBC::advectionVel   const
 

void AdvectIBC::advectionVel const RealVect   a_advVel
 

set velocity

void AdvectIBC::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.

Real AdvectIBC::getBoundaryValue int    a_dir,
Side::LoHiSide    a_hiLo
const
 

access boundary value

Real AdvectIBC::getSlopeValue int    a_dir,
Side::LoHiSide    a_hiLo
const
 

access slope value

void AdvectIBC::initialize LevelData< FArrayBox > &    a_U
 

Set up initial conditions.

OldPhysIBC* AdvectIBC::new_physIBC  
 

Factory method - this object is its own factory.

Return a pointer to a new OldPhysIBC 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.

int AdvectIBC::probType   const
 

accessor

void AdvectIBC::probType const int    a_probtype
 

set problem type

void AdvectIBC::setBdrySlopes FArrayBox   a_dW,
const FArrayBox   a_W,
const int &    a_dir,
const Real   a_time
 

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.

void AdvectIBC::setBoundaryValue Real    a_bcVal,
int    a_dir,
Side::LoHiSide    a_hiLo
 

set boundary value (default is 0)

void AdvectIBC::setDefaultValues  
 

set default boundary values

void AdvectIBC::setSlopeValue Real    a_slopeVal,
int    a_dir,
Side::LoHiSide    a_hiLo
 

set slope value (default is 0)


Member Data Documentation

Real AdvectIBC::m_bcVal[SpaceDim][2] [protected]
 

bool AdvectIBC::m_isBCvalSet [protected]
 

bool AdvectIBC::m_isSlopeValSet [protected]
 

int AdvectIBC::m_probtype [protected]
 

initial condition type

Real AdvectIBC::m_slopeVal[SpaceDim][2] [protected]
 

RealVect AdvectIBC::m_velocity [protected]
 

advection velocity field


The documentation for this class was generated from the following file:
Generated on Wed Jan 19 17:55:23 2005 for Chombo&INSwithParticles by doxygen1.2.16