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

Pressure-Temperature relaxation. More...

#include <RelaxationPT.h>

Inherits Relaxation.

Collaboration diagram for RelaxationPT:
[legend]

Public Member Functions

 RelaxationPT ()
 ~RelaxationPT () override
void relaxation (Cell *cell, const double &, Prim type=vecPhases) override
 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.
int getType () const override
 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 ( )
override

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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getType()

int RelaxationPT::getType ( ) const
inlineoverridevirtual

Return the pressure- and temperature-relaxation type.

Reimplemented from Relaxation.

◆ relaxation()

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

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.

Here is the call graph for this function:

The documentation for this class was generated from the following files:
  • /home/runner/work/ECOGEN/ECOGEN/doc_sources/src/Relaxations/RelaxationPT.h
  • /home/runner/work/ECOGEN/ECOGEN/doc_sources/src/Relaxations/RelaxationPT.cpp