My Project
programmer's documentation
Functions
cs_hgn_source_terms_step.h File Reference
#include "cs_defs.h"
Include dependency graph for cs_hgn_source_terms_step.h:

Go to the source code of this file.

Functions

void cs_hgn_source_terms_step (const cs_mesh_t *m)
 Compute the source terms for the two-phase flow model. More...
 

Function Documentation

◆ cs_hgn_source_terms_step()

void cs_hgn_source_terms_step ( const cs_mesh_t m)

Compute the source terms for the two-phase flow model.

Update of these three fractions to account for the return to equilibrium source terms. This update is deduced by solving the ODE associated to the source term for each fraction.

First we compute the equilibrium fractions and second the fractions are relaxed towards those equilibrium values. Relaxation timescale $ \tau $ is to be provided by the user (equal to 1e-30 by default).

Note that the energy, velocity and density remain constant throuh this fractional step but the pressure and the temperature depend on the fractions and thus evolve. They are updated at the end of the step using the thermodynamic relation defined in cs_hg_thermo.c.

Parameters
[in]mpointer to mesh