Force temperature in a given region
This is an example of cs_user_extra_operations which sets temperature to 20 in a given region starting at t = 12s
Body
Do this with precaution... The user is responsible for the validity of results.
Here is the corresponding code:
if ((
CS_F_(
t) != NULL) && (t_cur >= 12.0)) {
bft_printf(
"User modification of variables at the end of the time step");
}
int bft_printf(const char *const format,...)
Replacement for printf() with modifiable behavior.
Definition: bft_printf.c:140
void cs_array_real_set_scalar(cs_lnum_t n_elts, cs_real_t ref_val, cs_real_t a[restrict])
Assign a constant scalar value to an array.
Definition: cs_array.c:581
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
@ t
Definition: cs_field_pointer.h:92
#define CS_F_(e)
Macro used to return a field pointer by its enumerated value.
Definition: cs_field_pointer.h:51