A complete initialization routine with the compresssible module is provided below. When adapting it, it is recommended to remove all parts not needed or than may be handled through the GUI.
if (domain->time_step->nt_prev > 0)
return;
const cs_lnum_t n_cells = domain->mesh->n_cells;
const int ithvar = cf_model->
ithvar;
if (true) {
}
if (false) {
}
if (true) {
}
if (false) {
}
void cs_array_real_fill_zero(cs_lnum_t size, cs_real_t a[])
Assign zero to all elements of an array.
Definition: cs_array.cpp:1019
void cs_array_real_set_scalar(cs_lnum_t n_elts, cs_real_t ref_val, cs_real_t a[])
Assign a constant scalar value to an array.
Definition: cs_array.cpp:720
cs_cf_model_t * cs_get_glob_cf_model(void)
Provide access to compressible model global structure cs_glob_cf_model.
Definition: cs_cf_model.cpp:189
double cs_real_t
Floating-point value.
Definition: cs_defs.h:342
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:359
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:335
cs_field_t * cs_field_by_name(const char *name)
Return a pointer to a field based on its name.
Definition: cs_field.cpp:2489
@ p
Definition: cs_field_pointer.h:67
@ t_kelvin
Definition: cs_field_pointer.h:117
@ vel
Definition: cs_field_pointer.h:70
@ e_tot
Definition: cs_field_pointer.h:96
@ rho
Definition: cs_field_pointer.h:99
#define CS_F_(e)
Macro used to return a field pointer by its enumerated value.
Definition: cs_field_pointer.h:51
const cs_fluid_properties_t * cs_glob_fluid_properties
Definition: cs_physical_constants.cpp:465
int ithvar
Definition: cs_cf_model.h:53
real(c_double), pointer, save p0
reference pressure for the total pressure.
Definition: cstphy.f90:170
real(c_double), pointer, save t0
reference temperature.
Definition: cstphy.f90:217
real(c_double), pointer, save cv0
Reference isochoric specific heat.
Definition: cstphy.f90:241
real(c_double), pointer, save ro0
reference density.
Definition: cstphy.f90:153
Compressible model general options descriptor.
Definition: cs_cf_model.h:49
cs_real_t * val
Definition: cs_field.h:152
double ro0
Definition: cs_physical_constants.h:74
double cv0
Definition: cs_physical_constants.h:84
double t0
Definition: cs_physical_constants.h:82
double p0
Definition: cs_physical_constants.h:78