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

#include <CellO2.h>

Inherits Cell.

Inherited by CellO2Cartesian, and CellO2NS.

Collaboration diagram for CellO2:
[legend]

Public Member Functions

 CellO2 ()
 CellO2 (int lvl)
 ~CellO2 () override
void allocate (const std::vector< AddPhys * > &addPhys) override
 Memory allocation of cell attributes.
void copyPhase (const int &phaseNumber, Phase *phase) override
void saveCons () override
void getBackCons () override
void predictionOrdre2 (const double &dt, Symmetry *symmetry) override
void correctionEnergy (Prim type=vecPhases) override
void fulfillState (Prim type=vecPhases) override
Phase * getPhase (const int &phaseNumber, Prim type=vecPhases) const override
Phase ** getPhases (Prim type=vecPhases) const override
Mixture * getMixture (Prim type=vecPhases) const override
Transport & getTransport (const int &numTransport, Prim type=vecPhases) const override
Transport * getTransports (Prim type=vecPhases) const override
void setTransport (double value, int &numTransport, Prim type=vecPhases) override
void getBufferSlopes (double *, int &, const int &) override
void fillBufferSlopes (double *, int &, const int &, const int &) const override
void computeLocalSlopes (CellInterface &, Limiter &, Limiter &, Limiter &, Limiter &, double &, double &, double &, double &) override
void computeLocalSlopesLimite (CellInterface &, Limiter &, Limiter &, Limiter &, Limiter &, double &) override
void createChildCell (const int &) override
GradPhase * getGradPhase (const int &) const override
GradMixture * getGradMixture () const override
GradTransport * getGradTransport (const int &) const override
void allocateSecondOrderBuffersAndGradientVectors (Phase **, Mixture *) override
 Compute global variable buffers (min, max, etc.) and initialize speficic gradient vectors for 2nd-order scheme on unstructured mesh.
void computeGradientsO2 () override
 Compute gradients for 2nd-order scheme on unstructured mesh.
void limitGradientsO2 (Limiter &) override
void computeLocalSlopes (CellInterface &) override
 Compute slopes for 2nd-order scheme on unstructured mesh.
Public Member Functions inherited from Cell
 Cell ()
 Basic Cell constructor for a non AMR cell.
 Cell (int lvl)
 Cell constructor for an AMR cell.
virtual ~Cell ()
void addCellInterface (CellInterface *cellInterface)
 Add a cell interface to current cell.
void deleteCellInterface (CellInterface *cellInterface)
 Delete the cell interface of current cell.
void associateExtVar (Model *mod, Gradient *grad)
 Associate external variables.
void allocateEos ()
void fill (std::vector< GeometricalDomain * > &domains, const int &)
 Filling cell properties using a physical domain.
void copyMixture (Mixture *mixture)
void setToZeroCons ()
void setToZeroConsGlobal ()
void timeEvolution (const double &dt, Symmetry *symmetry)
void timeEvolutionAddPhys (const double &dt)
void buildPrim ()
void buildCons ()
void sourceTermIntegration (const double &)
void printPhasesMixture (std::ofstream &fileStream) const
virtual void completeFulfillState ()
void fulfillStateResume ()
void localProjection (const Coord &normal, const Coord &tangent, const Coord &binormal, Prim=vecPhases)
virtual void reverseProjection (const Coord &normal, const Coord &tangent, const Coord &binormal)
virtual void copyInCell (Cell &) const
void copyVec (Phase **vecPhases, Mixture *mixture, Transport *vecTransports)
void deleteInterface (const int &b)
void prepareAddPhys ()
Coord selectVector (Variable nameVector, int num=0, int subscript=-1) const
void setVector (Variable nameVector, const Coord &value, int num=0, int subscript=-1)
const QuantitiesAddPhys * getQPA (const int &numQPA) const
QuantitiesAddPhys * getQPA (const int &numQPA)
 Allow to recover an additional physical quantity.
const Coord & getGradTk (int &numPhase, int &numAddPhys) const
 Allow to recover an additional physical quantity.
void setGradTk (int &numPhase, int &numAddPhys, double *buffer, int &counter)
void addNonConsAddPhys (AddPhys &addPhys, Symmetry *symmetry)
void reinitializeColorFunction (const int &numTransport, const int &numPhase)
 Re-initialize the color function (transport) with alpha.
double hatFilterScalar (Variable nameVariable, int num=0)
 Select a specific scalar variable.
void computeGradients (std::vector< Coord > &grads, std::vector< Variable > &nameVariables, std::vector< int > &numPhases)
 Compute gradients (temperature, velocity, density) of a cell.
