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

Pressure relaxation. More...

#include <RelaxationP.h>

Inherits Relaxation.

Inherited by RelaxationPFinite, and RelaxationPInfinite.

Collaboration diagram for RelaxationP:
[legend]

Public Member Functions

 RelaxationP ()
 ~RelaxationP () override
int getType () const override
 Return the pressure-relaxation type.
void NewtonRaphson (double &pStar, int &iteration)
 Newton-Raphson method for the infinite pressure relaxation.
double computeInterfacePressure (Cell *cell, Prim type=vecPhases)
 Compute interface pressure.
Public Member Functions inherited from Relaxation
 Relaxation ()
virtual ~Relaxation ()
virtual void relaxation (Cell *, const double &, Prim=vecPhases)
 Stiff relaxation methods.
virtual void initializeCriticalPressure (Cell *)
 Initialize the theoritical critical pressure of the fluid (only required for PTMu relax).

Detailed Description

Pressure relaxation.

Constructor & Destructor Documentation

◆ RelaxationP()

RelaxationP::RelaxationP ( )

◆ ~RelaxationP()

RelaxationP::~RelaxationP ( )
override

Member Function Documentation

◆ computeInterfacePressure()

double RelaxationP::computeInterfacePressure ( Cell * cell,
Prim type = vecPhases )

Compute interface pressure.

Call for this method computes the interface pressure in a cell.

Parameters
cellcell
typeenumeration allowing to relax either state in the cell or second order half time step state
Returns
interface pressure
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getType()

int RelaxationP::getType ( ) const
inlineoverridevirtual

Return the pressure-relaxation type.

Reimplemented from Relaxation.

◆ NewtonRaphson()

void RelaxationP::NewtonRaphson ( double & pStar,
int & iteration )

Newton-Raphson method for the infinite pressure relaxation.

Call of this method computes the totally relaxed pressure in a given cell.

Parameters
pStarinitial and final pressure value
iterationnumber of iterations for convergence of the method
Here is the caller graph for this function:

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