ECOGEN 4.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.

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.
 
- 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 ( )
virtual

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

◆ getType()

virtual int RelaxationP::getType ( ) const
inlinevirtual

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

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