ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
CellInterface Class Reference

#include <CellInterface.h>

Inherited by BoundCond, and CellInterfaceO2.

Public Member Functions

 CellInterface ()
 
 CellInterface (const int &lvl)
 
virtual ~CellInterface ()
 
void setFace (Face *face)
 
virtual void computeFlux (double &dtMax, Limiter &globalLimiter, Limiter &interfaceLimiter, Limiter &globalVolumeFractionLimiter, Limiter &interfaceVolumeFractionLimiter, Prim type=vecPhases)
 
virtual void computeFluxAddPhys (AddPhys &addPhys)
 
virtual void solveRiemann (double &dtMax, Limiter &, Limiter &, Limiter &, Limiter &, Prim=vecPhases)
 
virtual void initialize (Cell *cellLeft, Cell *cellRight)
 
void initializeGauche (Cell *cellLeft)
 
virtual void initializeDroite (Cell *cellRight)
 
virtual void addFlux (const double &coefAMR)
 
void subtractFlux (const double &coefAMR)
 
void addFluxRotatingRegion ()
 
void substractFluxRotatingRegion ()
 
double distance (Cell *c)
 
virtual int whoAmI () const
 
virtual int whoAmIHeat () const
 
virtual bool isMRFWall () const
 Returns heat boundary type for wall (see BoundCondWall.h)
 
virtual void checkMrfInterface (Source *sourceMRF)
 
void solveRiemannMRF (double &dtMax)
 
virtual void allocateSlopes (int &)
 
virtual void computeSlopes (Prim=vecPhases)
 
virtual PhasegetSlopesPhase (const int &) const
 
virtual MixturegetSlopesMixture () const
 
virtual TransportgetSlopesTransport (const int &) const
 
FacegetFace ()
 
ModelgetMod () const
 
CellgetCellLeft () const
 
CellgetCellRight () const
 
virtual const int & getNumPhys () const
 
virtual double getBoundData (VarBoundary) const
 
virtual double getBoundaryHeatQuantity () const
 
virtual CoordgetWallRotationalVelocityMRF ()
 Returns imposed heat quantity on the wall, could be temperature or flux density (see BounCondWall.h)
 
virtual void computeXi (const double &criteriaVar, const bool &varRho, const bool &varP, const bool &varU, const bool &varAlpha)
 
void computeCritereAMR (const double &criteriaVar, Variable nameVariable, int num=0)
 
virtual void computeFluxXi ()
 
virtual void creerCellInterfaceChild ()
 
virtual void creerCellInterfaceChildInterne (const int &lvl, std::vector< CellInterface * > *childrenInternalCellInterfaces)
 
void creerFaceChild (CellInterface *cellInterfaceParent)
 
virtual void raffineCellInterfaceExterne (const int &nbCellsY, const int &nbCellsZ, const double &dXParent, const double &dYParent, const double &dZParent, Cell *cellRef, const int &dim)
 
virtual void deraffineCellInterfaceExterne (Cell *cellRef)
 
void deraffineCellInterfacesChildren ()
 
void constructionArrayExternalCellInterfacesLvl (std::vector< CellInterface * > *cellInterfacesLvl)
 
bool getSplit () const
 
const int & getLvl () const
 
int getNumberCellInterfacesChildren () const
 
CellInterfacegetCellInterfaceChild (const int &numChild)
 
CellInterfacegetCellInterfaceChildBack ()
 
void updatePointersInternalCellInterfaces ()
 

Protected Attributes

Cellm_cellLeft
 
Cellm_cellRight
 
Facem_face
 
int m_lvl
 
std::vector< CellInterface * > m_cellInterfacesChildren
 
bool m_mrfInterface
 
bool m_mrfStaticRegionIsLeft
 
Coord m_omega
 

Constructor & Destructor Documentation

◆ CellInterface() [1/2]

CellInterface::CellInterface ( )

Default constructor

◆ CellInterface() [2/2]

CellInterface::CellInterface ( const int &  lvl)

◆ ~CellInterface()

CellInterface::~CellInterface ( )
virtual

Default destructor

Member Function Documentation

◆ addFlux()

void CellInterface::addFlux ( const double &  coefAMR)
virtual

Reimplemented in BoundCond.

◆ addFluxRotatingRegion()

void CellInterface::addFluxRotatingRegion ( )

