#include "cs_defs.h"Go to the source code of this file.
Functions | |
| cs_medcoupling_slice_t * | cs_medcoupling_slice_by_id (int id) |
| Get pointer to a slice based on id. | |
| cs_medcoupling_slice_t * | cs_medcoupling_slice_by_name (const char *name) |
| Get pointer to slice based on name, raises an error if not found. | |
| cs_medcoupling_slice_t * | cs_medcoupling_slice_by_name_try (const char *name) |
| Get pointer to slice based on name. Returns nullptr if not found. | |
| void | cs_medcoupling_postprocess_add_plane_slice (const char *name, const char *selection_criteria, const cs_real_t origin[], const cs_real_t normal[], const cs_real_t length1, const cs_real_t length2) |
| Add a slice based on a plane. | |
| void | cs_medcoupling_postprocess_add_disc_slice (const char *name, const char *selection_criteria, const cs_real_t origin[], const cs_real_t normal[], const cs_real_t radius, const int n_sectors) |
| Add a slice based on a disc. | |
| void | cs_medcoupling_postprocess_add_annulus_slice (const char *name, const char *selection_criteria, const cs_real_t origin[], const cs_real_t normal[], const cs_real_t radius1, const cs_real_t radius2, const int n_sectors) |
| Add a slice based on an annulus. | |
| cs_lnum_t | cs_medcoupling_slice_get_n_elts (const char *name) |
| Get number cells that may be intersected by the slice. | |
| cs_lnum_t * | cs_medcoupling_slice_get_elt_ids (const char *name) |
| Get list of ids of the elements which may be intersected. | |
| cs_real_t * | cs_medcoupling_slice_get_surfaces (const char *name) |
| Get list of intersection surfaces for each cell intersected. | |
| cs_real_t | cs_medcoupling_slice_get_total_surface (const char *name) |
| Get total intersection surface between a slice and volume mesh. | |
| void | cs_medcoupling_slice_activate_postprocess (const char *name) |
| Activate postprocessing of intersected cells. | |
| cs_real_t | cs_medcoupling_slice_scalar_integral (const char *name, const cs_real_t *scalar) |
| Compute integral of a scalar over a slice. | |
| cs_real_t | cs_medcoupling_slice_scalar_mean (const char *name, const cs_real_t *scalar) |
| Compute mean value of a scalar over a slice. | |
| cs_real_t | cs_medcoupling_slice_scalar_integral_weighted (const char *name, const cs_real_t *scalar, const cs_real_t *weight_s, const cs_real_3_t *weight_v) |
| Compute integral of a scalar over a slice using a scalar and/or vectorial weights. If nullptr is provided for both weights, the non-weighted function is called. | |
| cs_real_t | cs_medcoupling_slice_scalar_mean_weighted (const char *name, const cs_real_t *scalar, const cs_real_t *weight_s, const cs_real_3_t *weight_v) |
| Compute mean of a scalar over a slice using a scalar and/or vectorial weights. If nullptr is provided for both weights, the non-weighted function is called. | |
| void | cs_medcoupling_slice_destroy_all (void) |
| Destroy all slices. | |
| void cs_medcoupling_postprocess_add_annulus_slice | ( | const char * | name, |
| const char * | selection_criteria, | ||
| const cs_real_t | origin[], | ||
| const cs_real_t | normal[], | ||
| const cs_real_t | radius1, | ||
| const cs_real_t | radius2, | ||
| const int | n_sectors ) |
Add a slice based on an annulus.
| [in] | name | name of the slice |
| [in] | selection_criteria | selection criteria for cells |
| [in] | origin | coordinates of slice's origin point |
| [in] | normal | normal vector of the slice |
| [in] | radius1 | inner disc's radius |
| [in] | radius2 | outer disc's radius |
| [in] | n_sectors | number of sectors for discretization. if negative, default value (36) is used. |
| void cs_medcoupling_postprocess_add_disc_slice | ( | const char * | name, |
| const char * | selection_criteria, | ||
| const cs_real_t | origin[], | ||
| const cs_real_t | normal[], | ||
| const cs_real_t | radius, | ||
| const int | n_sectors ) |
Add a slice based on a disc.
| [in] | name | Name of the slice |
| [in] | selection_criteria | Selection criteria for cells to intersect |
| [in] | origin | Coordinates of origin point of slice |
| [in] | normal | Normal vector of the slice |
| [in] | radius | Radius of the disc |
| [in] | n_sectors | Number of sectors for discretization. If negative default value (36) is used. |
| [in] | name | name of the slice |
| [in] | selection_criteria | selection criteria for cells |
| [in] | origin | coordinates of slice's origin point |
| [in] | normal | normal vector of the slice |
| [in] | radius | disc's radius |
| [in] | n_sectors | number of sectors for discretization. if negative, default value (36) is used. |
| void cs_medcoupling_postprocess_add_plane_slice | ( | const char * | name, |
| const char * | selection_criteria, | ||
| const cs_real_t | origin[], | ||
| const cs_real_t | normal[], | ||
| const cs_real_t | length1, | ||
| const cs_real_t | length2 ) |
Add a slice based on a plane.
| [in] | name | name of the slice |
| [in] | selection_criteria | selection criteria for cells |
| [in] | origin | coordinates of slice's origin point |
| [in] | normal | normal vector of the slice |
| [in] | length1 | length along the plane's first axis |
| [in] | length2 | length along the plane's second axis |
| void cs_medcoupling_slice_activate_postprocess | ( | const char * | name | ) |
Activate postprocessing of intersected cells.
| [in] | name | Name of the slice |
| cs_medcoupling_slice_t * cs_medcoupling_slice_by_id | ( | int | id | ) |
Get pointer to a slice based on id.
| [in] | id | index of the slice |
| cs_medcoupling_slice_t * cs_medcoupling_slice_by_name | ( | const char * | name | ) |
Get pointer to slice based on name, raises an error if not found.
| [in] | name | name of the slice |
| cs_medcoupling_slice_t * cs_medcoupling_slice_by_name_try | ( | const char * | name | ) |
Get pointer to slice based on name. Returns nullptr if not found.
| [in] | name | name of the slice |
| void cs_medcoupling_slice_destroy_all | ( | void | ) |
Destroy all slices.
| cs_lnum_t * cs_medcoupling_slice_get_elt_ids | ( | const char * | name | ) |
Get list of ids of the elements which may be intersected.
| [in] | name | name of the slice |
| cs_lnum_t cs_medcoupling_slice_get_n_elts | ( | const char * | name | ) |
Get number cells that may be intersected by the slice.
| [in] | name | name of the slice |
| cs_real_t * cs_medcoupling_slice_get_surfaces | ( | const char * | name | ) |
Get list of intersection surfaces for each cell intersected.
| [in] | name | name of the slice |
| cs_real_t cs_medcoupling_slice_get_total_surface | ( | const char * | name | ) |
Get total intersection surface between a slice and volume mesh.
| [in] | name | name of the slice |
Compute integral of a scalar over a slice.
| [in] | name | name of the slice |
| [in] | scalar | array of scalar values (size n_cells) |
| cs_real_t cs_medcoupling_slice_scalar_integral_weighted | ( | const char * | name, |
| const cs_real_t * | scalar, | ||
| const cs_real_t * | weight_s, | ||
| const cs_real_3_t * | weight_v ) |
Compute integral of a scalar over a slice using a scalar and/or vectorial weights. If nullptr is provided for both weights, the non-weighted function is called.
| [in] | name | name of the slice |
| [in] | scalar | array of scalar values (size n_cells) |
| [in] | weight_s | scalar weight array (n_cells) |
| [in] | weight_v | vectorial weight array (n_cells) |
Compute mean value of a scalar over a slice.
| [in] | name | name of the slice |
| [in] | scalar | array of scalar values (size n_cells) |
| cs_real_t cs_medcoupling_slice_scalar_mean_weighted | ( | const char * | name, |
| const cs_real_t * | scalar, | ||
| const cs_real_t * | weight_s, | ||
| const cs_real_3_t * | weight_v ) |
Compute mean of a scalar over a slice using a scalar and/or vectorial weights. If nullptr is provided for both weights, the non-weighted function is called.
| [in] | name | name of the slice |
| [in] | scalar | array of scalar values (size n_cells) |
| [in] | weight_s | scalar weight array (n_cells) |
| [in] | weight_v | vectorial weight array (n_cells) |