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

AmrProjector Class Reference

this class manages the various forms of the non-subcycled projection More...

#include <AmrProjector.H>

Collaboration diagram for AmrProjector:

Collaboration graph
[legend]
List of all members.

Public Methods

 AmrProjector ()
 AmrProjector (const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< ProblemDomain > &a_vectDomain, const Vector< Real > &a_vectDx, const Vector< int > &a_vectRefRatio, int a_lbase, const PhysBCUtil &a_physBC)
 full constructor

 ~AmrProjector ()
 destructor

void define (const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< ProblemDomain > &a_vectDomain, const Vector< Real > &a_vectDx, const Vector< int > &a_vectRefRatio, int a_lbase, const PhysBCUtil &a_physBC)
 define function

void regrid (const Vector< DisjointBoxLayout > &a_newGrids)
 change grids and re-initialize after re-gridding

void setDefaultValues ()
 set default values for parameters

void init (const AmrProjector &a_oldProj)
 initialize new projection with data from old projection

void variableSetUp ()
 define static parts

void writeCheckpointHeader (HDF5Handle &a_handle) const
 write checkpoint header

void writeCheckpoint (HDF5Handle &a_handle) const
 write this class to a checkpoint file for later restart

void readCheckpointHeader (HDF5Handle &a_handle)
 read the checkpoint header

void readCheckpoint (HDF5Handle &a_handle)
 read this class from a checkpoint file

void MacProject (Vector< LevelData< FluxBox > * > &a_uEdge, Vector< LevelData< FArrayBox > * > &a_vectPhi, Real a_oldTime, Real a_dt)
void CCProject (Vector< LevelData< FArrayBox > * > &a_velocity, Vector< LevelData< FArrayBox > * > &a_vectPi, const Real a_newTime, const Real a_dt)
void initialVelocityProject (Vector< LevelData< FArrayBox > * > &a_velocity)
int finestLevel () const
 access functions finest defined level

const ProblemDomain & dProblem (int a_level) const
const DisjointBoxLayout & getBoxes (int a_level) const
Real dx (int a_level) const
void gradPhi (LevelData< FArrayBox > &a_gradPhi, const LevelData< FArrayBox > &a_phi, int a_dir, int a_level) const
 returns face-centered grad(phi) in direction dir

void gradPhi (LevelData< FluxBox > &a_gradPhi, const LevelData< FArrayBox > &a_phi, int a_level) const
 returns all components of grad(phi) (gradPhi should be correct size)

void gradPi (LevelData< FArrayBox > &a_gradPi, const LevelData< FArrayBox > &a_Pi, int a_dir, int a_level) const
 returns grad(pi) in direction dir on level a_level.

void gradPi (LevelData< FArrayBox > &a_gradPi, const LevelData< FArrayBox > &a_Pi, int a_level) const
 Returns grad(pi) in all directions into SpaceDim-component gradPi.

void setPressureBCs (Vector< LevelData< FArrayBox > * > &a_vectPressure) const
 set physical and CF BC's on pressure

bool isInitialized () const
 has this object been completely initialized?

bool doQuadInterp () const
 use quadratic interpolation (instead of extrap) for c/f bc

void verbosity (int a_verbosity)
 set verbosity

int verbosity () const
 returns verbosity

void setPhysBC (const PhysBCUtil &a_bc)
 sets physBCs

PhysBCUtil * getPhysBCPtr () const

Protected Methods

void applyMacCorrection (Vector< LevelData< FluxBox > * > &a_uEdge, Vector< LevelData< FArrayBox > * > &a_vectPhi)
 returns uEdge - G(phi_mac); also sets CF BC's if necessary

void correctCCVelocities (Vector< LevelData< FArrayBox > * > &a_velocity, const Vector< LevelData< FArrayBox > * > &a_vectPi, const Real scale) const
 vel := vel - scale*G_(pi); also sets CF BC's if necessary

void defineSolver (AMRSolver &a_solver, const DomainGhostBC &a_physBC)
void postRestart ()
 just in case there are any loose ends after restarting

void clearStorage ()
bool isDefined () const

Detailed Description

this class manages the various forms of the non-subcycled projection

this class performs the various cell-centered projections required by the IAMR algorithm. These include the multilevel MAC and Cell-centered projection solves


Constructor & Destructor Documentation

AmrProjector::AmrProjector (    ) 
 

AmrProjector::AmrProjector (  const Vector< DisjointBoxLayout > &    a_vectGrids,
const Vector< ProblemDomain > &    a_vectDomain,
const Vector< Real > &    a_vectDx,
const Vector< int > &    a_vectRefRatio,
int    a_lbase,
const PhysBCUtil &    a_physBC
) 
 

full constructor

AmrProjector::~AmrProjector (    ) 
 

destructor


Member Function Documentation

