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

Pressure-Temperature relaxation. More...

#include <RelaxationPT.h>

Inherits Relaxation.

Public Member Functions

 RelaxationPT ()
 
virtual ~RelaxationPT ()
 
virtual void relaxation (Cell *cell, const double &, Prim type=vecPhases)
 Stiff Pressure-Temperature relaxation method.
 
double analyticalPressure (Cell *cell, Prim type=vecPhases) const
 Pressure determination with analytical formulae for 2 phases governed by SG or IG EOS.
 
double analyticalTemperature (double pressure, Cell *cell, Prim type=vecPhases) const
 Temperature calculus with analytical formulae for N phases governed by SG or IG EOS.
 
virtual int getType () const
 Return the pressure- and temperature-relaxation type.
 
- Public Member Functions inherited from Relaxation
 Relaxation ()
 
virtual ~Relaxation ()
 
virtual void initializeCriticalPressure (Cell *)
 Initialize the theoritical critical pressure of the fluid (only required for PTMu relax)
 

Detailed Description

Pressure-Temperature relaxation.

Constructor & Destructor Documentation

◆ RelaxationPT()

RelaxationPT::RelaxationPT ( )

◆ ~RelaxationPT()

RelaxationPT::~RelaxationPT ( )
virtual

Member Function Documentation

◆ analyticalPressure()

double RelaxationPT::analyticalPressure ( Cell cell,
Prim  type = vecPhases 
) const

Pressure determination with analytical formulae for 2 phases governed by SG or IG EOS.

call for this method determines the pressure using the analytical formulae only valid in the specific case of 2 phases governed by SG or IG EOS

Parameters
cellcell to relax
typeenumeration allowing to relax either state in the cell or second order half time step state
Returns
pressure

◆ analyticalTemperature()

double RelaxationPT::analyticalTemperature ( double  pressure,
Cell cell,
Prim  type = vecPhases 
) const

Temperature calculus with analytical formulae for N phases governed by SG or IG EOS.

call for this method computes the temprerature for N phases governed by SG or IG EOS using the known relaxed pressure

Parameters
pressurethe value of relaxed pressure
cellcell to relax
typeenumeration allowing to relax either state in the cell or second order half time step state
Returns
temperature

◆ getType()

virtual int RelaxationPT::getType ( ) const
inlinevirtual

Return the pressure- and temperature-relaxation type.

Reimplemented from Relaxation.

◆ relaxation()

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

Stiff Pressure-Temperature relaxation method.

call for this method computes the mechanical and thermal relaxed state in a given cell. 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.


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