Go to the source code of this file.
Typedefs | |
typedef struct _cs_medcoupling_remapper_t | cs_medcoupling_remapper_t |
Functions | |
cs_medcoupling_remapper_t * | cs_medcoupling_remapper_by_id (int r_id) |
get a remapper by its id More... | |
cs_medcoupling_remapper_t * | cs_medcoupling_remapper_by_name_try (const char *name) |
get a remapper by its name More... | |
int | cs_medcoupling_remapper_initialize (const char *name, int elt_dim, const char *select_criteria, const char *medfile_path, int n_fields, const char **field_names, int iteration, int order) |
initialize a remapper based on a set of given arguments More... | |
void | cs_medcoupling_remapper_set_iteration (cs_medcoupling_remapper_t *r, int iteration, int order) |
set and load a given time iteration from the MED file More... | |
void | cs_medcoupling_remapper_set_options (cs_medcoupling_remapper_t *r, const char key[], const char value[]) |
set non-default options for a remapper More... | |
void | cs_medcoupling_remapper_setup (cs_medcoupling_remapper_t *r) |
update the interpolation matrix of the remapper More... | |
cs_real_t * | cs_medcoupling_remapper_copy_values (cs_medcoupling_remapper_t *r, int field_id, double default_val) |
Interpolate values for a given field. More... | |
void | cs_medcoupling_remapper_translate (cs_medcoupling_remapper_t *r, cs_real_t translation[3]) |
translate the mesh using a given vector More... | |
void | cs_medcoupling_remapper_rotate (cs_medcoupling_remapper_t *r, cs_real_t invariant[3], cs_real_t axis[3], cs_real_t angle) |
Rotate the mesh using a center point, axis and angle. More... | |
void | cs_medcoupling_remapper_find_time_index (cs_medcoupling_remapper_t *r, cs_real_t t, int *id1, int *id2) |
Retrieve the two closest time steps indexes. More... | |
void | cs_medcoupling_remapper_get_time_from_index (cs_medcoupling_remapper_t *r, int id, cs_real_t *t) |
Retrieve the two closest time steps indexes. More... | |
void | cs_medcoupling_remapper_get_iter_order_from_index (cs_medcoupling_remapper_t *r, int id, int *it, int *order) |
Retrieve the two closest time steps indexes. More... | |
void | cs_medcoupling_remapper_update_time_value (cs_medcoupling_remapper_t *r, int id) |
Load the time value corresponding to id. More... | |
void | cs_medcoupling_remapper_destroy_all (void) |
Destroy all remappers. More... | |
typedef struct _cs_medcoupling_remapper_t cs_medcoupling_remapper_t |
cs_medcoupling_remapper_t * cs_medcoupling_remapper_by_id | ( | int | r_id | ) |
get a remapper by its id
[in] | r_id | id of the remapper |
cs_medcoupling_remapper_t * cs_medcoupling_remapper_by_name_try | ( | const char * | name | ) |
get a remapper by its name
[in] | name | name of the remapper |
cs_real_t * cs_medcoupling_remapper_copy_values | ( | cs_medcoupling_remapper_t * | r, |
int | field_id, | ||
double | default_val | ||
) |
Interpolate values for a given field.
[in] | r | pointer to the cs_medcoupling_remapper_t struct |
[in] | field_id | id of the field to interpolate (in the list given before) |
[in] | default_val | value to apply for elements not intersected by source mesh |
void cs_medcoupling_remapper_destroy_all | ( | void | ) |
Destroy all remappers.
void cs_medcoupling_remapper_find_time_index | ( | cs_medcoupling_remapper_t * | r, |
cs_real_t | t, | ||
int * | id1, | ||
int * | id2 | ||
) |
Retrieve the two closest time steps indexes.
The returned value is int[2]. If the requested time value if outside the time bounds stored in the file, the both values are identical (first or last value), and a warning is printed in the listing file.
[in] | r | pointer to remapper object |
[in] | t | requested time value |
[in,out] | id1 | first returned index |
[in,out] | id2 | second returned index |
void cs_medcoupling_remapper_get_iter_order_from_index | ( | cs_medcoupling_remapper_t * | r, |
int | id, | ||
int * | it, | ||
int * | order | ||
) |
Retrieve the two closest time steps indexes.
The returned value is int[2]. If the requested time value if outside the time bounds stored in the file, the both values are identical (first or last value), and a warning is output in the lod file.
[in] | r | pointer to remapper object |
[in] | id | requested time index |
[in,out] | it | index iteration |
[in,out] | order | index iteration order |
void cs_medcoupling_remapper_get_time_from_index | ( | cs_medcoupling_remapper_t * | r, |
int | id, | ||
cs_real_t * | t | ||
) |
Retrieve the two closest time steps indexes.
The returned value is int[2]. If the requested time value if outside the time bounds stored in the file, the both values are identical (first or last value), and a warning is printed in the listing file.
[in] | r | pointer to remapper object |
[in] | id | requested index |
[in,out] | t | corresponding time value |
int cs_medcoupling_remapper_initialize | ( | const char * | name, |
int | elt_dim, | ||
const char * | select_criteria, | ||
const char * | medfile_path, | ||
int | n_fields, | ||
const char ** | field_names, | ||
int | iteration, | ||
int | order | ||
) |
initialize a remapper based on a set of given arguments
[in] | name | name of the new remapper |
[in] | elt_dim | element dimension |
[in] | select_criteria | selection criteria for the elements |
[in] | medfile_path | path to the med file |
[in] | n_fields | number of fields to load |
[in] | field_names | names of the fields to load |
[in] | iteration | time iteration to load |
[in] | order | iteration order to load |
void cs_medcoupling_remapper_rotate | ( | cs_medcoupling_remapper_t * | r, |
cs_real_t | invariant[3], | ||
cs_real_t | axis[3], | ||
cs_real_t | angle | ||
) |
Rotate the mesh using a center point, axis and angle.
[in] | r | pointer to the cs_medcoupling_remapper_t struct |
[in] | invariant | coordinates of the invariant point |
[in] | axis | rotation axis vector |
[in] | angle | rotation angle in radians |
void cs_medcoupling_remapper_set_iteration | ( | cs_medcoupling_remapper_t * | r, |
int | iteration, | ||
int | order | ||
) |
set and load a given time iteration from the MED file
[in] | r | pointer to the cs_medcoupling_remapper_t struct |
[in] | iteration | time iteration to load |
[in] | order | iteration order to load |
void cs_medcoupling_remapper_set_options | ( | cs_medcoupling_remapper_t * | r, |
const char | key[], | ||
const char | value[] | ||
) |
set non-default options for a remapper
[in] | r | pointer to the cs_medcoupling_remapper_t struct |
[in] | key | pointer to string representing key currently handled: one of {Precision, IntersectionType} |
[in] | value | pointer to string representing value:
|
void cs_medcoupling_remapper_setup | ( | cs_medcoupling_remapper_t * | r | ) |
update the interpolation matrix of the remapper
[in] | r | pointer to the cs_medcoupling_remapper_t struct |
void cs_medcoupling_remapper_translate | ( | cs_medcoupling_remapper_t * | r, |
cs_real_t | translation[3] | ||
) |
translate the mesh using a given vector
[in] | r | pointer to the cs_medcoupling_remapper_t struct |
[in] | translation | translation vector |
void cs_medcoupling_remapper_update_time_value | ( | cs_medcoupling_remapper_t * | r, |
int | id | ||
) |
Load the time value corresponding to id.
[in] | r | pointer to remapper object |
[in] | id | requested time index |