My Project
programmer's documentation
Functions
cs_cdo_connect.c File Reference

Build additional connectivities (or adjacencies) useful for building CDO or HHO schemes. More...

#include "cs_defs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "bft_mem.h"
#include "cs_flag.h"
#include "cs_log.h"
#include "cs_mesh_adjacencies.h"
#include "cs_order.h"
#include "cs_parall.h"
#include "cs_param.h"
#include "cs_param_cdo.h"
#include "cs_sort.h"
#include "cs_cdo_connect.h"
Include dependency graph for cs_cdo_connect.c:

Functions

cs_cdo_connect_tcs_cdo_connect_init (cs_mesh_t *mesh, cs_flag_t vb_scheme_flag, cs_flag_t vcb_scheme_flag, cs_flag_t fb_scheme_flag, cs_flag_t hho_scheme_flag)
 Allocate and define a new cs_cdo_connect_t structure Range sets and interface sets are allocated and defined according to the value of the different scheme flags. cs_range_set_t structure related to vertices is shared the cs_mesh_t structure (the global one) More...
 
cs_cdo_connect_tcs_cdo_connect_free (cs_cdo_connect_t *connect)
 Destroy a cs_cdo_connect_t structure. More...
 
void cs_cdo_connect_summary (const cs_cdo_connect_t *connect)
 Summary of connectivity information. More...
 
void cs_cdo_connect_dump (const cs_cdo_connect_t *connect)
 Dump a cs_cdo_connect_t structure. More...
 

Detailed Description

Build additional connectivities (or adjacencies) useful for building CDO or HHO schemes.

Allocate and define a cs_adjacency_t structure related to the connectivity vertex to vertices through edges.

Adjacent vertices are accessed based on the vertex with lowest id. Another v2v connectivity through cells is possible. Please read the source code if interested

Parameters
[in]mpointer to a cs_mesh_t structure
Returns
a pointer to a new allocated cs_adjacency_t structure

Function Documentation

◆ cs_cdo_connect_dump()

void cs_cdo_connect_dump ( const cs_cdo_connect_t connect)

Dump a cs_cdo_connect_t structure.

Parameters
[in]connectpointer to cs_cdo_connect_t structure

◆ cs_cdo_connect_free()

cs_cdo_connect_t* cs_cdo_connect_free ( cs_cdo_connect_t connect)

Destroy a cs_cdo_connect_t structure.

Parameters
[in]connectpointer to the cs_cdo_connect_t struct. to destroy
Returns
a NULL pointer

◆ cs_cdo_connect_init()

cs_cdo_connect_t* cs_cdo_connect_init ( cs_mesh_t mesh,
cs_flag_t  vb_scheme_flag,
cs_flag_t  vcb_scheme_flag,
cs_flag_t  fb_scheme_flag,
cs_flag_t  hho_scheme_flag 
)

Allocate and define a new cs_cdo_connect_t structure Range sets and interface sets are allocated and defined according to the value of the different scheme flags. cs_range_set_t structure related to vertices is shared the cs_mesh_t structure (the global one)

DOXYGEN_SHOULD_SKIP_THIS

Parameters
[in,out]meshpointer to a cs_mesh_t structure
[in]vb_scheme_flagmetadata for Vb schemes
[in]vcb_scheme_flagmetadata for V+C schemes
[in]fb_scheme_flagmetadata for Fb schemes
[in]hho_scheme_flagmetadata for HHO schemes
Returns
a pointer to a cs_cdo_connect_t structure

◆ cs_cdo_connect_summary()

void cs_cdo_connect_summary ( const cs_cdo_connect_t connect)

Summary of connectivity information.

Parameters
[in]connectpointer to cs_cdo_connect_t structure