#include <vector>#include <string>#include "bft_mem.h"#include "bft_error.h"#include "bft_printf.h"#include "cs_array.h"#include "cs_defs.h"#include "cs_function.h"#include "cs_halo.h"#include "cs_math.h"#include "cs_mesh.h"#include "cs_mesh_quantities.h"#include "cs_medcoupling_utils.h"#include "cs_medcoupling_mesh.hxx"#include "cs_post.h"#include <MEDCoupling_version.h>#include <MEDCouplingUMesh.hxx>#include <MEDCouplingNormalizedUnstructuredMesh.txx>#include "Interpolation2D3D.hxx"#include "cs_medcoupling_postprocess.h" Include dependency graph for cs_medcoupling_postprocess.cxx:
 Include dependency graph for cs_medcoupling_postprocess.cxx:| 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... | |
| void | cs_medcoupling_slice_activate_postprocess (const char *name) | 
| Activate postprocessing of intersected cells.  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... | |
| Variables | |
| static int | _n_slices = 0 | 
| static cs_medcoupling_slice_t ** | _slices = NULL | 
| 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 NULL 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 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 (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 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 (n_cells) | 
| [in] | weight_v | vectorial weight array (n_cells) | 
| 
 | static | 
| 
 | static |