Handle the "physical" boundary conditions attached to a computational domain. More...
#include "cs_defs.h"#include <assert.h>#include <string.h>#include "bft_mem.h"#include "cs_boundary_zone.h"#include "cs_log.h"#include "cs_mesh.h"#include "cs_mesh_location.h"#include "cs_parall.h"#include "cs_boundary.h"Functions | |
| bool | cs_boundary_has_type (const cs_boundary_t *boundaries, int type_flag) |
| Check if a boundary with a given flag is present. | |
| int | cs_boundary_id_by_zone_id (const cs_boundary_t *boundaries, int z_id) |
| Retrieve the related id associated to a boundary from its zone id. | |
| void | cs_boundary_set_default (cs_boundary_t *boundaries, cs_boundary_type_t type) |
| Set the default boundary related to the given cs_boundary_t structure. | |
| cs_boundary_t * | cs_boundary_create (cs_boundary_category_t category, cs_boundary_type_t default_type) |
| Create a default boundary structure for the computational domain. | |
| void | cs_boundary_free (cs_boundary_t **p_boundaries) |
| Free all metadate related to the domain boundaries. | |
| void | cs_boundary_add (cs_boundary_t *bdy, cs_boundary_type_t type, const char *zone_name) |
| Add a new boundary type for a given boundary zone. | |
| void | cs_boundary_build_type_array (const cs_boundary_t *boundaries, cs_lnum_t n_b_faces, cs_boundary_type_t bf_type[]) |
| Build an array on boundary faces which specifies the boundary type for each face. | |
| void | cs_boundary_def_wall_zones (cs_boundary_t *boundaries) |
| Add a new zone gathering all CS_BOUNDARY_WALL zone type. | |
| int | cs_boundary_need_pressure_rescaling (cs_lnum_t n_b_faces, const cs_boundary_type_t bf_type[]) |
| Check if one needs to perform a pressure rescaling (in case of a Dirichlet on the velocity for the whole boundary) Use in CDO schemes for Navier–Stokes. | |
| void | cs_boundary_get_type_descr (const cs_boundary_t *bdy, cs_boundary_type_t b_type, int descr_len_max, char descr[]) |
| Build a boundary type description. | |
| void | cs_boundary_log_setup (const cs_boundary_t *bdy) |
| Summarize the setup of the boundary of the computational domain. | |
Handle the "physical" boundary conditions attached to a computational domain.
| void cs_boundary_add | ( | cs_boundary_t * | bdy, |
| cs_boundary_type_t | type, | ||
| const char * | zone_name ) |
Add a new boundary type for a given boundary zone.
| [in,out] | bdy | pointer to a structure storing boundary info |
| [in] | type | type of boundary to set |
| [in] | zone_name | name of the zone related to this boundary |
| void cs_boundary_build_type_array | ( | const cs_boundary_t * | boundaries, |
| cs_lnum_t | n_b_faces, | ||
| cs_boundary_type_t | bf_type[] ) |
Build an array on boundary faces which specifies the boundary type for each face.
| [in] | boundaries | pointer to the domain boundaries |
| [in] | n_b_faces | number of boundaries faces |
| [in,out] | bf_type | array to define the type of boundary |
| cs_boundary_t * cs_boundary_create | ( | cs_boundary_category_t | category, |
| cs_boundary_type_t | default_type ) |
Create a default boundary structure for the computational domain.
| [in] | category | default type of boundary to set |
| [in] | default_type | default type of boundary to set |
| void cs_boundary_def_wall_zones | ( | cs_boundary_t * | boundaries | ) |
Add a new zone gathering all CS_BOUNDARY_WALL zone type.
Add a new zone gathering all CS_BOUNDARY_WALL type zones.
| [in,out] | boundaries | pointer to the domain boundaries |
| void cs_boundary_free | ( | cs_boundary_t ** | p_boundaries | ) |
Free all metadate related to the domain boundaries.
| [in,out] | p_boundaries | pointer to the structure to free |
| void cs_boundary_get_type_descr | ( | const cs_boundary_t * | bdy, |
| cs_boundary_type_t | b_type, | ||
| int | descr_len_max, | ||
| char | descr[] ) |
Build a boundary type description.
| [in] | bdy | pointer to a structure storing boundary info |
| [in] | b_type | type flag |
| [in] | descr_len_max | maximum name length |
| [out] | descr | subtype name |
| bool cs_boundary_has_type | ( | const cs_boundary_t * | boundaries, |
| int | type_flag ) |
Check if a boundary with a given flag is present.
| [in] | boundaries | pointer to a cs_boundary_t structure |
| [in] | type_flag | boundary type flag |
| int cs_boundary_id_by_zone_id | ( | const cs_boundary_t * | boundaries, |
| int | z_id ) |
Retrieve the related id associated to a boundary from its zone id.
| [in] | boundaries | pointer to a cs_boundary_t structure |
| [in] | z_id | id of the related zone |
| void cs_boundary_log_setup | ( | const cs_boundary_t * | bdy | ) |
Summarize the setup of the boundary of the computational domain.
| [in] | bdy | pointer to a structure storing boundary info |
| int cs_boundary_need_pressure_rescaling | ( | cs_lnum_t | n_b_faces, |
| const cs_boundary_type_t | bf_type[] ) |
Check if one needs to perform a pressure rescaling (in case of a Dirichlet on the velocity for the whole boundary) Use in CDO schemes for Navier–Stokes.
| [in] | n_b_faces | number of border faces |
| [in] | bf_type | array of types of boundary for each boundary face |
| void cs_boundary_set_default | ( | cs_boundary_t * | boundaries, |
| cs_boundary_type_t | type ) |
Set the default boundary related to the given cs_boundary_t structure.
| [in,out] | boundaries | pointer to a structure storing boundary info |
| [in] | type | type of boundary to set |