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

Phase variables for pressure-temperature-velocity (mechanical and thermal equilibrium) system of equations. More...

#include <PhasePTUEq.h>

Inherits Phase.

Collaboration diagram for PhasePTUEq:
[legend]

Public Member Functions

 PhasePTUEq ()
 PhasePTUEq (tinyxml2::XMLElement *material, Eos *eos, std::string fileName)
 Phase constructor from a XML format reading.
 ~PhasePTUEq () override
void allocateAndCopyPhase (Phase **vecPhase) override
 Copy phase attributes in phase.
void copyPhase (Phase &vecPhase) override
 Copy phase in phase attributes.
void extendedCalculusPhase (const Coord &velocity) override
 Compute extra thermodynammical variables.
void localProjection (const Coord &, const Coord &, const Coord &) override
void reverseProjection (const Coord &, const Coord &, const Coord &) override
int getNumberScalars () const override
int getNumberVectors () const override
double returnScalar (const int &numVar) const override
Coord returnVector (const int &) const override
std::string returnNameScalar (const int &numVar) const override
std::string returnNameVector (const int &) const override
void setScalar (const int &numVar, const double &value) override
int numberOfTransmittedVariables () const override
void fillBuffer (double *buffer, int &counter) const override
void fillBuffer (std::vector< double > &dataToSend) const override
void getBuffer (double *buffer, int &counter, Eos **eos) override
void getBuffer (std::vector< double > &dataToReceive, int &counter, Eos **eos) override
void computeSlopesPhase (const Phase &sLeft, const Phase &sRight, const double &distance) override
void setToZero () override
void setToMax () override
void extrapolate (const Phase &slope, const double &distance) override
void limitSlopes (const Phase &slopeGauche, const Phase &slopeDroite, Limiter &, Limiter &volumeFractionLimiter) override
void setMin (const Phase &phase1, const Phase &phase2) override
void setMax (const Phase &phase1, const Phase &phase2) override
void computeGradientLimiter (const Limiter &globalLimiter, const Phase &phase, const Phase &phaseMin, const Phase &phaseMax, const Phase &slope) override
int numberOfTransmittedSlopes () const override
void fillBufferSlopes (double *buffer, int &counter) const override
void getBufferSlopes (double *buffer, int &counter) override
void verifyPhase (const std::string &message="") const override
void verifyAndCorrectPhase () override
void verifyAndCorrectDensityMax (const double &mass) override
void verifyAndCorrectDensityMax () override
const double & getAlpha () const override
const double & getMassFraction () const override
const double & getDensity () const override
const double & getPressure () const override
const double & getU () const override
const double & getV () const override
const double & getW () const override
Coord & getVelocity () override
const Coord & getVelocity () const override
Eos * getEos () const override
const double & getEnergy () const override
const double & getSoundSpeed () const override
const double & getTotalEnergy () const override
double getTemperature () const override
void setAlpha (double alpha) override
void setDensity (double density) override
void setPressure (double pressure) override
void setVelocity (const double &, const double &, const double &) override
void setVelocity (const Coord &) override
void setU (const double &) override
void setV (const double &) override
void setW (const double &) override
void setEos (Eos *eos) override
void setEnergy (double energy) override
void setSoundSpeed (double soundSpeed) override
void setTotalEnergy (double totalEnergy) override
void changeSign () override
void multiplyAndAdd (const Phase &slopesPhasesTemp, const double &coeff) override
void divide (const double &coeff) override
Public Member Functions inherited from Phase
 Phase ()
virtual ~Phase ()
void printPhase (std::ofstream &fileStream) const
 Print phase variables in file stream.
