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

Phase variables for the velocity-equilibrium system of equations. More...

#include <PhaseUEq.h>

Inherits Phase.

Inherited by PhasePUEq.

Collaboration diagram for PhaseUEq:
[legend]

Public Member Functions

 PhaseUEq ()
 PhaseUEq (tinyxml2::XMLElement *material, Eos *eos, std::string fileName)
 Phase constructor from a XML format reading.
 ~PhaseUEq () override
void allocateAndCopyPhase (Phase **vecPhase) override
 Copy phase attributes in phase.
void copyPhase (Phase &phase) override
 Copy phase in phase attributes.
void extendedCalculusPhase (const Coord &) override
 Compute extra thermodynammical variables.
void computeMassFraction (const double &density) override
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 &globalLimiter, 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 & getY () 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
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 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 setVector (const int &, const Coord &)
virtual double getSquareLongitudinalWaveSpeed () const
virtual const double & getOmega () const
virtual const double & getDensitySurEta () 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 & getTotalEnergy () 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 (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
double m_Y
 phase mass fraction
double m_temperature
 phase temperature
Eos * m_eos
 pointer to phase equation of state
double m_energy
 phase internal energy
double m_soundSpeed
 phase speed of sound

Detailed Description

Phase variables for the velocity-equilibrium system of equations.

Constructor & Destructor Documentation

◆ PhaseUEq() [1/2]

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

◆ PhaseUEq() [2/2]

PhaseUEq::PhaseUEq ( 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" density="1.0" pressure="1.e5">

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

◆ ~PhaseUEq()

PhaseUEq::~PhaseUEq ( )
override

Member Function Documentation

◆ allocateAndCopyPhase()

void PhaseUEq::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 PhaseUEq::changeSign ( )
overridevirtual

Reimplemented from Phase.

◆ computeGradientLimiter()

void PhaseUEq::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:

◆ computeMassFraction()

void PhaseUEq::computeMassFraction ( const double & density)
overridevirtual

Reimplemented from Phase.

◆ computeSlopesPhase()

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

Reimplemented from Phase.

Here is the call graph for this function:

◆ copyPhase()

void PhaseUEq::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 PhaseUEq::divide ( const double & coeff)
overridevirtual

Reimplemented from Phase.

◆ extendedCalculusPhase()

void PhaseUEq::extendedCalculusPhase ( const Coord & )
overridevirtual

Compute extra thermodynammical variables.

Computes from velocity, pressure and density

Parameters
velocityphase velocity

Reimplemented from Phase.

◆ extrapolate()

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

Reimplemented from Phase.

Here is the call graph for this function:

◆ fillBuffer() [1/2]

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

Reimplemented from Phase.

◆ fillBuffer() [2/2]

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

Reimplemented from Phase.

◆ fillBufferSlopes()

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

Reimplemented from Phase.

◆ getAlpha()

const double & PhaseUEq::getAlpha ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getBuffer() [1/2]

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

Reimplemented from Phase.

◆ getBuffer() [2/2]

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

Reimplemented from Phase.

◆ getBufferSlopes()

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

Reimplemented from Phase.

◆ getDensity()

const double & PhaseUEq::getDensity ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getEnergy()

const double & PhaseUEq::getEnergy ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getEos()

Eos * PhaseUEq::getEos ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getMassFraction()

const double & PhaseUEq::getMassFraction ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getNumberScalars()

int PhaseUEq::getNumberScalars ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getNumberVectors()

int PhaseUEq::getNumberVectors ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getPressure()

const double & PhaseUEq::getPressure ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getSoundSpeed()

const double & PhaseUEq::getSoundSpeed ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getTemperature()

double PhaseUEq::getTemperature ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getU()

const double & PhaseUEq::getU ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getV()

const double & PhaseUEq::getV ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getVelocity() [1/2]

const Coord & PhaseUEq::getVelocity ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getVelocity() [2/2]

Coord & PhaseUEq::getVelocity ( )
inlineoverridevirtual

Reimplemented from Phase.

◆ getW()

const double & PhaseUEq::getW ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ getY()

const double & PhaseUEq::getY ( ) const
inlineoverridevirtual

Reimplemented from Phase.

◆ limitSlopes()

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

Reimplemented from Phase.

Here is the call graph for this function:

◆ localProjection()

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

Reimplemented from Phase.

◆ multiplyAndAdd()

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

Reimplemented from Phase.

Here is the call graph for this function:

◆ numberOfTransmittedSlopes()

int PhaseUEq::numberOfTransmittedSlopes ( ) const
overridevirtual

Reimplemented from Phase.

◆ numberOfTransmittedVariables()

int PhaseUEq::numberOfTransmittedVariables ( ) const
overridevirtual

Reimplemented from Phase.

◆ returnNameScalar()

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

Reimplemented from Phase.

◆ returnNameVector()

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

Reimplemented from Phase.

◆ returnScalar()

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

Reimplemented from Phase.

◆ returnVector()

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

Reimplemented from Phase.

◆ reverseProjection()

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

Reimplemented from Phase.

◆ setAlpha()

void PhaseUEq::setAlpha ( double alpha)
overridevirtual

Reimplemented from Phase.

◆ setDensity()

void PhaseUEq::setDensity ( double density)
overridevirtual

Reimplemented from Phase.

◆ setEnergy()

void PhaseUEq::setEnergy ( double energy)
overridevirtual

Reimplemented from Phase.

◆ setEos()

void PhaseUEq::setEos ( Eos * eos)
overridevirtual

Reimplemented from Phase.

◆ setMax()

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

Reimplemented from Phase.

Here is the call graph for this function:

◆ setMin()

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

Reimplemented from Phase.

Here is the call graph for this function:

◆ setPressure()

void PhaseUEq::setPressure ( double pressure)
overridevirtual

Reimplemented from Phase.

◆ setScalar()

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

Reimplemented from Phase.

Here is the call graph for this function:

◆ setSoundSpeed()

void PhaseUEq::setSoundSpeed ( double soundSpeed)
overridevirtual

Reimplemented from Phase.

◆ setToMax()

void PhaseUEq::setToMax ( )
overridevirtual

Reimplemented from Phase.

◆ setToZero()

void PhaseUEq::setToZero ( )
overridevirtual

Reimplemented from Phase.

◆ setU()

void PhaseUEq::setU ( const double & )
inlineoverridevirtual

Reimplemented from Phase.

◆ setV()

void PhaseUEq::setV ( const double & )
inlineoverridevirtual

Reimplemented from Phase.

◆ setVelocity() [1/2]

void PhaseUEq::setVelocity ( const Coord & )
inlineoverridevirtual

Reimplemented from Phase.

◆ setVelocity() [2/2]

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

Reimplemented from Phase.

◆ setW()

void PhaseUEq::setW ( const double & )
inlineoverridevirtual

Reimplemented from Phase.

◆ verifyAndCorrectDensityMax() [1/2]

void PhaseUEq::verifyAndCorrectDensityMax ( )
overridevirtual

Reimplemented from Phase.

◆ verifyAndCorrectDensityMax() [2/2]

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

Reimplemented from Phase.

◆ verifyAndCorrectPhase()

void PhaseUEq::verifyAndCorrectPhase ( )
overridevirtual

Reimplemented from Phase.

◆ verifyPhase()

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

Reimplemented from Phase.

Member Data Documentation

◆ m_alpha

double PhaseUEq::m_alpha
protected

phase volume fraction

◆ m_density

double PhaseUEq::m_density
protected

phase specific mass

◆ m_energy

double PhaseUEq::m_energy
protected

phase internal energy

◆ m_eos

Eos* PhaseUEq::m_eos
protected

pointer to phase equation of state

◆ m_pressure

double PhaseUEq::m_pressure
protected

phase pressure

◆ m_soundSpeed

double PhaseUEq::m_soundSpeed
protected

phase speed of sound

◆ m_temperature

double PhaseUEq::m_temperature
protected

phase temperature

◆ m_Y

double PhaseUEq::m_Y
protected

phase mass fraction


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