1#ifndef CS_INTERNAL_COUPLING_H
2#define CS_INTERNAL_COUPLING_H
127 const char criteria_faces[]);
165 const int zone_ids[]);
187 const char *interior_name,
188 const char *exterior_name);
449#if defined(__cplusplus)
486 const bool compute_diffusion_coeffs,
515template <cs_lnum_t str
ide>
Definition: cs_dispatch.h:1711
#define BEGIN_C_DECLS
Definition: cs_defs.h:554
double cs_real_t
Floating-point value.
Definition: cs_defs.h:357
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:374
unsigned cs_gnum_t
global mesh entity number
Definition: cs_defs.h:342
#define END_C_DECLS
Definition: cs_defs.h:555
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:350
cs_halo_type_t
Definition: cs_halo.h:57
void cs_internal_coupling_preprocess(cs_mesh_t *mesh)
Definition: cs_internal_coupling.cpp:1532
void cs_internal_coupling_matrix_add_ids(int coupling_id, const cs_gnum_t *r_g_id, cs_matrix_assembler_t *ma)
Definition: cs_internal_coupling.cpp:1190
void cs_internal_coupling_log(const cs_internal_coupling_t *cpl)
Definition: cs_internal_coupling.cpp:1459
void cs_internal_coupling_add_volume_zone(const cs_zone_t *z)
Define coupling volume using a cs_zone_t. Then, this volume will be separated from the rest of the do...
Definition: cs_internal_coupling.cpp:789
void cs_internal_coupling_add_boundary_groups(cs_internal_coupling_t *cpl, const char *interior_name, const char *exterior_name)
Define internal coupling volume boundary group names.
Definition: cs_internal_coupling.cpp:852
void cs_internal_coupling_initialize(void)
Initialize internal coupling related structures.
Definition: cs_internal_coupling.cpp:1442
void cs_internal_coupling_exchange_var(const cs_internal_coupling_t *cpl, int stride, cs_real_t distant[], cs_real_t local[])
Exchange quantities from distant to local (update local using distant).
Definition: cs_internal_coupling.cpp:946
void cs_internal_coupling_finalize(void)
Destruction of all internal coupling related structures.
Definition: cs_internal_coupling.cpp:901
void cs_internal_coupling_coupled_faces(const cs_internal_coupling_t *cpl, cs_lnum_t *n_local, const cs_lnum_t *faces_local[], cs_lnum_t *n_distant, const cs_lnum_t *faces_distant[])
Definition: cs_internal_coupling.cpp:1061
void cs_internal_coupling_bcs(int bc_type[])
Impose wall BCs to internal coupled faces if not yet defined.
Definition: cs_internal_coupling.cpp:876
void cs_internal_coupling_matrix_add_values(const cs_field_t *f, cs_lnum_t db_size, cs_lnum_t eb_size, const cs_gnum_t r_g_id[], cs_matrix_assembler_values_t *mav)
Definition: cs_internal_coupling.cpp:1263
void cs_internal_coupling_add_volume_zones(int n_zones, const int zone_ids[])
Define coupling volume using given cs_zone_t. Then, this volume will be separated from the rest of th...
Definition: cs_internal_coupling.cpp:807
void cs_internal_coupling_update_bc_coeffs_strided(cs_dispatch_context &ctx, const cs_field_bc_coeffs_t *bc_coeffs_v, const cs_internal_coupling_t *cpl, cs_halo_type_t halo_type, double clip_coeff, cs_real_t *df_limiter, const cs_real_t var[][stride], const cs_real_t *c_weight)
Update vector boundary condition coefficients for internal coupling.
Definition: cs_internal_coupling.cpp:1911
int cs_internal_coupling_n_couplings(void)
Return number of defined internal couplings.
Definition: cs_internal_coupling.cpp:713
void cs_ic_field_dist_data_by_face_id(const int field_id, int stride, const cs_real_t tab_distant[], cs_real_t tab_local[])
Get distant data using face id at all coupling faces for a given field id.
Definition: cs_internal_coupling.cpp:1645
void cs_internal_coupling_exchange_by_cell_id(const cs_internal_coupling_t *cpl, int stride, const cs_real_t tab[], cs_real_t local[])
Exchange variable between groups using cell id.
Definition: cs_internal_coupling.cpp:972
void cs_internal_coupling_exchange_by_face_id(const cs_internal_coupling_t *cpl, int stride, const cs_real_t tab[], cs_real_t local[])
Exchange variable between groups using face id.
Definition: cs_internal_coupling.cpp:1021
cs_internal_coupling_t * cs_internal_coupling_by_id(int coupling_id)
Return the coupling associated with a given coupling_id.
Definition: cs_internal_coupling.cpp:923
void cs_internal_coupling_map(cs_mesh_t *mesh)
Definition: cs_internal_coupling.cpp:1553
void cs_internal_coupling_add_volume(const char criteria_cells[])
Define coupling volume using given criteria. Then, this volume will be separated from the rest of the...
Definition: cs_internal_coupling.cpp:758
void cs_internal_coupling_spmv_contribution(bool exclude_diag, const cs_field_t *f, const cs_real_t *x, cs_real_t *y)
void cs_ic_field_set_exchcoeff(const cs_field_t *f, const cs_real_t *hbnd)
Update internal coupling coefficients of the field of the given id using given boundary exchange coef...
Definition: cs_internal_coupling.cpp:1599
void cs_internal_coupling_dump(void)
Definition: cs_internal_coupling.cpp:1505
void cs_internal_coupling_add_entity(int f_id)
Definition: cs_internal_coupling.cpp:1573
void cs_internal_coupling_setup(void)
Setup internal coupling related parameters.
Definition: cs_internal_coupling.cpp:1393
void cs_internal_coupling_update_bc_coeffs_s(cs_dispatch_context &ctx, const cs_field_bc_coeffs_t *bc_coeffs, const cs_internal_coupling_t *cpl, const bool compute_diffusion_coeffs, cs_halo_type_t halo_type, int w_stride, double clip_coeff, bool hyd_p_flag, cs_real_t f_ext[][3], cs_real_t viscel[][6], const cs_real_t weighb[], cs_real_t *df_limiter, const cs_real_t *var, const cs_real_t *c_weight)
Compute scalar boundary condition coefficients for internal coupling.
Definition: cs_internal_coupling.cpp:1713
void cs_internal_coupling_add(const char criteria_cells[], const char criteria_faces[])
Define coupling volume using given selection criteria.
Definition: cs_internal_coupling.cpp:730
struct _cs_matrix_assembler_t cs_matrix_assembler_t
Definition: cs_matrix_assembler.h:61
struct _cs_matrix_assembler_values_t cs_matrix_assembler_values_t
Definition: cs_matrix_assembler.h:65
Field boundary condition descriptor (for variables)
Definition: cs_field.h:120
Field descriptor.
Definition: cs_field.h:156
Definition: cs_internal_coupling.h:64
ple_locator_t * locator
Definition: cs_internal_coupling.h:70
cs_lnum_t * faces_local
Definition: cs_internal_coupling.h:86
cs_lnum_t * faces_distant
Definition: cs_internal_coupling.h:89
int n_volume_zones
Definition: cs_internal_coupling.h:82
bool * coupled_faces
Definition: cs_internal_coupling.h:92
int * c_tag
Definition: cs_internal_coupling.h:71
int id
Definition: cs_internal_coupling.h:67
char * interior_faces_group_name
Definition: cs_internal_coupling.h:77
cs_real_3_t * ci_cj_vect
Definition: cs_internal_coupling.h:95
char * exterior_faces_group_name
Definition: cs_internal_coupling.h:78
char * cells_criteria
Definition: cs_internal_coupling.h:74
cs_lnum_t n_distant
Definition: cs_internal_coupling.h:88
cs_lnum_t n_local
Definition: cs_internal_coupling.h:85
char * faces_criteria
Definition: cs_internal_coupling.h:75
int * volume_zone_ids
Definition: cs_internal_coupling.h:83