#include "cs_defs.h"#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h>#include <math.h>#include <mpi.h>#include "bft_error.h"#include "bft_mem.h"#include "bft_printf.h"#include "cs_mesh.h"#include "cs_mesh_connect.h"#include "cs_parall.h"#include "cs_prototypes.h"#include "cs_selector.h"#include "cs_timer.h"#include "fvm_defs.h"#include "fvm_nodal_from_desc.h"#include "cs_medcoupling_mesh.hxx"Functions | |
| cs_medcoupling_mesh_t * | cs_medcoupling_mesh_from_base (cs_mesh_t *csmesh, const char *name, const char *selection_criteria, int elt_dim, int use_bbox) |
| create a new cs_medcoupling_mesh_t instance based on cs_mesh_t | |
| cs_medcoupling_mesh_t * | cs_medcoupling_mesh_from_ids (cs_mesh_t *csmesh, const char *name, cs_lnum_t n_elts, const cs_lnum_t elt_ids[], int elt_dim, int use_bbox) |
| create a new cs_medcoupling_mesh_t instance based on cs_mesh_t | |
| void | cs_medcoupling_mesh_destroy (cs_medcoupling_mesh_t *mesh) |
| Destroy a cs_medcoupling_mesh_t. | |
| void | cs_medcoupling_mesh_destroy_all (void) |
| Destroy all cs_medcoupling_mesh_t instances. | |
| int | cs_medcoupling_mesh_get_dim (cs_medcoupling_mesh_t *m) |
| Return a cs_medcoupling_mesh_t structure's spatial dimension. | |
| cs_lnum_t | cs_medcoupling_mesh_get_n_elts (cs_medcoupling_mesh_t *m) |
| Return a cs_medcoupling_mesh_t structure's number of elements. | |
| const cs_lnum_t * | cs_medcoupling_mesh_get_elt_list (cs_medcoupling_mesh_t *m) |
| Return a cs_medcoupling_mesh_t structure's (parent) elements list. | |
| cs_lnum_t | cs_medcoupling_mesh_get_n_vertices (cs_medcoupling_mesh_t *m) |
| Return a cs_medcoupling_mesh_t structure's number of vertices. | |
| const cs_lnum_t * | cs_medcoupling_mesh_get_vertex_list (cs_medcoupling_mesh_t *m) |
| Return a cs_medcoupling_mesh_t structure's (parent) vertices list. | |
| const cs_lnum_t * | cs_medcoupling_mesh_get_connectivity (cs_medcoupling_mesh_t *m) |
| Return a cs_medcoupling_mesh_t structure's (parent) elements list. | |
| void | cs_medcoupling_mesh_export (cs_medcoupling_mesh_t *m, const std::string name) |
| Export a medcoupling_mesh. | |
| void * | cs_medcoupling_create_plane_mesh (const cs_real_t origin[], const cs_real_t normal[], const cs_real_t length1, const cs_real_t length2) |
| Returns a pointer to a MEDCouplingUMesh of a plane. | |
| void * | cs_medcoupling_create_disc_mesh (const cs_real_t origin[], const cs_real_t normal[], const cs_real_t radius, const int n_sectors) |
| Returns a pointer to a MEDCouplingUMesh of a disc. | |
| void * | cs_medcoupling_create_annulus_mesh (const cs_real_t origin[], const cs_real_t normal[], const cs_real_t radius1, const cs_real_t radius2, const int n_sectors) |
| Returns a pointer to a MEDCouplingUMesh of an annulus. | |
| void * cs_medcoupling_create_annulus_mesh | ( | const cs_real_t | origin[], |
| const cs_real_t | normal[], | ||
| const cs_real_t | radius1, | ||
| const cs_real_t | radius2, | ||
| const int | n_sectors ) |
Returns a pointer to a MEDCouplingUMesh of an annulus.
| [in] | origin | Annulus origin coordinates |
| [in] | normal | Annulus normal vector |
| [in] | radius1 | Annulus inner radius |
| [in] | radius2 | Annulus outer radius |
| [in] | n_sectors | Number of sectors for discretization. If negative, default value of 36 is taken. |
| void * cs_medcoupling_create_disc_mesh | ( | const cs_real_t | origin[], |
| const cs_real_t | normal[], | ||
| const cs_real_t | radius, | ||
| const int | n_sectors ) |
Returns a pointer to a MEDCouplingUMesh of a disc.
| [in] | origin | Disc origin coordinates |
| [in] | normal | Disc normal vector |
| [in] | radius | Disc radius |
| [in] | n_sectors | Number of sectors for discretization. If negative, default value of 36 is taken. |
| void * cs_medcoupling_create_plane_mesh | ( | const cs_real_t | origin[], |
| const cs_real_t | normal[], | ||
| const cs_real_t | length1, | ||
| const cs_real_t | length2 ) |
Returns a pointer to a MEDCouplingUMesh of a plane.
| [in] | origin | Plane origin coordinates |
| [in] | normal | Plane normal vector |
| [in] | length1 | Plane's edge length along first axis |
| [in] | length2 | Plane's edge length along second axis |
| void cs_medcoupling_mesh_destroy | ( | cs_medcoupling_mesh_t * | mesh | ) |
Destroy a cs_medcoupling_mesh_t.
| [in] | mesh | cs_medcoupling_mesh_t pointer |
| void cs_medcoupling_mesh_destroy_all | ( | void | ) |
Destroy all cs_medcoupling_mesh_t instances.
| void cs_medcoupling_mesh_export | ( | cs_medcoupling_mesh_t * | m, |
| const std::string | name ) |
Export a medcoupling_mesh.
| [in] | mesh | cs_medcoupling_mesh_t pointer |
| [in] | name | name of the file |
| cs_medcoupling_mesh_t * cs_medcoupling_mesh_from_base | ( | cs_mesh_t * | csmesh, |
| const char * | name, | ||
| const char * | selection_criteria, | ||
| int | elt_dim, | ||
| int | use_bbox ) |
create a new cs_medcoupling_mesh_t instance based on cs_mesh_t
| [in] | csmesh | pointer to cs_mesh_t instance |
| [in] | name | name of the mesh |
| [in] | selection_criteria | selection criteria string |
| [in] | elt_dim | dimension of elements (2: faces, 3: cells) |
| [in] | use_bbox | Use a reduced bounding box |
| cs_medcoupling_mesh_t * cs_medcoupling_mesh_from_ids | ( | cs_mesh_t * | csmesh, |
| const char * | name, | ||
| cs_lnum_t | n_elts, | ||
| const cs_lnum_t | elt_ids[], | ||
| int | elt_dim, | ||
| int | use_bbox ) |
create a new cs_medcoupling_mesh_t instance based on cs_mesh_t
| [in] | csmesh | pointer to cs_mesh_t instance |
| [in] | name | name of the mesh |
| [in] | n_elts | local number of elements |
| [in] | elt_ids | list of local elements |
| [in] | elt_dim | dimension of elements (2: faces, 3: cells) |
| [in] | use_bbox | use a reduced bounding box |
| const cs_lnum_t * cs_medcoupling_mesh_get_connectivity | ( | cs_medcoupling_mesh_t * | m | ) |
Return a cs_medcoupling_mesh_t structure's (parent) elements list.
| [in] | mesh | cs_medcoupling_mesh_t pointer |
| int cs_medcoupling_mesh_get_dim | ( | cs_medcoupling_mesh_t * | m | ) |
Return a cs_medcoupling_mesh_t structure's spatial dimension.
| [in] | mesh | cs_medcoupling_mesh_t pointer |
| const cs_lnum_t * cs_medcoupling_mesh_get_elt_list | ( | cs_medcoupling_mesh_t * | m | ) |
Return a cs_medcoupling_mesh_t structure's (parent) elements list.
| [in] | mesh | cs_medcoupling_mesh_t pointer |
| cs_lnum_t cs_medcoupling_mesh_get_n_elts | ( | cs_medcoupling_mesh_t * | m | ) |
Return a cs_medcoupling_mesh_t structure's number of elements.
| [in] | mesh | cs_medcoupling_mesh_t pointer |
| cs_lnum_t cs_medcoupling_mesh_get_n_vertices | ( | cs_medcoupling_mesh_t * | m | ) |
Return a cs_medcoupling_mesh_t structure's number of vertices.
| [in] | mesh | cs_medcoupling_mesh_t pointer |
| const cs_lnum_t * cs_medcoupling_mesh_get_vertex_list | ( | cs_medcoupling_mesh_t * | m | ) |
Return a cs_medcoupling_mesh_t structure's (parent) vertices list.
| [in] | mesh | cs_medcoupling_mesh_t pointer |