virtual void computeMassFraction (const double &)
virtual void setVector (const int &, const Coord &)
virtual double getSquareLongitudinalWaveSpeed () const
virtual const double & getOmega () const
virtual const double & getDensitySurEta () const
virtual const double & getY () const
virtual const double & getVectorPX () const
virtual const double & getVectorPY () const
virtual const double & getVectorPZ () const
virtual Coord & getVectorP ()
virtual const Coord & getVectorP () const
virtual const double & getEntropy () const
virtual const double & getSquareSoundSpeed () const
virtual const double & getLambda () const
virtual const double & getEnergyCompaction () const
virtual const Tensor & getCobase () const
virtual Tensor & getCobase ()
virtual const double & getEnergyElastic () const
virtual const Tensor & getStressTensor () const
virtual Tensor & getStressTensor ()
virtual void setOmega (const double &)
virtual void setDensitySurEta (const double &)
virtual void setVectorP (const double &, const double &, const double &)
virtual void setVectorP (const Coord &)
virtual void setX (const double &)
virtual void setY (const double &)
virtual void setZ (const double &)
virtual void setEntropy (double)
virtual void setSquareSoundSpeed (double)
virtual void setTotalEnergy (const double &, const Coord &)
virtual void setTemperature (double)
virtual void setLambda (double)
virtual void setEnergyCompaction (double)
virtual void setCobase (const Tensor &)
virtual void setEnergyElastic (double)
virtual void setStressTensor (const Tensor &)

Protected Attributes

double m_alpha
 phase volume fraction
double m_density
 phase specific mass
double m_pressure
 phase pressure
Eos * m_eos
 pointer to phase equation of state
double m_energy
 phase internal energy
double m_totalEnergy
 phase total energy
double m_soundSpeed
 phase speed of sound

Detailed Description

Phase variables for pressure-temperature-velocity (mechanical and thermal equilibrium) system of equations.

Constructor & Destructor Documentation

◆ PhasePTUEq() [1/2]

PhasePTUEq::PhasePTUEq ( )
Here is the caller graph for this function:

◆ PhasePTUEq() [2/2]

PhasePTUEq::PhasePTUEq ( tinyxml2::XMLElement * material,
Eos * eos,
std::string fileName )

Phase constructor from a XML format reading.

Reading data from XML file under the following format: ex: <dataFluid alpha="0.5">

Parameters
materialXML element to read for phase data
fileNamestring name of readed XML file
Here is the call graph for this function:

◆ ~PhasePTUEq()

PhasePTUEq::~PhasePTUEq ( )
override

Member Function Documentation

◆ allocateAndCopyPhase()

void PhasePTUEq::allocateAndCopyPhase ( Phase ** )
overridevirtual

Copy phase attributes in phase.

Parameters
vecPhasedestination phase variable

Reimplemented from Phase.

Here is the call graph for this function:

◆ changeSign()

void PhasePTUEq::changeSign ( )
overridevirtual

Reimplemented from Phase.

◆ computeGradientLimiter()

void PhasePTUEq::computeGradientLimiter ( const Limiter & globalLimiter,
const Phase & phase,
const Phase & phaseMin,
const Phase & phaseMax,
const Phase & slope )
overridevirtual

Reimplemented from Phase.

Here is the call graph for this function:

◆ computeSlopesPhase()

void PhasePTUEq::computeSlopesPhase ( const Phase & sLeft,
const Phase & sRight,
const double & distance )
overridevirtual

Reimplemented from Phase.

Here is the call graph for this function:

◆ copyPhase()

void PhasePTUEq::copyPhase ( Phase & )
overridevirtual

Copy phase in phase attributes.

Parameters
vecPhasesource phase to copy

Reimplemented from Phase.

Here is the call graph for this function:

◆ divide()

void PhasePTUEq::divide ( const double & coeff)
overridevirtual

Reimplemented from Phase.

◆ extendedCalculusPhase()

void PhasePTUEq::extendedCalculusPhase ( const Coord & )
overridevirtual

Compute extra thermodynammical variables.

Computes from velocity, pressure and density

Parameters
velocityphase velocity

Reimplemented from Phase.

Here is the call graph for this function:

◆ extrapolate()

