Pressure-Temperature-Chemical Potential relaxation / Phase change.
More...
#include <RelaxationPTMu.h>
Inherits Relaxation.
|
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.
|
|
Pressure-Temperature-Chemical Potential relaxation / Phase change.
◆ 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
-
element | XML element to read for source term |
fileName | string name of readed XML file |
◆ ~RelaxationPTMu()
RelaxationPTMu::~RelaxationPTMu |
( |
| ) |
|
|
virtual |
◆ 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
-
cell | cell to get the eos |
numberPhases | number 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
-
cell | cell to relax |
dt | time step (not used here) |
type | enumeration allowing to relax either state in the cell or second order half time step state |
Reimplemented from Relaxation.
◆ 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: