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

VelIBC Class Reference

IBC for simple Velocity advection (solid wall) boundary conditions. More...

#include <VelIBC.H>

Collaboration diagram for VelIBC:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 VelIBC ()
 Null constructor.

 VelIBC (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.

 ~VelIBC ()
 Destructor.

PhysIBC * 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 setNormalWallVel (Real a_bcVal, int a_dir, Side::LoHiSide a_hiLo)
 set boundary value (default is 0)

Real getNormalWallVel (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 Velocity advection (solid wall) boundary conditions.

This IBC sets normal component of velocities to the prescribed value (normally 0) at physical boundaries, and uses extrapolation to set tangential velocities.


Constructor & Destructor Documentation

VelIBC::VelIBC  ) 
 

Null constructor.

VelIBC::VelIBC 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.

VelIBC::~VelIBC  )  [inline]
 

Destructor.


Member Function Documentation

const RealVect& VelIBC::advectionVel  )  const
 

void VelIBC::advectionVel const RealVect a_advVel  ) 
 

set velocity

void VelIBC::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 VelIBC::getNormalWallVel int  a_dir,
Side::LoHiSide  a_hiLo
const
 

access boundary value

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

access slope value

void VelIBC::initialize LevelData< FArrayBox > &  a_U  ) 
 

Set up initial conditions.

PhysIBC* VelIBC::new_physIBC  ) 
 

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.

int VelIBC::probType  )  const
 

accessor

void VelIBC::probType const int  a_probtype  ) 
 

set problem type

void VelIBC::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 VelIBC::setDefaultValues  ) 
 

set default boundary values

void VelIBC::setNormalWallVel Real  a_bcVal,
int  a_dir,
Side::LoHiSide  a_hiLo
 

set boundary value (default is 0)

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

set slope value (default is 0)


Member Data Documentation

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

bool VelIBC::m_isBCvalSet [protected]
 

bool VelIBC::m_isSlopeValSet [protected]
 

int VelIBC::m_probtype [protected]
 

initial condition type

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

RealVect VelIBC::m_velocity [protected]
 

advection velocity field


The documentation for this class was generated from the following file:
Generated on Wed Jun 2 13:59:09 2004 for Chombo&INSwithParticles by doxygen 1.3.2