9.0
general documentation
Loading...
Searching...
No Matches
cs_user_hgn.cpp File Reference

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

#include "base/cs_defs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "cs_headers.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)
 Computation of the relaxation time-scale.

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 )

Computation of the relaxation time-scale.

This function computes the value of the relaxation time-scale (for the return to equilibrium).

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