7.0
general documentation
cs_medcoupling_utils.hxx File Reference
#include "cs_defs.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mpi.h>
#include "MEDCouplingUMesh.hxx"
+ Include dependency graph for cs_medcoupling_utils.hxx:

Go to the source code of this file.

Data Structures

struct  cs_medcoupling_mesh_t
 

Functions

cs_medcoupling_mesh_tcs_medcoupling_mesh_create (const char *name, const char *selection_criteria, int elt_dim)
 create a new cs_medcoupling_mesh_t instance More...
 
void cs_medcoupling_mesh_copy_from_base (cs_mesh_t *csmesh, cs_medcoupling_mesh_t *pmmesh, int use_bbox)
 copy a cs_mesh_t into a cs_medcoupling_mesh_t More...
 
void cs_medcoupling_mesh_destroy (cs_medcoupling_mesh_t *mesh)
 Destroy a cs_medcoupling_mesh_t. More...
 
int cs_medcoupling_mesh_get_dim (cs_medcoupling_mesh_t *m)
 Return a cs_medcoupling_mesh_t structure's spatial dimension. More...
 
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. More...
 
const cs_lnum_tcs_medcoupling_mesh_get_elt_list (cs_medcoupling_mesh_t *m)
 Return a cs_medcoupling_mesh_t structure's (parent) elements list. More...
 
const cs_lnum_tcs_medcoupling_mesh_get_connectivity (cs_medcoupling_mesh_t *m)
 Return a cs_medcoupling_mesh_t structure's (parent) elements list. More...
 

Function Documentation

◆ cs_medcoupling_mesh_copy_from_base()

void cs_medcoupling_mesh_copy_from_base ( cs_mesh_t csmesh,
cs_medcoupling_mesh_t pmmesh,
int  use_bbox 
)

copy a cs_mesh_t into a cs_medcoupling_mesh_t

Parameters
[in]csmeshpointer to the cs_mesh_t struct to copy data from
[in]pmmeshpointer to the cs_medcoupling_mesh_t for copy
[in]use_bboxflag indicating if a reduced bounding is used. Usefull for interpolation to reduce the matrix sice. 0: Do not use a reduced bbox 1: Use a reduced bbox

◆ cs_medcoupling_mesh_create()

cs_medcoupling_mesh_t* cs_medcoupling_mesh_create ( const char *  name,
const char *  selection_criteria,
int  elt_dim 
)

create a new cs_medcoupling_mesh_t instance

Parameters
[in]namename of the mesh
[in]selection_criteriaselection criteria (entire mesh or part of it)
[in]elt_dimdimension of elements. 2: faces 3: cells
Returns
pointer to the newly created cs_medcoupling_mesh_t struct

◆ cs_medcoupling_mesh_destroy()

void cs_medcoupling_mesh_destroy ( cs_medcoupling_mesh_t mesh)

Destroy a cs_medcoupling_mesh_t.

Parameters
[in]meshcs_medcoupling_mesh_t pointer

◆ cs_medcoupling_mesh_get_connectivity()

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.

Parameters
[in]meshcs_medcoupling_mesh_t pointer
Returns
ids of associated elements, or NULL

◆ cs_medcoupling_mesh_get_dim()

int cs_medcoupling_mesh_get_dim ( cs_medcoupling_mesh_t m)

Return a cs_medcoupling_mesh_t structure's spatial dimension.

Parameters
[in]meshcs_medcoupling_mesh_t pointer
Returns
associated spatial dimension

◆ cs_medcoupling_mesh_get_elt_list()

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.

Parameters
[in]meshcs_medcoupling_mesh_t pointer
Returns
ids of associated elements, or NULL

◆ cs_medcoupling_mesh_get_n_elts()

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.

Parameters
[in]meshcs_medcoupling_mesh_t pointer
Returns
associated number of elements