int getCellInterfacesSize () const
CellInterface * getCellInterface (const int &b)
void setCellInterface (const int &b, CellInterface *cellInterface)
Flux * getCons () const
void setCons (Flux *cons)
const Coord & getPosition () const
const Coord & getSize () const
const double & getSizeX () const
const double & getSizeY () const
const double & getSizeZ () const
void setElement (Element *element, const int &numCell)
Element * getElement () const
Transport * getConsTransport (const int &numTransport) const
void setConsTransport (double value, const int &numTransport)
std::vector< QuantitiesAddPhys * > & getVecQuantitiesAddPhys ()
const int & getNumberPhases () const
const int & getNumberTransports () const
double getDensityGradient ()
Model * getModel ()
Coord & getVelocity ()
const Coord & getVelocity () const
void setWall (bool wall)
bool getWall () const
double selectScalar (Variable nameVariable, int num=0) const
 Select a specific scalar variable.
virtual void computeLocalSlopesPeriodic (CellInterface &, Limiter &, Limiter &, Limiter &, Limiter &, double &, double &, double &, double &)
virtual Phase * getSlopes () const
virtual Transport * getSlopesTransport () const
double distance (Cell *c)
double distanceX (Cell *c)
double distanceY (Cell *c)
double distanceZ (Cell *c)
double distance (CellInterface *b)
double distanceX (CellInterface *b)
double distanceY (CellInterface *b)
double distanceZ (CellInterface *b)
bool traverseObjet (const GeometricObject &objet) const
void printInfo () const
double getPsat ()
 Compute saturation pressure for a liquid/vapor fluid mixture (first phase is considered predominant -> not generalized be careful).
bool printGnuplotAMR (std::ofstream &fileStream, const int &dim, GeometricObject *objet=0, bool recordPsat=false)
void computeVolumePhaseK (double &integration, const int &numPhase)
void computeMass (double &mass, double &alphaRef)
void computeTotalMass (double &mass)
void computeTotalEnergy (double &totalEnergy)
void lookForPmax (double *pMax, double *pMaxWall)
void setToZeroXi ()
void setToZeroConsXi ()
void timeEvolutionXi ()
void chooseRefine (const double &xiSplit, const int &nbCellsY, const int &nbCellsZ, const std::vector< AddPhys * > &addPhys, int &nbCellsTotalAMR)
void chooseUnrefine (const double &xiJoin, int &nbCellsTotalAMR)
void refineCellAndCellInterfaces (const int &nbCellsY, const int &nbCellsZ, const std::vector< AddPhys * > &addPhys, const bool &refineExternalCellInterfaces)
void unrefineCellAndCellInterfaces ()
void averageChildrenInParent ()
bool lvlNeighborTooHigh ()
bool lvlNeighborTooLow ()
void buildLvlCellsAndLvlInternalCellInterfacesArrays (std::vector< Cell * > *cellsLvl, std::vector< CellInterface * > *cellInterfacesLvl)
const int & getLvl () const
const bool & getSplit () const
const double & getXi () const
void setXi (double value)
void addFluxXi (double value)
int getNumberCellsChildren ()
Cell * getCellChild (const int &num)
std::vector< Cell * > * getChildVector ()
virtual void pushBackSlope ()
virtual void popBackSlope ()
virtual int getRankOfNeighborCPU () const
virtual void setRankOfNeighborCPU (int)
void fillBufferPrimitives (double *buffer, int &counter, const int &lvl, const int &neighbour, Prim type=vecPhases) const
void getBufferPrimitives (double *buffer, int &counter, const int &lvl, Eos **eos, Prim type=vecPhases)
void fillBufferVector (double *buffer, int &counter, const int &lvl, const int &neighbour, const int &dim, Variable nameVector, int num=0, int index=-1) const
void getBufferVector (double *buffer, int &counter, const int &lvl, const int &dim, Variable nameVector, int num=0, int index=-1)
void fillBufferTransports (double *buffer, int &counter, const int &lvl, const int &neighbour) const
void getBufferTransports (double *buffer, int &counter, const int &lvl)
virtual bool isCellGhost () const
bool hasNeighboringGhostCellOfCPUneighbour (const int &neighbour) const
int numberOfNeighboringGhostCellsOfCPUneighbour (const int &neighbour) const
void chooseRefineDeraffineGhost (const int &nbCellsY, const int &nbCellsZ, const std::vector< AddPhys * > &addPhys, std::vector< Cell * > *cellsLvlGhost)
void refineCellAndCellInterfacesGhost (const int &nbCellsY, const int &nbCellsZ, const std::vector< AddPhys * > &addPhys)
void unrefineCellAndCellInterfacesGhost ()
void fillBufferXi (double *buffer, int &counter, const int &lvl, const int &neighbour) const
void getBufferXi (double *buffer, int &counter, const int &lvl)
void fillBufferSplit (bool *buffer, int &counter, const int &lvl, const int &neighbour) const
void getBufferSplit (bool *buffer, int &counter, const int &lvl)
void fillNumberElementsToSendToNeighbour (int &numberElementsToSendToNeighbor, int &numberSlopesToSendToNeighbor, const int &lvl, const int &neighbour, int numberNeighboursOfCPUneighbour)
void fillDataToSend (std::vector< double > &dataToSend, std::vector< int > &dataSplitToSend, const int &lvl) const
void getDataToReceiveAndRefine (std::vector< double > &dataToReceive, std::vector< int > &dataSplitToReceive, const int &lvl, Eos **eos, int &counter, int &counterSplit, const int &nbCellsY, const int &nbCellsZ, const std::vector< AddPhys * > &addPhys)
void computeLoad (double &load, int lvl) const
void computeLvlMax (int &lvlMax) const
void clearExternalCellInterfaces (const int &nbCellsY, const int &nbCellsZ)
void updatePointersInternalCellInterfaces ()
void updateNbCellsTotalAMR (int &nbCellsTotalAMR)

