My Project
programmer's documentation
Functions
cs_mesh_boundary.c File Reference
#include "cs_defs.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include "bft_error.h"
#include "bft_mem.h"
#include "bft_printf.h"
#include "fvm_io_num.h"
#include "cs_mesh_builder.h"
#include "cs_mesh_connect.h"
#include "cs_mesh_group.h"
#include "cs_parall.h"
#include "cs_sort.h"
#include "cs_mesh_boundary.h"
Include dependency graph for cs_mesh_boundary.c:

Functions

void cs_mesh_boundary_insert (cs_mesh_t *mesh, cs_lnum_t n_faces, cs_lnum_t face_id[])
 Insert boundary into the mesh. More...
 
void cs_mesh_boundary_insert_with_shared_vertices (cs_mesh_t *mesh, cs_lnum_t n_faces, cs_lnum_t face_id[])
 Insert boundary into the mesh, sharing vertices on both sides. More...
 
void cs_mesh_boundary_insert_separating_cells (cs_mesh_t *mesh, const char *group_name, cs_lnum_t n_cells, const cs_lnum_t cell_id[])
 Insert a boundary into the mesh between a given set of cells and the the others. More...
 

Function Documentation

◆ cs_mesh_boundary_insert()

void cs_mesh_boundary_insert ( cs_mesh_t mesh,
cs_lnum_t  n_faces,
cs_lnum_t  face_id[] 
)

Insert boundary into the mesh.

This is done by transforming interior faces into boundary faces.

Note that the ids of selected faces are sorted by this function.

Parameters
[in]meshpointer to mesh structure to modify
[in]n_facesnumber of selected (interior) faces
[in,out]face_idlist of selected (interior) faces (0 to n-1)

◆ cs_mesh_boundary_insert_separating_cells()

void cs_mesh_boundary_insert_separating_cells ( cs_mesh_t mesh,
const char *  group_name,
cs_lnum_t  n_cells,
const cs_lnum_t  cell_id[] 
)

Insert a boundary into the mesh between a given set of cells and the the others.

This is done by transforming interior faces into boundary faces.

An optional group name may be assigned to newly created boundary faces.

Note that the list of selected faces is sorted by this function.

Parameters
[in]meshpointer to mesh structure to modify
[in]group_namegroup name to assign to newly created boundary faces, or NULL
[in]n_cellsnumber of separated cells
[in]cell_idseparated cell ids

◆ cs_mesh_boundary_insert_with_shared_vertices()

void cs_mesh_boundary_insert_with_shared_vertices ( cs_mesh_t mesh,
cs_lnum_t  n_faces,
cs_lnum_t  face_id[] 
)

Insert boundary into the mesh, sharing vertices on both sides.

This is done by transforming interior faces into boundary faces.

Note that the ids of selected faces are sorted by this function.

Deprecated:
Use of this function is not recommended, as sharing vertices may cause issues with vertex-based values, gradient extended neighborhoods, and some visualization operations.
Parameters
[in]meshpointer to mesh structure to modify
[in]n_facesnumber of selected (interior) faces
[in,out]face_idlist of selected (interior) faces (0 to n-1)