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

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

#include <MixUEqTotEnergy.h>

Inherits Mixture.

Public Member Functions

 MixUEqTotEnergy ()
 
 MixUEqTotEnergy (tinyxml2::XMLElement *state, std::string fileName)
 Mixture constructor from a XML format reading.
 
virtual ~MixUEqTotEnergy ()
 
virtual void allocateAndCopyMixture (Mixture **mixture)
 Copy mixture attributes in mixture.
 
virtual void copyMixture (Mixture &mixture)
 Copy mixture in mixture attributes.
 
virtual double computeDensity (const double *alphak, const double *rhok)
 Compute mixture density.
 
virtual double computePressure (const double *alphak, const double *pk)
 Compute mixture pressure.
 
virtual double computeInternalEnergy (const double *Yk, const double *ek)
 Compute mixture specific internal energy.
 
virtual double computeFrozenSoundSpeed (const double *Yk, const double *ck)
 Compute mixture frozen speed of sound.
 
virtual void computeMixtureVariables (Phase **vecPhase)
 Fills some mixture attributes from a phase array.
 
virtual void computeTotalEnergy (std::vector< QuantitiesAddPhys * > &)
 Compute mixture total specific energy from internal one taking account for energies associated to extra physics.
 
virtual void totalEnergyToInternalEnergy (std::vector< QuantitiesAddPhys * > &)
 Compute mixture internal specific energy from total one taking account for energies associated to extra physics.
 
virtual void localProjection (const Coord &normal, const Coord &tangent, const Coord &binormal)
 velocity vector projection in a local Cartesian coordinate system
 
virtual void reverseProjection (const Coord &normal, const Coord &tangent, const Coord &binormal)
 velocity vector reverse projection in the absolute Cartesian coordinate system
 
virtual int getNumberScalars () const
 
virtual int getNumberVectors () const
 
virtual double returnScalar (const int &numVar) const
 
virtual Coord returnVector (const int &numVar) const
 
virtual std::string returnNameScalar (const int &numVar) const
 
virtual std::string returnNameVector (const int &numVar) const
 
virtual void setScalar (const int &numVar, const double &value)
 
virtual void setVector (const int &numVar, const Coord &value)
 
virtual int numberOfTransmittedVariables () const
 
virtual void fillBuffer (double *buffer, int &counter) const
 
virtual void fillBuffer (std::vector< double > &dataToSend) const
 
virtual void getBuffer (double *buffer, int &counter)
 
virtual void getBuffer (std::vector< double > &dataToReceive, int &counter)
 
virtual void computeSlopesMixture (const Mixture &sLeft, const Mixture &sRight, const double &distance)
 
virtual void setToZero ()
 
virtual void extrapolate (const Mixture &slope, const double &distance)
 
virtual void limitSlopes (const Mixture &slopeGauche, const Mixture &slopeDroite, Limiter &globalLimiter)
 
virtual int numberOfTransmittedSlopes () const
 
virtual void fillBufferSlopes (double *buffer, int &counter) const
 
virtual void getBufferSlopes (double *buffer, int &counter)
 
virtual const double & getDensity () const
 
virtual const double & getPressure () const
 
virtual const double & getU () const
 
virtual const double & getV () const
 
virtual const double & getW () const
 
virtual const CoordgetVelocity () const
 
virtual CoordgetVelocity ()
 
virtual const double & getFrozenSoundSpeed () const
 
virtual const double & getWoodSoundSpeed () const
 
virtual void setPressure (const double &p)
 
virtual void setVelocity (const double &u, const double &v, const double &w)
 
virtual void setVelocity (const Coord &vit)
 
virtual void setU (const double &u)
 
virtual void setV (const double &v)
 
virtual void setW (const double &w)
 
virtual void changeSign ()
 
virtual void multiplyAndAdd (const Mixture &slopesMixtureTemp, const double &coeff)
 
virtual void divide (const double &coeff)
 
- Public Member Functions inherited from Mixture
 Mixture ()
 
virtual ~Mixture ()
 
void printMixture (std::ofstream &fileStream) const
 Print mixture variables in file stream.
 
double computeTsat (const Eos *eosLiq, const Eos *eosVap, const double &pressure, double *dTsat=0)
 Compute saturation temperature for a liq/vapor couple of fluid at given pressure.
 