Protected Attributes

Phase ** m_vecPhasesO2
Mixture * m_mixtureO2
Transport * m_vecTransportsO2
Flux * m_consSauvegarde
Transport * m_consTransportsSauvegarde
Protected Attributes inherited from Cell
bool m_wall
Phase ** m_vecPhases
Mixture * m_mixture
Transport * m_vecTransports
Flux * m_cons
Transport * m_consTransports
Element * m_element
std::vector< CellInterface * > m_cellInterfaces
std::vector< QuantitiesAddPhys * > m_vecQuantitiesAddPhys
int m_lvl
double m_xi
double m_consXi
bool m_split
std::vector< Cell * > m_childrenCells
std::vector< CellInterface * > m_childrenInternalCellInterfaces

Constructor & Destructor Documentation

◆ CellO2() [1/2]

CellO2::CellO2 ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CellO2() [2/2]

CellO2::CellO2 ( int lvl)
Here is the call graph for this function:

◆ ~CellO2()

CellO2::~CellO2 ( )
override

Member Function Documentation

◆ allocate()

void CellO2::allocate ( const std::vector< AddPhys * > & addPhys)
overridevirtual

Memory allocation of cell attributes.

Parameters
addPhysvector of additional physics

Reimplemented from Cell.

Reimplemented in CellO2GhostCartesian, and CellO2NS.

Here is the caller graph for this function:

◆ allocateSecondOrderBuffersAndGradientVectors()

void CellO2::allocateSecondOrderBuffersAndGradientVectors ( Phase ** ,
Mixture *  )
inlineoverridevirtual

Compute global variable buffers (min, max, etc.) and initialize speficic gradient vectors for 2nd-order scheme on unstructured mesh.

Reimplemented from Cell.

Reimplemented in CellO2NS.

◆ computeGradientsO2()

void CellO2::computeGradientsO2 ( )
inlineoverridevirtual

Compute gradients for 2nd-order scheme on unstructured mesh.

Reimplemented from Cell.

Reimplemented in CellO2NS.

◆ computeLocalSlopes() [1/2]

void CellO2::computeLocalSlopes ( CellInterface & )
inlineoverridevirtual

Compute slopes for 2nd-order scheme on unstructured mesh.

Reimplemented from Cell.

Reimplemented in CellO2NS.

◆ computeLocalSlopes() [2/2]

void CellO2::computeLocalSlopes ( CellInterface & ,
Limiter & ,
Limiter & ,
Limiter & ,
Limiter & ,
double & ,
double & ,
double & ,
double &  )
inlineoverridevirtual

Reimplemented from Cell.

Reimplemented in CellO2Cartesian, and CellO2GhostCartesian.

◆ computeLocalSlopesLimite()

void CellO2::computeLocalSlopesLimite ( CellInterface & ,
Limiter & ,
Limiter & ,
Limiter & ,
Limiter & ,
double &  )
inlineoverridevirtual

Does nothing for first order cells

Reimplemented from Cell.

Reimplemented in CellO2Cartesian.

◆ copyPhase()

void CellO2::copyPhase ( const int & phaseNumber,
Phase * phase )
overridevirtual

Reimplemented from Cell.

◆ correctionEnergy()

