9.2
general documentation
cs_cdoeb_priv.h
Go to the documentation of this file.
1#ifndef CS_CDOEB_PRIV_H
2#define CS_CDOEB_PRIV_H
3
4/*============================================================================
5 * Definition of cs_cdovb_scaleq_t and cs_cdovb_vecteq structures
6 *============================================================================*/
7
8/*
9 This file is part of code_saturne, a general-purpose CFD tool.
10
11 Copyright (C) 1998-2026 EDF S.A.
12
13 This program is free software; you can redistribute it and/or modify it under
14 the terms of the GNU General Public License as published by the Free Software
15 Foundation; either version 2 of the License, or (at your option) any later
16 version.
17
18 This program is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
21 details.
22
23 You should have received a copy of the GNU General Public License along with
24 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
25 Street, Fifth Floor, Boston, MA 02110-1301, USA.
26*/
27
28/*----------------------------------------------------------------------------
29 * Local headers
30 *----------------------------------------------------------------------------*/
31
32#include "base/cs_defs.h"
33#include "cdo/cs_equation_bc.h"
34#include "cdo/cs_hodge.h"
35
43/*============================================================================
44 * Macro definitions
45 *============================================================================*/
46
47/*============================================================================
48 * Type definitions
49 *============================================================================*/
50
51/*=============================================================================
52 * Structure definitions
53 *============================================================================*/
54
55/* Algebraic system for CDO edge-based discretization */
56
58
59 /* Ids related to the variable field and to the boundary flux field */
60
63
64 /* System size */
66
67 /* Array storing the computed values */
68
71
72 /* Array storing the value arising from the contribution of all source
73 terms */
74
76
77 /* Boundary conditions */
78
81
82 /* Pointer of function to build the diffusion term */
83
84 cs_hodge_t **curlcurl_hodge; /* one structure by thread */
86
87 /* Mass matrix settings (useful for the unsteady and reaction terms) */
88
90 cs_hodge_t **mass_hodge; /* one structure by thread */
92
93};
94
95/*============================================================================
96 * Public function prototypes
97 *============================================================================*/
98
99#endif /* CS_CDOEB_PRIV_H */
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
unsigned short int cs_flag_t
Definition: cs_defs.h:334
void() cs_cdo_enforce_bc_t(const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_face_mesh_t *fm, cs_hodge_t *hodge, cs_cell_builder_t *cb, cs_cell_sys_t *csys)
Enforcement of a boundary condition (Dirichlet, Robin, sliding...)
Definition: cs_equation_bc.h:86
bool() cs_hodge_compute_t(const cs_cell_mesh_t *cm, cs_hodge_t *hodge, cs_cell_builder_t *cb)
Build a discrete Hodge operator or a related operator (such as the stiffmess matrix) for a given cell...
Definition: cs_hodge.h:214
Definition: cs_cdoeb_priv.h:57
cs_lnum_t n_dofs
Definition: cs_cdoeb_priv.h:65
cs_hodge_compute_t * get_curlcurl
Definition: cs_cdoeb_priv.h:85
cs_hodge_param_t mass_hodgep
Definition: cs_cdoeb_priv.h:89
cs_hodge_t ** curlcurl_hodge
Definition: cs_cdoeb_priv.h:84
cs_real_t * edge_values_pre
Definition: cs_cdoeb_priv.h:70
cs_hodge_compute_t * get_mass
Definition: cs_cdoeb_priv.h:91
cs_cdo_enforce_bc_t * enforce_essential_bc
Definition: cs_cdoeb_priv.h:80
cs_flag_t * edge_bc_flag
Definition: cs_cdoeb_priv.h:79
cs_real_t * source_terms
Definition: cs_cdoeb_priv.h:75
int bflux_field_id
Definition: cs_cdoeb_priv.h:62
int var_field_id
Definition: cs_cdoeb_priv.h:61
cs_hodge_t ** mass_hodge
Definition: cs_cdoeb_priv.h:90
cs_real_t * edge_values
Definition: cs_cdoeb_priv.h:69
Structure storing all metadata/parameters related to the usage of a discrete Hodge operator.
Definition: cs_hodge.h:147
Structure associated to a discrete Hodge operator *.
Definition: cs_hodge.h:179