double computePsat (const Eos *eosLiq, const Eos *eosVap, const double &temp)
 Compute saturation pressure for a liq/vapor couple of fluid at given pressure.
 
double computeCriticalPressure (const Eos *eosLiq, const Eos *eosVap)
 Compute the theoritical critical pressure.
 
virtual double computePressure (double *, const double &, Phase **)
 
virtual double computePressure (double, const double &, Phase **, Mixture *, const int &, const int &)
 
virtual double computeTemperature (double *, const double &, Phase **)
 
virtual double computeTemperatureIsentrope (const double *, const double &, const double &, const double &, double *=0)
 Compute temperature for a mixture evolving at thermal equilibrium along mixture isentropic path.
 
virtual double computeEnthalpyIsentrope (const double *, const double &, const double &, const double &, double *=0)
 Compute mixture enthalpy for a mixture evolving at thermal equilibrium along mixture isentropic path.
 
virtual double computeVolumeIsentrope (const double *, const double &, const double &, const double &, double *=0)
 Compute mixture specific volume for a mixture evolving at thermal equilibrium along mixture isentropic path.
 
virtual void setToMax ()
 
virtual void setMin (const Mixture &, const Mixture &)
 
virtual void setMax (const Mixture &, const Mixture &)
 
virtual void computeGradientLimiter (const Limiter &, const Mixture &, const Mixture &, const Mixture &, const Mixture &)
 
virtual const double & getTemperature () const
 
virtual const double & getEnergy () const
 
virtual const double & getTotalEnergy () const
 
virtual const double & getMixSoundSpeed () const
 
virtual const double & getEnergyCompaction () const
 
virtual const double & getEnergyElastic () const
 
virtual const TensorgetStressTensor () const
 
virtual TensorgetStressTensor ()
 
virtual void setTemperature (const double &)
 
virtual void setTotalEnergy (double &)
 
virtual void setEnergyCompaction (const double &)
 
virtual void setEnergyElastic (const double &)
 
virtual void setStressTensor (const Tensor &)
 

Protected Attributes

double m_density
 mixture density
 
double m_pressure
 mixture pressure
 
Coord m_velocity
 mixture velocity
 
double m_frozenSoundSpeed
 frozen sound speed
 
double m_woodSoundSpeed
 wood sound speed
 

Detailed Description

Mixture variables for the velocity-equilibrium system of equations.

Constructor & Destructor Documentation

◆ MixUEqTotEnergy() [1/2]

MixUEqTotEnergy::MixUEqTotEnergy ( )

◆ MixUEqTotEnergy() [2/2]

MixUEqTotEnergy::MixUEqTotEnergy ( tinyxml2::XMLElement state,
std::string  fileName 
)

Mixture constructor from a XML format reading.

Reading data from XML file under the following format: ex: <mixture> <velocity x = "0." y = "0." z = "0." > </mixture>

Parameters
stateXML element to read for mixture data
fileNamestring name of readed XML file

◆ ~MixUEqTotEnergy()

MixUEqTotEnergy::~MixUEqTotEnergy ( )
virtual

Member Function Documentation

◆ allocateAndCopyMixture()

void MixUEqTotEnergy::allocateAndCopyMixture ( Mixture **  )
virtual

Copy mixture attributes in mixture.

Parameters
mixturedestination mixture variable

Reimplemented from Mixture.

◆ changeSign()

void MixUEqTotEnergy::changeSign ( )
virtual

Reimplemented from Mixture.

◆ computeDensity()

double MixUEqTotEnergy::computeDensity ( const double *  ,
const double *   
)
virtual

Compute mixture density.

Parameters
alphakphase volume fraction array
rhokphase density array
Returns
mixture density

Reimplemented from Mixture.

◆ computeFrozenSoundSpeed()

double MixUEqTotEnergy::computeFrozenSoundSpeed ( const double *  ,
const double *   
)
virtual

Compute mixture frozen speed of sound.

Parameters
Ykphase mass fraction array
ckphase speed of sound array
Returns
mixture frozen speed of sound

Reimplemented from Mixture.

◆ computeInternalEnergy()

double MixUEqTotEnergy::computeInternalEnergy ( const double *  ,
const double *   
)
virtual

Compute mixture specific internal energy.

Parameters
Ykphase mass fraction array
ekphase specific internal energy array
Returns
mixture specific internal energy

Reimplemented from Mixture.