◆ allocateSlopes()

virtual void CellInterface::allocateSlopes ( int &  )
inlinevirtual

◆ checkMrfInterface()

void CellInterface::checkMrfInterface ( Source sourceMRF)
virtual

Reimplemented in BoundCond.

◆ computeCritereAMR()

void CellInterface::computeCritereAMR ( const double &  criteriaVar,
Variable  nameVariable,
int  num = 0 
)

Calcul de xi via le criteria de variation

◆ computeFlux()

void CellInterface::computeFlux ( double &  dtMax,
Limiter globalLimiter,
Limiter interfaceLimiter,
Limiter globalVolumeFractionLimiter,
Limiter interfaceVolumeFractionLimiter,
Prim  type = vecPhases 
)
virtual

Reimplemented in BoundCond, and CellInterfaceO2.

◆ computeFluxAddPhys()

void CellInterface::computeFluxAddPhys ( AddPhys addPhys)
virtual

Reimplemented in BoundCond.

◆ computeFluxXi()

void CellInterface::computeFluxXi ( )
virtual

Calcul des flux de Xi (diffusion) pour smoothing

Reimplemented in BoundCond.

◆ computeSlopes()

virtual void CellInterface::computeSlopes ( Prim  = vecPhases)
inlinevirtual

Ne fait rien pour des cell interfaces ordre 1

Reimplemented in BoundCondWallO2Cartesian, CellInterfaceO2Cartesian, and CellInterfaceO2.

◆ computeXi()

void CellInterface::computeXi ( const double &  criteriaVar,
const bool &  varRho,
const bool &  varP,
const bool &  varU,
const bool &  varAlpha 
)
virtual

Calcul de la variable Xi pour criteria de (de)raffinement a priori

Reimplemented in BoundCond.

◆ constructionArrayExternalCellInterfacesLvl()

void CellInterface::constructionArrayExternalCellInterfacesLvl ( std::vector< CellInterface * > *  cellInterfacesLvl)

Construction of new array of cell interfaces of the level (lvl + 1), external cell interfaces added here

◆ creerCellInterfaceChild()

◆ creerCellInterfaceChildInterne()

void CellInterface::creerCellInterfaceChildInterne ( const int &  lvl,
std::vector< CellInterface * > *  childrenInternalCellInterfaces 
)
virtual

Creer un intern child cell interface (non initialize)

Reimplemented in CellInterfaceO2, and CellInterfaceO2Cartesian.

◆ creerFaceChild()

void CellInterface::creerFaceChild ( CellInterface cellInterfaceParent)

Creer une face enfant (non initialize)

◆ deraffineCellInterfaceExterne()

void CellInterface::deraffineCellInterfaceExterne ( Cell cellRef)
virtual

Deraffinement du extern cell interface en supprimant si besoin ses children cell interfaces + liaisons cells/cell interfaces

Reimplemented in BoundCond.

◆ deraffineCellInterfacesChildren()

void CellInterface::deraffineCellInterfacesChildren ( )

Supprime les children cell interfaces

◆ distance()

double CellInterface::distance ( Cell c)

◆ getBoundaryHeatQuantity()

virtual double CellInterface::getBoundaryHeatQuantity ( ) const
inlinevirtual

Reimplemented in BoundCond, and BoundCondWall.

◆ getBoundData()

virtual double CellInterface::getBoundData ( VarBoundary  ) const
inlinevirtual

Reimplemented in BoundCond.

◆ getCellInterfaceChild()

CellInterface * CellInterface::getCellInterfaceChild ( const int &  numChild)

Renvoie le child cell interface correspondant au number

◆ getCellInterfaceChildBack()

CellInterface * CellInterface::getCellInterfaceChildBack ( )

Renvoie le child cell interface correspondant au number

◆ getCellLeft()

Cell * CellInterface::getCellLeft ( ) const

◆ getCellRight()

Cell * CellInterface::getCellRight ( ) const

◆ getFace()

Face * CellInterface::getFace ( )

Ne fait rien pour des cell interfaces ordre 1 Attention, getFace() non const

◆ getLvl()

const int & CellInterface::getLvl ( ) const
inline

◆ getMod()

Model * CellInterface::getMod ( ) const

◆ getNumberCellInterfacesChildren()

int CellInterface::getNumberCellInterfacesChildren ( ) const

