Finite pressure relaxation.
More...
#include <RelaxationPFinite.h>
Inherits RelaxationP.
|
static void | system_relaxation (double, double *y, double *ydot, void *) |
| System of equations to integrate for the LSODA solver.
|
|
|
double | m_muFactor |
| Factor for the relaxation coefficient. Herein, the relaxation coefficient is identical for all phase_k–phase_j combinations.
|
|
bool | m_LSODA |
| Bool to choose between LSODA and Euler solver. LSODA solver when m_LSODA=true and Euler solver when m_LSODA=false.
|
|
Finite pressure relaxation.
◆ RelaxationPFinite() [1/2]
RelaxationPFinite::RelaxationPFinite |
( |
| ) |
|
◆ RelaxationPFinite() [2/2]
RelaxationPFinite::RelaxationPFinite |
( |
tinyxml2::XMLElement * |
element, |
|
|
std::string |
fileName = "Unknown file" |
|
) |
| |
◆ ~RelaxationPFinite()
RelaxationPFinite::~RelaxationPFinite |
( |
| ) |
|
|
virtual |
◆ computePressureDifferences()
void RelaxationPFinite::computePressureDifferences |
( |
Cell * |
cell, |
|
|
Prim |
type = vecPhases |
|
) |
| |
Compute the pressure differences.
Call for this method computes pressure differences used for relaxation terms.
- Parameters
-
cell | cell to relax |
type | enumeration allowing to relax either state in the cell or second order half time step state |
◆ relaxation()
void RelaxationPFinite::relaxation |
( |
Cell * |
cell, |
|
|
const double & |
dt, |
|
|
Prim |
type = vecPhases |
|
) |
| |
|
virtual |
Finite Pressure relaxation method.
Call for this method computes the mechanical relaxed state in a given cell. Relaxed state is stored depending on the type enum.
- Parameters
-
cell | cell to relax |
dt | time step |
type | enumeration allowing to relax either state in the cell or second order half time step state |
Reimplemented from Relaxation.
◆ system_relaxation()
void RelaxationPFinite::system_relaxation |
( |
double |
, |
|
|
double * |
y, |
|
|
double * |
ydot, |
|
|
void * |
|
|
) |
| |
|
static |
System of equations to integrate for the LSODA solver.
This method is called by LSODA solver and it computes the time derivatives of the system in function of the primitive variables.
- Parameters
-
t | time |
y | primitive variables |
ydot | time derivatives |
data | pointer to data not contained in t and y |
◆ m_LSODA
bool RelaxationPFinite::m_LSODA |
|
protected |
Bool to choose between LSODA and Euler solver. LSODA solver when m_LSODA=true and Euler solver when m_LSODA=false.
◆ m_muFactor
double RelaxationPFinite::m_muFactor |
|
protected |
Factor for the relaxation coefficient. Herein, the relaxation coefficient is identical for all phase_k–phase_j combinations.
The documentation for this class was generated from the following files: