9.0
general documentation
Loading...
Searching...
No Matches
cs_ext_neighborhood.cpp File Reference
#include "base/cs_defs.h"
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include "bft/bft_error.h"
#include "bft/bft_printf.h"
#include "base/cs_halo.h"
#include "base/cs_halo_perio.h"
#include "base/cs_math.h"
#include "base/cs_mem.h"
#include "mesh/cs_mesh.h"
#include "mesh/cs_mesh_adjacencies.h"
#include "mesh/cs_mesh_quantities.h"
#include "base/cs_parall.h"
#include "base/cs_sort.h"
#include "fvm/fvm_defs.h"
#include "base/cs_ext_neighborhood.h"
Include dependency graph for cs_ext_neighborhood.cpp:

Functions

cs_ext_neighborhood_type_t cs_ext_neighborhood_get_type (void)
 Get the extended neighborhood type.
void cs_ext_neighborhood_set_type (cs_ext_neighborhood_type_t enh_type)
 Set the extended neighborhood type.
bool cs_ext_neighborhood_get_boundary_complete (void)
 Query whether full extended neighborhood should be kept at boundaries.
void cs_ext_neighborhood_set_boundary_complete (bool keep)
 Set the extended neighborhood type.
cs_real_t cs_ext_neighborhood_get_non_ortho_max (void)
 Get the non_orthogonality threshold (in degrees) associated with the CS_EXT_NEIGHBORHOOD_NON_ORTHO_MAX neighborhood type.
void cs_ext_neighborhood_set_non_ortho_max (cs_real_t non_ortho_max)
 Set the non_orthogonality threshold (in degrees) associated with the CS_EXT_NEIGHBORHOOD_NON_ORTHO_MAX neighborhood type.
void cs_ext_neighborhood_reduce (cs_mesh_t *mesh, cs_mesh_quantities_t *mesh_quantities)
 Reduce the "cell -> cells" connectivity for the extended neighborhood using a non-orthogonality criterion.
void cs_ext_neighborhood_define (cs_mesh_t *mesh)
 Create the "cell -> cells" connectivity.

Detailed Description

Extended cell neighborhood.

Function Documentation

◆ cs_ext_neighborhood_define()

void cs_ext_neighborhood_define ( cs_mesh_t * mesh)

Create the "cell -> cells" connectivity.

Parameters
[in,out]meshpointer to a mesh structure

◆ cs_ext_neighborhood_get_boundary_complete()

bool cs_ext_neighborhood_get_boundary_complete ( void )

Query whether full extended neighborhood should be kept at boundaries.

Returns
extended neighborhood type

◆ cs_ext_neighborhood_get_non_ortho_max()

cs_real_t cs_ext_neighborhood_get_non_ortho_max ( void )

Get the non_orthogonality threshold (in degrees) associated with the CS_EXT_NEIGHBORHOOD_NON_ORTHO_MAX neighborhood type.

Returns
non-orthogonality threshold

◆ cs_ext_neighborhood_get_type()

cs_ext_neighborhood_type_t cs_ext_neighborhood_get_type ( void )

Get the extended neighborhood type.

Returns
extended neighborhood type

◆ cs_ext_neighborhood_reduce()

void cs_ext_neighborhood_reduce ( cs_mesh_t * mesh,
cs_mesh_quantities_t * mesh_quantities )

Reduce the "cell -> cells" connectivity for the extended neighborhood using a non-orthogonality criterion.

Note: Only cells sharing only a vertex or vertices (not a face) belong to the "cell -> cells" connectivity.

Parameters
[in]meshpointer to mesh structure
[in]mesh_quantitiesassociated mesh quantities

◆ cs_ext_neighborhood_set_boundary_complete()

void cs_ext_neighborhood_set_boundary_complete ( bool keep)

Set the extended neighborhood type.

Parameters
[in]keeptrue if full extended neighborhood should be maintained at boundary

◆ cs_ext_neighborhood_set_non_ortho_max()

void cs_ext_neighborhood_set_non_ortho_max ( cs_real_t non_ortho_max)

Set the non_orthogonality threshold (in degrees) associated with the CS_EXT_NEIGHBORHOOD_NON_ORTHO_MAX neighborhood type.

Parameters
[in]non_ortho_maxnon-orthogonality threshold

◆ cs_ext_neighborhood_set_type()

void cs_ext_neighborhood_set_type ( cs_ext_neighborhood_type_t enh_type)

Set the extended neighborhood type.

Parameters
[in]enh_typeextended neighborhood type