void CellO2::correctionEnergy ( Prim type = vecPhases)
overridevirtual

Reimplemented from Cell.

◆ createChildCell()

void CellO2::createChildCell ( const int & lvl)
inlineoverridevirtual

Create a child cell (not initialized)

Reimplemented from Cell.

Reimplemented in CellO2Cartesian, and CellO2GhostCartesian.

◆ fillBufferSlopes()

void CellO2::fillBufferSlopes ( double * ,
int & ,
const int & ,
const int &  ) const
inlineoverridevirtual

Reimplemented from Cell.

Reimplemented in CellO2Cartesian, and CellO2NS.

Here is the call graph for this function:

◆ fulfillState()

void CellO2::fulfillState ( Prim type = vecPhases)
overridevirtual

Reimplemented from Cell.

◆ getBackCons()

void CellO2::getBackCons ( )
overridevirtual

Does nothing for first order cells

Reimplemented from Cell.

◆ getBufferSlopes()

void CellO2::getBufferSlopes ( double * ,
int & ,
const int &  )
inlineoverridevirtual

Does nothing for first order cells

Reimplemented from Cell.

Reimplemented in CellO2Cartesian, CellO2GhostCartesian, CellO2GhostNS, and CellO2NS.

Here is the call graph for this function:

◆ getGradMixture()

GradMixture * CellO2::getGradMixture ( ) const
inlineoverridevirtual

Reimplemented from Cell.

Reimplemented in CellO2NS.

Here is the call graph for this function:

◆ getGradPhase()

GradPhase * CellO2::getGradPhase ( const int & ) const
inlineoverridevirtual

Create a child cell (non initialized)

Reimplemented from Cell.

Reimplemented in CellO2NS.

Here is the call graph for this function:

◆ getGradTransport()

GradTransport * CellO2::getGradTransport ( const int & ) const
inlineoverridevirtual

Reimplemented from Cell.

Reimplemented in CellO2NS.

Here is the call graph for this function:

◆ getMixture()

Mixture * CellO2::getMixture ( Prim type = vecPhases) const
overridevirtual

Reimplemented from Cell.

Here is the caller graph for this function:

◆ getPhase()

Phase * CellO2::getPhase ( const int & phaseNumber,
Prim type = vecPhases ) const
overridevirtual

Reimplemented from Cell.

Here is the caller graph for this function:

◆ getPhases()

Phase ** CellO2::getPhases ( Prim type = vecPhases) const
overridevirtual

Reimplemented from Cell.

◆ getTransport()

Transport & CellO2::getTransport ( const int & numTransport,
Prim type = vecPhases ) const
overridevirtual

Reimplemented from Cell.

Here is the caller graph for this function:

◆ getTransports()

Transport * CellO2::getTransports ( Prim type = vecPhases) const
overridevirtual

Reimplemented from Cell.

◆ limitGradientsO2()

void CellO2::limitGradientsO2 ( Limiter & )
inlineoverridevirtual

Reimplemented from Cell.

Reimplemented in CellO2NS.

◆ predictionOrdre2()

void CellO2::predictionOrdre2 ( const double & ,
Symmetry *  )
overridevirtual

Does nothing for first order cells

Reimplemented from Cell.

Here is the call graph for this function:

◆ saveCons()

void CellO2::saveCons ( )
overridevirtual

Does nothing for first order cells

Reimplemented from Cell.

◆ setTransport()

void CellO2::setTransport ( double value,
int & numTransport,
Prim type = vecPhases )
overridevirtual

Reimplemented from Cell.

Member Data Documentation

◆ m_consSauvegarde

Flux* CellO2::m_consSauvegarde
protected

Vector de save des variables conservatives. De type flux car recueille la sum des flux sur l objet cell

◆ m_consTransportsSauvegarde

Transport* CellO2::m_consTransportsSauvegarde
protected

Vector de saugevarde des grandeurs passives permettant de recueillir la sum des flux des grandeurs transportees

◆ m_mixtureO2

Mixture* CellO2::m_mixtureO2
protected

pour stocker les values predites a l ordre 2

◆ m_vecPhasesO2

Phase** CellO2::m_vecPhasesO2
protected

pour stocker les values predites a l ordre 2

◆ m_vecTransportsO2

Transport* CellO2::m_vecTransportsO2
protected

pour stocker les values predites a l ordre 2


The documentation for this class was generated from the following files:
  • /home/runner/work/ECOGEN/ECOGEN/doc_sources/src/Order2/CellO2.h
  • /home/runner/work/ECOGEN/ECOGEN/doc_sources/src/Order2/CellO2.cpp