◆ computeMixtureVariables()

void MixUEqTotEnergy::computeMixtureVariables ( Phase **  )
virtual

Fills some mixture attributes from a phase array.

Parameters
vecPhasephase array

Reimplemented from Mixture.

◆ computePressure()

double MixUEqTotEnergy::computePressure ( const double *  ,
const double *   
)
virtual

Compute mixture pressure.

Parameters
alphakphase volume fraction array
pkphase pressure array
Returns
mixture pressure

Reimplemented from Mixture.

◆ computeSlopesMixture()

void MixUEqTotEnergy::computeSlopesMixture ( const Mixture sLeft,
const Mixture sRight,
const double &  distance 
)
virtual

Reimplemented from Mixture.

◆ computeTotalEnergy()

virtual void MixUEqTotEnergy::computeTotalEnergy ( std::vector< QuantitiesAddPhys * > &  )
inlinevirtual

Compute mixture total specific energy from internal one taking account for energies associated to extra physics.

Parameters
vecGPAvector of additional physics variables

Reimplemented from Mixture.

◆ copyMixture()

void MixUEqTotEnergy::copyMixture ( Mixture )
virtual

Copy mixture in mixture attributes.

Parameters
mixturesource mixture to copy

Reimplemented from Mixture.

◆ divide()

void MixUEqTotEnergy::divide ( const double &  coeff)
virtual

Reimplemented from Mixture.

◆ extrapolate()

void MixUEqTotEnergy::extrapolate ( const Mixture slope,
const double &  distance 
)
virtual

Reimplemented from Mixture.

◆ fillBuffer() [1/2]

void MixUEqTotEnergy::fillBuffer ( double *  buffer,
int &  counter 
) const
virtual

Reimplemented from Mixture.

◆ fillBuffer() [2/2]

void MixUEqTotEnergy::fillBuffer ( std::vector< double > &  dataToSend) const
virtual

Reimplemented from Mixture.

◆ fillBufferSlopes()

void MixUEqTotEnergy::fillBufferSlopes ( double *  buffer,
int &  counter 
) const
virtual

Reimplemented from Mixture.

◆ getBuffer() [1/2]

void MixUEqTotEnergy::getBuffer ( double *  buffer,
int &  counter 
)
virtual

Reimplemented from Mixture.

◆ getBuffer() [2/2]

void MixUEqTotEnergy::getBuffer ( std::vector< double > &  dataToReceive,
int &  counter 
)
virtual

Reimplemented from Mixture.

◆ getBufferSlopes()

void MixUEqTotEnergy::getBufferSlopes ( double *  buffer,
int &  counter 
)
virtual

Reimplemented from Mixture.

◆ getDensity()

virtual const double & MixUEqTotEnergy::getDensity ( ) const
inlinevirtual

Reimplemented from Mixture.

◆ getFrozenSoundSpeed()

virtual const double & MixUEqTotEnergy::getFrozenSoundSpeed ( ) const
inlinevirtual

Reimplemented from Mixture.

◆ getNumberScalars()

virtual int MixUEqTotEnergy::getNumberScalars ( ) const
inlinevirtual

Reimplemented from Mixture.

◆ getNumberVectors()

virtual int MixUEqTotEnergy::getNumberVectors ( ) const
inlinevirtual

Reimplemented from Mixture.

◆ getPressure()

virtual const double & MixUEqTotEnergy::getPressure ( ) const
inlinevirtual

Reimplemented from Mixture.

◆ getU()

virtual const double & MixUEqTotEnergy::getU ( ) const
inlinevirtual

Reimplemented from Mixture.

◆ getV()

virtual const double & MixUEqTotEnergy::getV ( ) const
inlinevirtual

Reimplemented from Mixture.

◆ getVelocity() [1/2]

virtual Coord & MixUEqTotEnergy::getVelocity ( )
inlinevirtual

Reimplemented from Mixture.

◆ getVelocity() [2/2]

virtual const Coord & MixUEqTotEnergy::getVelocity ( ) const
inlinevirtual

Reimplemented from Mixture.

◆ getW()

virtual const double & MixUEqTotEnergy::getW ( ) const
inlinevirtual

Reimplemented from Mixture.

◆ getWoodSoundSpeed()

virtual const double & MixUEqTotEnergy::getWoodSoundSpeed ( ) const
inlinevirtual

