ECOGEN 6.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.

Collaboration diagram for RelaxationPTMu:
[legend]

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.
 ~RelaxationPTMu () override
void initializeCriticalPressure (Cell *cell) override
 Initialize the theoritical critical pressure of the fluid.
void relaxation (Cell *cell, const double &, Prim type=vecPhases) override
 Stiff Thermo-Chemical relaxation method.
int getType () const override
 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
Here is the call graph for this function:

◆ ~RelaxationPTMu()

RelaxationPTMu::~RelaxationPTMu ( )
override

Member Function Documentation

◆ getType()

int RelaxationPTMu::getType ( ) const
inlineoverridevirtual

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

Reimplemented from Relaxation.

◆ initializeCriticalPressure()

void RelaxationPTMu::initializeCriticalPressure ( Cell * cell)
overridevirtual

Initialize the theoritical critical pressure of the fluid.

Parameters
cellcell to get the eos
numberPhasesnumber of phases

Reimplemented from Relaxation.

Here is the call graph for this function:

◆ relaxation()

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

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.

Here is the call graph for this function:

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: