![]() |
ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
|
Pressure relaxation. More...
#include <RelaxationP.h>
Inherits Relaxation.
Inherited by RelaxationPFinite, and RelaxationPInfinite.
Public Member Functions | |
RelaxationP () | |
virtual | ~RelaxationP () |
virtual int | getType () const |
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. | |
![]() | |
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) | |
Pressure relaxation.
RelaxationP::RelaxationP | ( | ) |
|
virtual |
Compute interface pressure.
Call for this method computes the interface pressure in a cell.
cell | cell |
type | enumeration allowing to relax either state in the cell or second order half time step state |
|
inlinevirtual |
Return the pressure-relaxation type.
Reimplemented from Relaxation.
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.
pStar | initial and final pressure value |
iteration | number of iterations for convergence of the method |