Reimplemented from Mixture.

◆ limitSlopes()

void MixUEqTotEnergy::limitSlopes ( const Mixture slopeGauche,
const Mixture slopeDroite,
Limiter globalLimiter 
)
virtual

Reimplemented from Mixture.

◆ localProjection()

void MixUEqTotEnergy::localProjection ( const Coord ,
const Coord ,
const Coord  
)
virtual

velocity vector projection in a local Cartesian coordinate system

Parameters
normalnormal vector associated to the cell interface
tangenttangent vector associated to the cell interface
binormalbinormal vector associated to the cell interface

Reimplemented from Mixture.

◆ multiplyAndAdd()

void MixUEqTotEnergy::multiplyAndAdd ( const Mixture slopesMixtureTemp,
const double &  coeff 
)
virtual

Reimplemented from Mixture.

◆ numberOfTransmittedSlopes()

int MixUEqTotEnergy::numberOfTransmittedSlopes ( ) const
virtual

Reimplemented from Mixture.

◆ numberOfTransmittedVariables()

int MixUEqTotEnergy::numberOfTransmittedVariables ( ) const
virtual

Reimplemented from Mixture.

◆ returnNameScalar()

std::string MixUEqTotEnergy::returnNameScalar ( const int &  numVar) const
virtual

Reimplemented from Mixture.

◆ returnNameVector()

std::string MixUEqTotEnergy::returnNameVector ( const int &  numVar) const
virtual

Reimplemented from Mixture.

◆ returnScalar()

double MixUEqTotEnergy::returnScalar ( const int &  numVar) const
virtual

Reimplemented from Mixture.

◆ returnVector()

Coord MixUEqTotEnergy::returnVector ( const int &  numVar) const
virtual

Reimplemented from Mixture.

◆ reverseProjection()

void MixUEqTotEnergy::reverseProjection ( const Coord ,
const Coord ,
const Coord  
)
virtual

velocity vector reverse projection in the absolute Cartesian coordinate system

Parameters
normalnormal vector associated to the cell interface
tangenttangent vector associated to the cell interface
binormalbinormal vector associated to the cell interface

Reimplemented from Mixture.

◆ setPressure()

void MixUEqTotEnergy::setPressure ( const double &  p)
virtual

Reimplemented from Mixture.

◆ setScalar()

void MixUEqTotEnergy::setScalar ( const int &  numVar,
const double &  value 
)
virtual

Reimplemented from Mixture.

◆ setToZero()

void MixUEqTotEnergy::setToZero ( )
virtual

Reimplemented from Mixture.

◆ setU()

void MixUEqTotEnergy::setU ( const double &  u)
virtual

Reimplemented from Mixture.

◆ setV()

void MixUEqTotEnergy::setV ( const double &  v)
virtual

Reimplemented from Mixture.

◆ setVector()

void MixUEqTotEnergy::setVector ( const int &  numVar,
const Coord value 
)
virtual

Reimplemented from Mixture.

◆ setVelocity() [1/2]

void MixUEqTotEnergy::setVelocity ( const Coord vit)
virtual

Reimplemented from Mixture.

◆ setVelocity() [2/2]

void MixUEqTotEnergy::setVelocity ( const double &  u,
const double &  v,
const double &  w 
)
virtual

Reimplemented from Mixture.

◆ setW()

void MixUEqTotEnergy::setW ( const double &  w)
virtual

Reimplemented from Mixture.

◆ totalEnergyToInternalEnergy()

virtual void MixUEqTotEnergy::totalEnergyToInternalEnergy ( std::vector< QuantitiesAddPhys * > &  )
inlinevirtual

Compute mixture internal specific energy from total one taking account for energies associated to extra physics.

Parameters
vecGPAvector of additional physics variables

Reimplemented from Mixture.

Member Data Documentation

◆ m_density

double MixUEqTotEnergy::m_density
protected

mixture density

◆ m_frozenSoundSpeed

double MixUEqTotEnergy::m_frozenSoundSpeed
protected

frozen sound speed

◆ m_pressure

double MixUEqTotEnergy::m_pressure
protected

mixture pressure

◆ m_velocity

Coord MixUEqTotEnergy::m_velocity
protected

mixture velocity

◆ m_woodSoundSpeed

double MixUEqTotEnergy::m_woodSoundSpeed
protected

wood sound speed


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