9.1
general documentation
cs_user_hgn.cpp File Reference

Define user properties for two-phase homogeneous compressible model. More...

#include "cs_headers.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
+ Include dependency graph for cs_user_hgn.cpp:

Functions

void cs_user_hgn_thermo_relax_time (const cs_mesh_t *mesh, const cs_real_t *alpha_eq, const cs_real_t *y_eq, const cs_real_t *z_eq, const cs_real_t *ei, const cs_real_t *v, cs_real_t *relax_tau)
 Compute the relaxation time-scale to equilibrium in the frame of the homogeneous two-phase model.. More...
 

Detailed Description

Define user properties for two-phase homogeneous compressible model.

Function Documentation

◆ cs_user_hgn_thermo_relax_time()

void cs_user_hgn_thermo_relax_time ( const cs_mesh_t mesh,
const cs_real_t alpha_eq,
const cs_real_t y_eq,
const cs_real_t z_eq,
const cs_real_t ei,
const cs_real_t v,
cs_real_t relax_tau 
)

Compute the relaxation time-scale to equilibrium in the frame of the homogeneous two-phase model..

Parameters
[in]meshpointer to mesh
[in]alpha_eqequilibrium volume fraction
[in]y_eqequilibrium mass fraction
[in]z_eqequilibrium energy fraction
[in]eispecific internal energy
[in]vspecific volume
[in]relax_taurelaxation time scale towards equilibrium