void PhasePTUEq::extrapolate ( const Phase & slope,
const double & distance )
overridevirtual

Reimplemented from Phase.

Here is the call graph for this function:

◆ fillBuffer() [1/2]

void PhasePTUEq::fillBuffer ( double * buffer,
int & counter ) const
overridevirtual

Reimplemented from Phase.

◆ fillBuffer() [2/2]

void PhasePTUEq::fillBuffer ( std::vector< double > & dataToSend) const
overridevirtual

Reimplemented from Phase.

◆ fillBufferSlopes()

void PhasePTUEq::fillBufferSlopes ( double * buffer,
int & counter ) const
overridevirtual

Reimplemented from Phase.

◆ getAlpha()

const double & PhasePTUEq::getAlpha ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getBuffer() [1/2]

void PhasePTUEq::getBuffer ( double * buffer,
int & counter,
Eos ** eos )
overridevirtual

Reimplemented from Phase.

◆ getBuffer() [2/2]

void PhasePTUEq::getBuffer ( std::vector< double > & dataToReceive,
int & counter,
Eos ** eos )
overridevirtual

Reimplemented from Phase.

◆ getBufferSlopes()

void PhasePTUEq::getBufferSlopes ( double * buffer,
int & counter )
overridevirtual

Reimplemented from Phase.

◆ getDensity()

const double & PhasePTUEq::getDensity ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getEnergy()

const double & PhasePTUEq::getEnergy ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getEos()

Eos * PhasePTUEq::getEos ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getMassFraction()

const double & PhasePTUEq::getMassFraction ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getNumberScalars()

int PhasePTUEq::getNumberScalars ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getNumberVectors()

int PhasePTUEq::getNumberVectors ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getPressure()

const double & PhasePTUEq::getPressure ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getSoundSpeed()

const double & PhasePTUEq::getSoundSpeed ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getTemperature()

double PhasePTUEq::getTemperature ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getTotalEnergy()

const double & PhasePTUEq::getTotalEnergy ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getU()

const double & PhasePTUEq::getU ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getV()

const double & PhasePTUEq::getV ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getVelocity() [1/2]

const Coord & PhasePTUEq::getVelocity ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getVelocity() [2/2]

Coord & PhasePTUEq::getVelocity ( )
inlineoverridevirtual

Reimplemented from Phase.

◆ getW()

const double & PhasePTUEq::getW ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ limitSlopes()

void PhasePTUEq::limitSlopes ( const Phase & slopeGauche,
const Phase & slopeDroite,
Limiter & ,
Limiter & volumeFractionLimiter )
overridevirtual

Reimplemented from Phase.

Here is the call graph for this function:

◆ localProjection()

void PhasePTUEq::localProjection ( const Coord & ,
const Coord & ,
const Coord &  )
inlineoverridevirtual

Reimplemented from Phase.

◆ multiplyAndAdd()

void PhasePTUEq::multiplyAndAdd ( const Phase & slopesPhasesTemp,
const double & coeff )
overridevirtual

Reimplemented from Phase.

Here is the call graph for this function:

◆ numberOfTransmittedSlopes()

int PhasePTUEq::numberOfTransmittedSlopes ( ) const
overridevirtual

Reimplemented from Phase.

◆ numberOfTransmittedVariables()

int PhasePTUEq::numberOfTransmittedVariables ( ) const
overridevirtual

Reimplemented from Phase.

◆ returnNameScalar()

std::string PhasePTUEq::returnNameScalar ( const int & numVar) const
overridevirtual

Reimplemented from Phase.

◆ returnNameVector()

