#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. More... | |
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. More... | |
cs_medcoupling_slice_t * | cs_medcoupling_slice_by_name_try (const char *name) |
Get pointer to slice based on name. Returns NULL if not found. More... | |
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. More... | |
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. More... | |
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. More... | |
cs_lnum_t | cs_medcoupling_slice_get_n_elts (const char *name) |
Get number cells that may be intersected by the slice. More... | |
cs_lnum_t * | cs_medcoupling_slice_get_elt_ids (const char *name) |
Get list of ids of the elements which may be intersected. More... | |
cs_real_t * | cs_medcoupling_slice_get_surfaces (const char *name) |
Get list of intersection surfaces for each cell intersected. More... | |
cs_real_t | cs_medcoupling_slice_get_total_surface (const char *name) |
Get total intersection surface between a slice and volume mesh. More... | |
cs_real_t | cs_medcoupling_slice_scalar_integral (const char *name, const cs_real_t *scalar) |
Compute integral of a scalar over a slice. More... | |
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. More... | |
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 NULL is provided for both weights, the non-weighted function is called. More... | |
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 NULL is provided for both weights, the non-weighted function is called. More... | |
void | cs_medcoupling_slice_destroy_all (void) |
Destroy all slices. More... | |
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 to intersect |
[in] | origin | Coordinates of origin point of slice |
[in] | normal | Normal vector of the slice |
[in] | radius1 | Inner radius of the annulus (hole) |
[in] | radius2 | Outer radius of the annulus |
[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 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. |
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 to intersect |
[in] | origin | Coordinates of origin point of slice |
[in] | normal | Normal vector of the slice |
[in] | length1 | Length along the first axis of the plane |
[in] | length2 | Length along the second axis of the plane |
cs_medcoupling_slice_t* cs_medcoupling_slice_by_id | ( | int | id | ) |
Get pointer to a slice based on id.
[in] | id | index of 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 structure |
cs_medcoupling_slice_t* cs_medcoupling_slice_by_name_try | ( | const char * | name | ) |
Get pointer to slice based on name. Returns NULL if not found.
[in] | name | Name of the slice structure |
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 NULL 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 (size n_cells) |
[in] | weight_v | Vectorial weight array (size 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 NULL 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 (size n_cells) |
[in] | weight_v | Vectorial weight array (size n_cells) |
[in] | name | Name of the slice |
[in] | scalar | Array of scalar values (size n_cells) |
[in] | weight_s | Scalar weight array (size n_cells) |
[in] | weight_v | Vectorial weight array (size n_cells), cs_real_3_t pointer |