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

Pressure-Temperature-Chemical Potential relaxation / Phase change. More...

#include <RelaxationPTMu.h>

Inherits Relaxation.

Public Member Functions

 RelaxationPTMu (tinyxml2::XMLElement *element, std::vector< std::string > const &nameEOS, std::string fileName="Unknown file")
 Relaxation constructor from a XML format reading.
 
virtual ~RelaxationPTMu ()
 
virtual void initializeCriticalPressure (Cell *cell)
 Initialize the theoritical critical pressure of the fluid.
 
virtual void relaxation (Cell *cell, const double &, Prim type=vecPhases)
 Stiff Thermo-Chemical relaxation method.
 
virtual int getType () const
 Return the pressure-, temperature- and chemical-potential-relaxation type.
 
- Public Member Functions inherited from Relaxation
 Relaxation ()
 
virtual ~Relaxation ()
 

Private Attributes

int m_liq
 Liquid phase number for phase change.
 
int m_vap
 Vapor phase number for phase change.
 
double m_pcrit
 Theoritical critical pressure of the fluid.
 

Detailed Description

Pressure-Temperature-Chemical Potential relaxation / Phase change.

Constructor & Destructor Documentation

◆ RelaxationPTMu()

RelaxationPTMu::RelaxationPTMu ( tinyxml2::XMLElement element,
std::vector< std::string > const &  nameEOS,
std::string  fileName = "Unknown file" 
)

Relaxation constructor from a XML format reading.

Reading data from XML file under the following format: ex: <dataPTMu liquid="SG_waterLiq.xml" vapor="IG_waterVap.xml">

Parameters
elementXML element to read for source term
fileNamestring name of readed XML file

◆ ~RelaxationPTMu()

RelaxationPTMu::~RelaxationPTMu ( )
virtual

Member Function Documentation

◆ getType()

virtual int RelaxationPTMu::getType ( ) const
inlinevirtual

Return the pressure-, temperature- and chemical-potential-relaxation type.

Reimplemented from Relaxation.

◆ initializeCriticalPressure()

void RelaxationPTMu::initializeCriticalPressure ( Cell cell)
virtual

Initialize the theoritical critical pressure of the fluid.

Parameters
cellcell to get the eos
numberPhasesnumber of phases

Reimplemented from Relaxation.

◆ relaxation()

void RelaxationPTMu::relaxation ( Cell cell,
const double &  ,
Prim  type = vecPhases 
)
virtual

Stiff Thermo-Chemical relaxation method.

call for this method computes the thermodyanmical equilibrium state in a given cell for a liquid and its vapor. Relaxed state is stored depending on the type enum

Parameters
cellcell to relax
dttime step (not used here)
typeenumeration allowing to relax either state in the cell or second order half time step state

Reimplemented from Relaxation.

Member Data Documentation

◆ m_liq

int RelaxationPTMu::m_liq
private

Liquid phase number for phase change.

◆ m_pcrit

double RelaxationPTMu::m_pcrit
private

Theoritical critical pressure of the fluid.

◆ m_vap

int RelaxationPTMu::m_vap
private

Vapor phase number for phase change.


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