Go to the source code of this file.
Functions | |
void | cs_medcoupling_intersector_add_vol (const char *name, const char *medfile_path, const char *interp_method, const char *select_criteria) |
Add a volume MEDCoupling intersector. More... | |
void | cs_medcoupling_intersector_add_surf (const char *name, const char *medfile_path, const char *interp_method, const char *select_criteria) |
Add a surface MEDCoupling intersector. More... | |
void | cs_medcoupling_intersector_add_vol_surf (const char *name, const char *medfile_path, const char *interp_method, const char *select_criteria) |
Add a surface in volume MEDCoupling intersector. More... | |
void | cs_medcoupling_intersector_destroy (cs_medcoupling_intersector_t *mi) |
Destroy a given MEDCoupling intersector. More... | |
void | cs_medcoupling_intersector_destroy_all (void) |
Free all allocated intersectors. More... | |
cs_medcoupling_intersector_t * | cs_medcoupling_intersector_by_id (int id) |
Get a MEDCoupling intersector using its id. More... | |
cs_medcoupling_intersector_t * | cs_medcoupling_intersector_by_name (const char *name) |
Get a MEDCoupling intersector by name. More... | |
cs_real_t * | cs_medcoupling_intersect_volumes (cs_medcoupling_intersector_t *mi) |
Compute the intersection volumes between the source mesh and code mesh. More... | |
cs_real_t * | cs_medcoupling_intersect_surfaces (cs_medcoupling_intersector_t *mi) |
Compute the intersection surfaces between the source mesh and code mesh. More... | |
cs_real_t * | cs_medcoupling_intersect_volume_and_surfaces (cs_medcoupling_intersector_t *mi) |
Compute the intersection surfaces between the source mesh and code mesh. More... | |
void | cs_medcoupling_intersector_translate (cs_medcoupling_intersector_t *mi, cs_real_t translation[3]) |
translate the mesh using a given vector More... | |
void | cs_medcoupling_intersector_rotate (cs_medcoupling_intersector_t *mi, cs_real_t invariant[3], cs_real_t axis[3], cs_real_t angle) |
rotate the mesh More... | |
void | cs_medcoupling_intersector_scale_auto (cs_medcoupling_intersector_t *mi, cs_real_t factor) |
Scale a mesh using a factor based on the current mesh center position. More... | |
void | cs_medcoupling_intersector_transform_from_init (cs_medcoupling_intersector_t *mi, cs_real_t matrix[3][4]) |
Transform a mesh, but takes as input the initial position of the mesh. More... | |
void | cs_medcoupling_intersector_dump_mesh (cs_medcoupling_intersector_t *mi, const char *prefix) |
translate the mesh using a given vector More... | |
int | cs_mi_post_get_writer_id (void) |
Return writer id used for medcoupling meshes, 0 means unused. More... | |
void | cs_mi_post_init_writer (const char *case_name, const char *dir_name, const char *fmt_name, const char *fmt_opts, fvm_writer_time_dep_t time_dep, bool output_at_start, bool output_at_end, int frequency_n, double frequency_t) |
Create a new writer that will contains the boundary MED mesh added. More... | |
void | cs_mi_post_add_mesh (cs_medcoupling_intersector_t *mi) |
Associate a Medcoupling mesh to the default writer. More... | |
cs_real_t * cs_medcoupling_intersect_surfaces | ( | cs_medcoupling_intersector_t * | mi | ) |
Compute the intersection surfaces between the source mesh and code mesh.
[in] | mi | pointer to the cs_medcoupling_intersector_t struct |
cs_real_t * cs_medcoupling_intersect_volume_and_surfaces | ( | cs_medcoupling_intersector_t * | mi | ) |
Compute the intersection surfaces between the source mesh and code mesh.
[in] | mi | pointer to the cs_medcoupling_intersector_t struct |
cs_real_t * cs_medcoupling_intersect_volumes | ( | cs_medcoupling_intersector_t * | mi | ) |
Compute the intersection volumes between the source mesh and code mesh.
[in] | mi | pointer to the cs_medcoupling_intersector_t struct |
void cs_medcoupling_intersector_add_surf | ( | const char * | name, |
const char * | medfile_path, | ||
const char * | interp_method, | ||
const char * | select_criteria | ||
) |
Add a surface MEDCoupling intersector.
[in] | name | name of the intersector |
[in] | medfile_path | path to the MED file |
[in] | interp_method | interpolation method (P0P0, P1P0, ..) |
[in] | select_criteria | selection criteria |
void cs_medcoupling_intersector_add_vol | ( | const char * | name, |
const char * | medfile_path, | ||
const char * | interp_method, | ||
const char * | select_criteria | ||
) |
Add a volume MEDCoupling intersector.
[in] | name | name of the intersector |
[in] | medfile_path | path to the MED file |
[in] | interp_method | interpolation method (P0P0, P1P0, ..) |
[in] | select_criteria | selection criteria |
void cs_medcoupling_intersector_add_vol_surf | ( | const char * | name, |
const char * | medfile_path, | ||
const char * | interp_method, | ||
const char * | select_criteria | ||
) |
Add a surface in volume MEDCoupling intersector.
[in] | name | name of the intersector |
[in] | medfile_path | path to the MED file |
[in] | interp_method | interpolation method (P0P0, P1P0, ..) |
[in] | select_criteria | selection criteria |
cs_medcoupling_intersector_t * cs_medcoupling_intersector_by_id | ( | int | id | ) |
Get a MEDCoupling intersector using its id.
[in] | id | id of the intersector |
[in] | id | id of the intersector |
cs_medcoupling_intersector_t * cs_medcoupling_intersector_by_name | ( | const char * | name | ) |
Get a MEDCoupling intersector by name.
[in] | name | name of the intersector |
Get a MEDCoupling intersector by name.
[in] | name | name of the intersector |
void cs_medcoupling_intersector_destroy | ( | cs_medcoupling_intersector_t * | mi | ) |
Destroy a given MEDCoupling intersector.
[in] | mi | pointer to the cs_medcoupling_intersector_t struct |
void cs_medcoupling_intersector_destroy_all | ( | void | ) |
Free all allocated intersectors.
void cs_medcoupling_intersector_dump_mesh | ( | cs_medcoupling_intersector_t * | mi, |
const char * | prefix | ||
) |
translate the mesh using a given vector
[in] | mi | pointer to the cs_medcoupling_intersector_t struct |
[in] | prefix | subdir prefix |
translate the mesh using a given vector
[in] | mi | pointer to the cs_medcoupling_intersector_t struct |
[in] | prefix | subdir prefix |
void cs_medcoupling_intersector_rotate | ( | cs_medcoupling_intersector_t * | mi, |
cs_real_t | invariant[3], | ||
cs_real_t | axis[3], | ||
cs_real_t | angle | ||
) |
rotate the mesh
[in] | mi | pointer to the cs_medcoupling_intersector_t struct |
[in] | invariant | Invariant point |
[in] | axis | Rotation axis |
[in] | angle | angle (in radians) |
void cs_medcoupling_intersector_scale_auto | ( | cs_medcoupling_intersector_t * | mi, |
cs_real_t | factor | ||
) |
Scale a mesh using a factor based on the current mesh center position.
[in] | mi | pointer to the cs_medcoupling_intersector_t struct |
[in] | factor | scaling factor (cs_real_t) |
void cs_medcoupling_intersector_transform_from_init | ( | cs_medcoupling_intersector_t * | mi, |
cs_real_t | matrix[3][4] | ||
) |
Transform a mesh, but takes as input the initial position of the mesh.
[in] | mi | pointer to the cs_medcoupling_intersector_t struct |
[in] | matrix | transformation matrix |
Transformation is thus applied on the initial coordiantes and the
mesh is modified accordingly.
[in] | mi | pointer to the cs_medcoupling_intersector_t struct |
[in] | matrix | transformation matrix |
void cs_medcoupling_intersector_translate | ( | cs_medcoupling_intersector_t * | mi, |
cs_real_t | translation[3] | ||
) |
translate the mesh using a given vector
[in] | mi | pointer to the cs_medcoupling_intersector_t struct |
[in] | translation | translation vector |
void cs_mi_post_add_mesh | ( | cs_medcoupling_intersector_t * | mi | ) |
Associate a Medcoupling mesh to the default writer.
[in] | mi | pointer to the associated MedCoupling intersector structure |
int cs_mi_post_get_writer_id | ( | void | ) |
Return writer id used for medcoupling meshes, 0 means unused.
void cs_mi_post_init_writer | ( | const char * | case_name, |
const char * | dir_name, | ||
const char * | fmt_name, | ||
const char * | fmt_opts, | ||
fvm_writer_time_dep_t | time_dep, | ||
bool | output_at_start, | ||
bool | output_at_end, | ||
int | frequency_n, | ||
double | frequency_t | ||
) |
Create a new writer that will contains the boundary MED mesh added.
by the user. The writer_id is stored locally..
[in] | time_dep | > 1 if the writer is transient, else writer is fixed |