void AmrProjector::applyMacCorrection (  Vector< LevelData< FluxBox > * > &    a_uEdge,
Vector< LevelData< FArrayBox > * > &    a_vectPhi
)  [protected]
 

returns uEdge - G(phi_mac); also sets CF BC's if necessary

void AmrProjector::CCProject (  Vector< LevelData< FArrayBox > * > &    a_velocity,
Vector< LevelData< FArrayBox > * > &    a_vectPi,
const Real    a_newTime,
const Real    a_dt
) 
 

void AmrProjector::clearStorage (    )  [protected]
 

void AmrProjector::correctCCVelocities (  Vector< LevelData< FArrayBox > * > &    a_velocity,
const Vector< LevelData< FArrayBox > * > &    a_vectPi,
const Real    scale
)  const [protected]
 

vel := vel - scale*G_(pi); also sets CF BC's if necessary

void AmrProjector::define (  const Vector< DisjointBoxLayout > &    a_vectGrids,
const Vector< ProblemDomain > &    a_vectDomain,
const Vector< Real > &    a_vectDx,
const Vector< int > &    a_vectRefRatio,
int    a_lbase,
const PhysBCUtil &    a_physBC
) 
 

define function

void AmrProjector::defineSolver (  AMRSolver &    a_solver,
const DomainGhostBC &    a_physBC
)  [protected]
 

bool AmrProjector::doQuadInterp (    )  const
 

use quadratic interpolation (instead of extrap) for c/f bc

const ProblemDomain& AmrProjector::dProblem (  int    a_level )  const
 

Real AmrProjector::dx (  int    a_level )  const
 

int AmrProjector::finestLevel (    )  const
 

access functions finest defined level

const DisjointBoxLayout& AmrProjector::getBoxes (  int    a_level )  const
 

PhysBCUtil* AmrProjector::getPhysBCPtr (    )  const
 

void AmrProjector::gradPhi (  LevelData< FluxBox > &    a_gradPhi,
const LevelData< FArrayBox > &    a_phi,
int    a_level
)  const
 

returns all components of grad(phi) (gradPhi should be correct size)

void AmrProjector::gradPhi (  LevelData< FArrayBox > &    a_gradPhi,
const LevelData< FArrayBox > &    a_phi,
int    a_dir,
int    a_level
)  const
 

returns face-centered grad(phi) in direction dir

Assumes that all BC's on phi have been set.

void AmrProjector::gradPi (  LevelData< FArrayBox > &    a_gradPi,
const LevelData< FArrayBox > &    a_Pi,
int    a_level
)  const
 

Returns grad(pi) in all directions into SpaceDim-component gradPi.

assumes all ghost cell BC's have been set on a_Pi.

void AmrProjector::gradPi (  LevelData< FArrayBox > &    a_gradPi,
const LevelData< FArrayBox > &    a_Pi,
int    a_dir,
int    a_level
)  const
 

returns grad(pi) in direction dir on level a_level.

note that this assumes all BC's on Pi have already been set.

void AmrProjector::init (  const AmrProjector &    a_oldProj ) 
 

initialize new projection with data from old projection

void AmrProjector::initialVelocityProject (  Vector< LevelData< FArrayBox > * > &    a_velocity ) 
 

bool AmrProjector::isDefined (    )  const [inline, protected]
 

bool AmrProjector::isInitialized (    )  const
 

has this object been completely initialized?

void AmrProjector::MacProject (  Vector< LevelData< FluxBox > * > &    a_uEdge,
Vector< LevelData< FArrayBox > * > &    a_vectPhi,
Real    a_oldTime,
Real    a_dt
) 
 

void AmrProjector::postRestart (    )  [protected]
 

just in case there are any loose ends after restarting

void AmrProjector::readCheckpoint (  HDF5Handle &    a_handle ) 
 

read this class from a checkpoint file

void AmrProjector::readCheckpointHeader (  HDF5Handle &    a_handle ) 
 

read the checkpoint header

void AmrProjector::regrid (  const Vector< DisjointBoxLayout > &    a_newGrids ) 
 

change grids and re-initialize after re-gridding

void AmrProjector::setDefaultValues (    ) 
 

set default values for parameters

void AmrProjector::setPhysBC (  const PhysBCUtil &    a_bc ) 
 

sets physBCs

void AmrProjector::setPressureBCs (  Vector< LevelData< FArrayBox > * > &    a_vectPressure )  const
 

set physical and CF BC's on pressure

void AmrProjector::variableSetUp (    ) 
 

define static parts

int AmrProjector::verbosity (    )  const
 

returns verbosity

void AmrProjector::verbosity (  int    a_verbosity ) 
 

set verbosity

void AmrProjector::writeCheckpoint (  HDF5Handle &    a_handle )  const
 

write this class to a checkpoint file for later restart

void AmrProjector::writeCheckpointHeader (  HDF5Handle &    a_handle )  const
 

write checkpoint header


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