8.0
general documentation
cs_ext_neighborhood.c File Reference
#include "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 <mpi.h>
#include "bft_error.h"
#include "bft_mem.h"
#include "bft_printf.h"
#include "cs_halo.h"
#include "cs_halo_perio.h"
#include "cs_math.h"
#include "cs_mesh.h"
#include "cs_mesh_adjacencies.h"
#include "cs_mesh_quantities.h"
#include "cs_parall.h"
#include "cs_sort.h"
#include "fvm_defs.h"
#include "cs_ext_neighborhood.h"
+ Include dependency graph for cs_ext_neighborhood.c:

Functions

cs_ext_neighborhood_type_t cs_ext_neighborhood_get_type (void)
 Get the extended neighborhood type. More...
 
void cs_ext_neighborhood_set_type (cs_ext_neighborhood_type_t enh_type)
 Set the extended neighborhood type. More...
 
bool cs_ext_neighborhood_get_boundary_complete (void)
 Query whether full extended neighborhood should be kept at boundaries. More...
 
void cs_ext_neighborhood_set_boundary_complete (bool keep)
 Set the extended neighborhood type. More...
 
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. More...
 
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. More...
 
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. More...
 
void cs_ext_neighborhood_define (cs_mesh_t *mesh)
 Create the "cell -> cells" connectivity. More...
 

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