Renvoie le niveau du cell interface Renvoie le number de children cell interfaces de ce cell interface

◆ getNumPhys()

virtual const int & CellInterface::getNumPhys ( ) const
inlinevirtual

Reimplemented in BoundCond.

◆ getSlopesMixture()

virtual Mixture * CellInterface::getSlopesMixture ( ) const
inlinevirtual

Ne fait rien pour des cell interfaces ordre 1

Reimplemented in BoundCondWallO2Cartesian, CellInterfaceO2, and CellInterfaceO2Cartesian.

◆ getSlopesPhase()

virtual Phase * CellInterface::getSlopesPhase ( const int &  ) const
inlinevirtual

Ne fait rien pour des cell interfaces ordre 1

Reimplemented in CellInterfaceO2, BoundCondWallO2Cartesian, and CellInterfaceO2Cartesian.

◆ getSlopesTransport()

virtual Transport * CellInterface::getSlopesTransport ( const int &  ) const
inlinevirtual

Ne fait rien pour des cell interfaces ordre 1

Reimplemented in CellInterfaceO2, BoundCondWallO2Cartesian, and CellInterfaceO2Cartesian.

◆ getSplit()

bool CellInterface::getSplit ( ) const

Renvoie si oui ou non le cell interface est splitte

◆ getWallRotationalVelocityMRF()

virtual Coord & CellInterface::getWallRotationalVelocityMRF ( )
inlinevirtual

Returns imposed heat quantity on the wall, could be temperature or flux density (see BounCondWall.h)

Reimplemented in BoundCondWall.

◆ initialize()

void CellInterface::initialize ( Cell cellLeft,
Cell cellRight 
)
virtual

Reimplemented in BoundCond.

◆ initializeDroite()

void CellInterface::initializeDroite ( Cell cellRight)
virtual

◆ initializeGauche()

void CellInterface::initializeGauche ( Cell cellLeft)

◆ isMRFWall()

virtual bool CellInterface::isMRFWall ( ) const
inlinevirtual

Returns heat boundary type for wall (see BoundCondWall.h)

Reimplemented in BoundCondWall.

◆ raffineCellInterfaceExterne()

void CellInterface::raffineCellInterfaceExterne ( const int &  nbCellsY,
const int &  nbCellsZ,
const double &  dXParent,
const double &  dYParent,
const double &  dZParent,
Cell cellRef,
const int &  dim 
)
virtual

Raffinement du extern cell interface en creant si besoin des children cell interfaces + liaisons cells/cell interfaces

Reimplemented in BoundCond.

◆ setFace()

void CellInterface::setFace ( Face face)

◆ solveRiemann()

void CellInterface::solveRiemann ( double &  dtMax,
Limiter ,
Limiter ,
Limiter ,
Limiter ,
Prim  = vecPhases 
)
virtual

◆ solveRiemannMRF()

void CellInterface::solveRiemannMRF ( double &  dtMax)

◆ substractFluxRotatingRegion()

void CellInterface::substractFluxRotatingRegion ( )

◆ subtractFlux()

void CellInterface::subtractFlux ( const double &  coefAMR)

◆ updatePointersInternalCellInterfaces()

void CellInterface::updatePointersInternalCellInterfaces ( )

◆ whoAmI()

◆ whoAmIHeat()

virtual int CellInterface::whoAmIHeat ( ) const
inlinevirtual

Reimplemented in BoundCond, and BoundCondWall.

Member Data Documentation

◆ m_cellInterfacesChildren

std::vector<CellInterface*> CellInterface::m_cellInterfacesChildren
protected

Array of children cell interfaces (taille : 1 en 1D, 2 en 2D et 4 en 3D)

◆ m_cellLeft

Cell* CellInterface::m_cellLeft
protected

◆ m_cellRight

Cell* CellInterface::m_cellRight
protected

◆ m_face

Face* CellInterface::m_face
protected

◆ m_lvl

int CellInterface::m_lvl
protected

Niveau dans l arbre AMR du cell interface

◆ m_mrfInterface

bool CellInterface::m_mrfInterface
protected

◆ m_mrfStaticRegionIsLeft

bool CellInterface::m_mrfStaticRegionIsLeft
protected

◆ m_omega

Coord CellInterface::m_omega
protected

The documentation for this class was generated from the following files: