Local definitions
const int nremapper_fields = 1;
const char **field_names = NULL;
BFT_MALLOC(field_names, nremapper_fields,
const char *);
field_names[0] = "TEMPERATURE";
Initialization of some variables
int it0 = -1;
int it1 = -1;
Create a medcoupling remapper
if (r == NULL) {
int elts_dim = 2;
const char file_name[] = "/home/myname/study/2Dmap_Tfluid.med";
elts_dim,
"inlet",
file_name,
nremapper_fields,
field_names,
it0,
it1);
}
Translate or rotate med data if needed
if (false) {
cs_real_t translation_vector[3] = {1.0, 0.0, 0.0};
}
We retrieve an array containing the interpolated values.
We prescribe for the inlet a Dirichlet condition on the scalar "scalar1":
icodcl[f_id] = 1;
rcodcl1[f_id] = bc_scalar[ielt];
}