Get a user parameter defined in the GUI notebook.
double cs_real_t
Floating-point value.
Definition: cs_defs.h:304
cs_real_t cs_notebook_parameter_value_by_name(const char *name)
Return a parameter value (real).
Definition: cs_notebook.c:437
Define some variables needed for the boundary condition specification.
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
int cs_field_get_key_int(const cs_field_t *f, int key_id)
Return a integer value for a given key associated with a field.
Definition: cs_field.c:2991
cs_field_t * cs_field_by_name_try(const char *name)
Return a pointer to a field based on its name if present.
Definition: cs_field.c:2364
int cs_field_key_id(const char *name)
Return an id associated with a given key name.
Definition: cs_field.c:2497
Field descriptor.
Definition: cs_field.h:125
cs_lnum_t n_b_faces
Definition: cs_mesh.h:98
Apply a Dirichlet boundary condition on temperature at inlet by using the user parameter "t_inlet" which value has been retrieved above.
for (
cs_lnum_t ielt = 0; ielt < nelts; ielt++) {
icodcl[var_id*n_b_faces + face_id] = 1;
rcodcl[var_id*n_b_faces + face_id] = t_bnd;
}
#define BFT_MALLOC(_ptr, _ni, _type)
Allocate memory for _ni elements of type _type.
Definition: bft_mem.h:62
#define BFT_FREE(_ptr)
Free allocated memory.
Definition: bft_mem.h:101
void cs_selector_get_b_face_list(const char *criteria, cs_lnum_t *n_b_faces, cs_lnum_t b_face_list[])
Fill a list of boundary faces verifying a given selection criteria.
Definition: cs_selector.c:213