1 #ifndef __CS_EQUATION_COMMON_H__ 2 #define __CS_EQUATION_COMMON_H__ cs_timer_counter_t tca
Definition: cs_equation_common.h:95
Definition: cs_equation_common.h:57
time step descriptor
Definition: cs_time_step.h:51
#define CS_CDO_N_MAX_REACTIONS
Definition: cs_cdo.h:107
cs_timer_counter_t tcd
Definition: cs_equation_common.h:93
Definition: cs_cdo_bc.h:78
const cs_adjacency_t * cs_equation_get_f2f_index(void)
Get the connectivity face->faces for the local rank.
Definition: cs_equation_common.c:1595
Definition: cs_equation_param.h:101
struct _cs_matrix_assembler_values_t cs_matrix_assembler_values_t
Definition: cs_matrix_assembler.h:66
cs_timer_counter_t tcr
Definition: cs_equation_common.h:97
void cs_equation_free_builder(cs_equation_builder_t **p_builder)
Free a cs_equation_builder_t structure.
Definition: cs_equation_common.c:671
Definition: cs_mesh_adjacencies.h:89
short int * cs_equation_tag_neumann_face(const cs_equation_param_t *eqp)
Tag each face related to a Neumann BC with its definition id. Default tag is -1 (not a Neumann face) ...
Definition: cs_equation_common.c:1159
#define BEGIN_C_DECLS
Definition: cs_defs.h:453
void cs_equation_set_diffusion_property(const cs_equation_param_t *eqp, cs_lnum_t c_id, cs_flag_t c_flag, cs_cell_builder_t *cb)
Set the diffusion property inside a cell and its related quantities.
Definition: cs_equation_common.c:788
unsigned char cs_mask_t
Definition: cs_cdo.h:126
Definition: cs_cdo_local.h:138
Definition: cs_cdo_bc.h:95
const cs_matrix_structure_t * cs_equation_get_matrix_structure(cs_space_scheme_t scheme)
Retrieve a pointer to the associated cs_matrix_structure_t according to the space scheme...
Definition: cs_equation_common.c:1500
cs_flag_t msh_flag
Definition: cs_equation_common.h:60
#define CS_FLAG_BOUNDARY
Definition: cs_cdo.h:50
Definition: cs_cdo_connect.h:55
cs_timer_counter_t tcb
Definition: cs_equation_common.h:90
void() cs_source_term_cellwise_t(const cs_xdef_t *source, const cs_cell_mesh_t *cm, cs_cell_builder_t *cb, void *input, double *values)
Compute the contribution for a cell related to a source term and add it the given array of values...
Definition: cs_source_term.h:71
double cs_real_t
Floating-point value.
Definition: cs_defs.h:297
Definition: cs_cdo_quantities.h:89
const cs_matrix_assembler_t * cs_equation_get_matrix_assembler(cs_space_scheme_t scheme)
Retrieve a pointer to the associated cs_matrix_assembler_t according to the space scheme...
Definition: cs_equation_common.c:1545
Definition: cs_cdo_local.h:94
void cs_equation_compute_neumann_sf(short int def_id, short int f, const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_cell_bc_t *cbc)
Compute the values of the Neumann BCs when DoFs are scalar-valued and attached to faces...
Definition: cs_equation_common.c:1280
bool time_pty_uniform
Definition: cs_equation_common.h:67
cs_flag_t bd_msh_flag
Definition: cs_equation_common.h:61
void cs_equation_free_common_structures(cs_flag_t scheme_flag)
Allocate a pointer to a buffer of size at least the 2*n_cells for managing temporary usage of memory ...
Definition: cs_equation_common.c:529
cs_space_scheme_t
Definition: cs_cdo.h:138
cs_flag_t st_msh_flag
Definition: cs_equation_common.h:62
const cs_adjacency_t * cs_equation_get_v2v_index(void)
Get the connectivity vertex->vertices for the local rank.
Definition: cs_equation_common.c:1581
void cs_equation_assemble_f(const cs_cell_sys_t *csys, const cs_range_set_t *rset, const cs_equation_param_t *eqp, cs_real_t *rhs, cs_matrix_assembler_values_t *mav)
Assemble a cellwise system related to cell faces into the global algebraic system.
Definition: cs_equation_common.c:1430
cs_equation_builder_t * cs_equation_init_builder(const cs_equation_param_t *eqp, const cs_mesh_t *mesh)
Allocate a new structure to handle the building of algebraic system related to an cs_equation_t struc...
Definition: cs_equation_common.c:596
void cs_equation_set_diffusion_property_cw(const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_flag_t c_flag, cs_cell_builder_t *cb)
Set the diffusion property inside a cell and its related quantities. Cellwise version using a cs_cell...
Definition: cs_equation_common.c:825
cs_real_t * cs_equation_get_tmpbuf(void)
Retrieve a pointer to a buffer of size at least the 2*n_cells The size of the temporary buffer can be...
Definition: cs_equation_common.c:1611
Definition: cs_cdo_local.h:108
Definition: cs_range_set.h:57
cs_timer_counter_t tce
Definition: cs_equation_common.h:102
cs_real_t * cs_equation_compute_dirichlet_sf(const cs_mesh_t *mesh, const cs_equation_param_t *eqp, const cs_cdo_bc_list_t *dir, cs_cell_builder_t *cb)
Compute the values of the Dirichlet BCs when DoFs are scalar-valued and attached to faces...
Definition: cs_equation_common.c:1062
Definition: cs_cdo_local.h:71
cs_timer_counter_t tcs
Definition: cs_equation_common.h:99
cs_cdo_bc_t * face_bc
Definition: cs_equation_common.h:86
cs_flag_t sys_flag
Definition: cs_equation_common.h:63
bool diff_pty_uniform
Definition: cs_equation_common.h:66
void cs_equation_write_monitoring(const char *eqname, const cs_equation_builder_t *eqb)
Print a message in the performance output file related to the monitoring of equation.
Definition: cs_equation_common.c:702
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:293
void cs_equation_assemble_v(const cs_cell_sys_t *csys, const cs_range_set_t *rset, const cs_equation_param_t *eqp, cs_real_t *rhs, cs_real_t *sources, cs_matrix_assembler_values_t *mav)
Assemble a cellwise system related to cell vertices into the global algebraic system.
Definition: cs_equation_common.c:1354
#define END_C_DECLS
Definition: cs_defs.h:454
unsigned short int cs_flag_t
Definition: cs_defs.h:299
struct _cs_matrix_assembler_t cs_matrix_assembler_t
Definition: cs_matrix_assembler.h:62
#define CS_N_MAX_SOURCE_TERMS
Definition: cs_source_term.h:51
static cs_flag_t cs_equation_get_cell_mesh_flag(cs_flag_t cell_flag, const cs_equation_builder_t *eqb)
Retrieve the flag to give for building a cs_cell_mesh_t structure.
Definition: cs_equation_common.h:124
void cs_equation_allocate_common_structures(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *time_step, cs_flag_t scheme_flag)
Allocate a pointer to a buffer of size at least the 2*n_cells for managing temporary usage of memory ...
Definition: cs_equation_common.c:339
void cs_equation_init_properties(const cs_equation_param_t *eqp, const cs_equation_builder_t *eqb, double *tpty_val, double *rpty_vals, cs_cell_builder_t *cb)
Initialize all properties for an algebraic system.
Definition: cs_equation_common.c:741
cs_real_t * cs_equation_compute_dirichlet_sv(const cs_mesh_t *mesh, const cs_equation_param_t *eqp, const cs_cdo_bc_list_t *dir, cs_cell_builder_t *cb)
Compute the values of the Dirichlet BCs when DoFs are scalar-valued and attached to vertices...
Definition: cs_equation_common.c:864
size_t cs_equation_get_tmpbuf_size(void)
Get the allocation size of the temporary buffer.
Definition: cs_equation_common.c:1625
void cs_equation_compute_neumann_sv(short int def_id, short int f, const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_cell_bc_t *cbc)
Compute the values of the Neumann BCs when DoFs are scalar-valued and attached to vertices...
Definition: cs_equation_common.c:1205
cs_mask_t * source_mask
Definition: cs_equation_common.h:71
struct _cs_matrix_structure_t cs_matrix_structure_t
Definition: cs_matrix.h:86
Definition: cs_timer.h:57