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

WaveMHDIBC Class Reference

#include <WaveMHDIBC.H>

Inheritance diagram for WaveMHDIBC:

Inheritance graph
[legend]
Collaboration diagram for WaveMHDIBC:

Collaboration graph
[legend]
List of all members.

Detailed Description

Example of a wedge at zero attack angle.

Parameters: a_gamma - Gamma for polytropic, gamma-law gas a_alpha - The angle from horizontal to the wedge edge a_ms - Mach shock number a_xcorner - Position of the corner/tip of the wedge

This entire problem is rotated so that the wedge edge is horizontal in the problem domain.


Public Member Functions

 WaveMHDIBC ()
 Null constructor.

 WaveMHDIBC (const Real &a_gamma, const int &a_pdir, const int &a_kratio, const int &a_waveNumber, const Real &a_pertAmplitude)
 Constructor which defines parameters used by Fortran routines.

 ~WaveMHDIBC ()
 Destructor.

void setParameters (const Real &a_gamma, const int &a_pdir, const int &a_kratio, const int &a_waveNumber, const Real &a_pertAmplitude)
 Sets parameters in a common block used by Fortran routines.

void setParameterSet ()
 Set the flag m_isParameterSet 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_isParameterSet


Constructor & Destructor Documentation

WaveMHDIBC::WaveMHDIBC  ) 
 

Null constructor.

WaveMHDIBC::WaveMHDIBC const Real a_gamma,
const int &  a_pdir,
const int &  a_kratio,
const int &  a_waveNumber,
const Real a_pertAmplitude
 

Constructor which defines parameters used by Fortran routines.

WaveMHDIBC::~WaveMHDIBC  )  [inline]
 

Destructor.


Member Function Documentation

void WaveMHDIBC::setParameters const Real a_gamma,
const int &  a_pdir,
const int &  a_kratio,
const int &  a_waveNumber,
const Real a_pertAmplitude
 

Sets parameters in a common block used by Fortran routines.

void WaveMHDIBC::setParameterSet  ) 
 

Set the flag m_isParameterSet to true.

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

PhysIBC* WaveMHDIBC::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_isParameterSet set to value of m_isParametersset in the current (factory) object.

Implements PhysIBC.

void WaveMHDIBC::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 WaveMHDIBC::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 WaveMHDIBC::initialize LevelData< FArrayBox > &  a_U  )  [virtual]
 

Set up initial conditions.

Implements PhysIBC.


Member Data Documentation

bool WaveMHDIBC::m_isParameterSet [protected]
 


The documentation for this class was generated from the following file:
Generated on Fri Jul 2 17:56:05 2004 for Chombo by doxygen 1.3.2