My Project
programmer's documentation
Functions
cs_user_hgn.c File Reference

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

#include "cs_defs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <bft_printf.h>
#include "cs_base.h"
#include "cs_prototypes.h"
Include dependency graph for cs_user_hgn.c:

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

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