std::string PhasePTUEq::returnNameVector ( const int & ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ returnScalar()

double PhasePTUEq::returnScalar ( const int & numVar) const
overridevirtual

Reimplemented from Phase.

◆ returnVector()

Coord PhasePTUEq::returnVector ( const int & ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ reverseProjection()

void PhasePTUEq::reverseProjection ( const Coord & ,
const Coord & ,
const Coord &  )
inlineoverridevirtual

Reimplemented from Phase.

◆ setAlpha()

void PhasePTUEq::setAlpha ( double alpha)
overridevirtual

Reimplemented from Phase.

Here is the caller graph for this function:

◆ setDensity()

void PhasePTUEq::setDensity ( double density)
overridevirtual

Reimplemented from Phase.

Here is the caller graph for this function:

◆ setEnergy()

void PhasePTUEq::setEnergy ( double energy)
overridevirtual

Reimplemented from Phase.

◆ setEos()

void PhasePTUEq::setEos ( Eos * eos)
overridevirtual

Reimplemented from Phase.

◆ setMax()

void PhasePTUEq::setMax ( const Phase & phase1,
const Phase & phase2 )
overridevirtual

Reimplemented from Phase.

Here is the call graph for this function:

◆ setMin()

void PhasePTUEq::setMin ( const Phase & phase1,
const Phase & phase2 )
overridevirtual

Reimplemented from Phase.

Here is the call graph for this function:

◆ setPressure()

void PhasePTUEq::setPressure ( double pressure)
overridevirtual

Reimplemented from Phase.

◆ setScalar()

void PhasePTUEq::setScalar ( const int & numVar,
const double & value )
overridevirtual

Reimplemented from Phase.

Here is the call graph for this function:

◆ setSoundSpeed()

void PhasePTUEq::setSoundSpeed ( double soundSpeed)
overridevirtual

Reimplemented from Phase.

◆ setToMax()

void PhasePTUEq::setToMax ( )
overridevirtual

Reimplemented from Phase.

◆ setTotalEnergy()

void PhasePTUEq::setTotalEnergy ( double totalEnergy)
overridevirtual

Reimplemented from Phase.

◆ setToZero()

void PhasePTUEq::setToZero ( )
overridevirtual

Reimplemented from Phase.

◆ setU()

void PhasePTUEq::setU ( const double & )
inlineoverridevirtual

Reimplemented from Phase.

◆ setV()

void PhasePTUEq::setV ( const double & )
inlineoverridevirtual

Reimplemented from Phase.

◆ setVelocity() [1/2]

void PhasePTUEq::setVelocity ( const Coord & )
inlineoverridevirtual

Reimplemented from Phase.

◆ setVelocity() [2/2]

void PhasePTUEq::setVelocity ( const double & ,
const double & ,
const double &  )
inlineoverridevirtual

Reimplemented from Phase.

◆ setW()

void PhasePTUEq::setW ( const double & )
inlineoverridevirtual

Reimplemented from Phase.

◆ verifyAndCorrectDensityMax() [1/2]

void PhasePTUEq::verifyAndCorrectDensityMax ( )
overridevirtual

Reimplemented from Phase.

◆ verifyAndCorrectDensityMax() [2/2]

void PhasePTUEq::verifyAndCorrectDensityMax ( const double & mass)
overridevirtual

Reimplemented from Phase.

◆ verifyAndCorrectPhase()

void PhasePTUEq::verifyAndCorrectPhase ( )
overridevirtual

Reimplemented from Phase.

Here is the call graph for this function:

◆ verifyPhase()

void PhasePTUEq::verifyPhase ( const std::string & message = "") const
overridevirtual

Reimplemented from Phase.

Member Data Documentation

◆ m_alpha

double PhasePTUEq::m_alpha
protected

phase volume fraction

◆ m_density

double PhasePTUEq::m_density
protected

phase specific mass

◆ m_energy

double PhasePTUEq::m_energy
protected

phase internal energy

◆ m_eos

Eos* PhasePTUEq::m_eos
protected

pointer to phase equation of state

◆ m_pressure

double PhasePTUEq::m_pressure
protected

phase pressure

◆ m_soundSpeed

double PhasePTUEq::m_soundSpeed
protected

phase speed of sound

◆ m_totalEnergy

double PhasePTUEq::m_totalEnergy
protected

phase total energy


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