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) !=
nullptr) && (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.cpp:140
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
double cs_real_t
Floating-point value.
Definition: cs_defs.h:342
@ t
Definition: cs_field_pointer.h:94
#define CS_F_(e)
Macro used to return a field pointer by its enumerated value.
Definition: cs_field_pointer.h:51