My Project
programmer's documentation
cs_cdovb_priv.h
Go to the documentation of this file.
1 #ifndef __CS_CDOVB_PRIV_H__
2 #define __CS_CDOVB_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-2019 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 "cs_defs.h"
33 #include "cs_hodge.h"
34 #include "cs_cdo_advection.h"
35 #include "cs_equation_assemble.h"
36 #include "cs_equation_bc.h"
37 
38 /*----------------------------------------------------------------------------*/
39 
41 
49 /*============================================================================
50  * Macro definitions
51  *============================================================================*/
52 
53 /*============================================================================
54  * Type definitions
55  *============================================================================*/
56 
57 /*=============================================================================
58  * Structure definitions
59  *============================================================================*/
60 
61 /* Algebraic system for CDO vertex-based discretization */
62 
63 struct _cs_cdovb_t {
64 
65  /* Ids related to the variable field and to the boundary flux field */
68 
69  /* System size */
71 
72  /* Array storing the value arising from the contribution of all source
73  terms */
75 
76  /* Array for extra-operations */
77  cs_real_t *cell_values; /* NULL if not requested */
78 
79  /* Assembly process */
81 
82  /* Boundary conditions */
87 
88  /* Pointer of function to build the diffusion term */
90 
91  /* Pointer of function to build the advection term */
94 
95  /* If one needs to build a local hodge op. for time and reaction */
98 
99 };
100 
101 /*============================================================================
102  * Public function prototypes
103  *============================================================================*/
104 
105 /*----------------------------------------------------------------------------*/
106 
108 
109 #endif /* __CS_CDOVB_PRIV_H__ */
cs_equation_assembly_t
void() cs_equation_assembly_t(const cs_cell_sys_t *csys, const cs_range_set_t *rset, cs_equation_assemble_t *eqa, cs_matrix_assembler_values_t *mav)
Assemble a cellwise system into the global algebraic system Block or no block versions are handled.
Definition: cs_equation_assemble.h:71
cs_defs.h
cs_param_hodge_t
Definition: cs_param_cdo.h:129
_cs_cdovb_t::enforce_dirichlet
cs_cdo_enforce_bc_t * enforce_dirichlet
Definition: cs_cdovb_priv.h:84
_cs_cdovb_t::cell_values
cs_real_t * cell_values
Definition: cs_cdovb_priv.h:77
_cs_cdovb_t
Definition: cs_cdovb_priv.h:63
END_C_DECLS
#define END_C_DECLS
Definition: cs_defs.h:468
_cs_cdovb_t::bflux_field_id
int bflux_field_id
Definition: cs_cdovb_priv.h:67
cs_equation_bc.h
cs_real_t
double cs_real_t
Floating-point value.
Definition: cs_defs.h:302
_cs_cdovb_t::hdg_mass
cs_param_hodge_t hdg_mass
Definition: cs_cdovb_priv.h:96
_cs_cdovb_t::n_dofs
cs_lnum_t n_dofs
Definition: cs_cdovb_priv.h:70
BEGIN_C_DECLS
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
cs_cdo_advection.h
cs_cdo_enforce_bc_t
void() cs_cdo_enforce_bc_t(const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_face_mesh_t *fm, cs_cell_builder_t *cb, cs_cell_sys_t *csys)
Enforcement of a boundary condition (Dirichlet, Robin, sliding...)
Definition: cs_equation_bc.h:86
cs_cdovb_advection_t
void() cs_cdovb_advection_t(const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_real_t t_eval, cs_face_mesh_t *fm, cs_cell_builder_t *cb)
Compute the convection operator attached to a cell with a CDO vertex-based scheme....
Definition: cs_cdo_advection.h:101
_cs_cdovb_t::assemble
cs_equation_assembly_t * assemble
Definition: cs_cdovb_priv.h:80
_cs_cdovb_t::get_mass_matrix
cs_hodge_t * get_mass_matrix
Definition: cs_cdovb_priv.h:97
_cs_cdovb_t::vtx_bc_flag
cs_flag_t * vtx_bc_flag
Definition: cs_cdovb_priv.h:83
cs_hodge.h
cs_cdovb_advection_bc_t
void() cs_cdovb_advection_bc_t(const cs_cell_mesh_t *cm, const cs_equation_param_t *eqp, cs_real_t t_eval, cs_face_mesh_t *fm, cs_cell_builder_t *cb, cs_cell_sys_t *csys)
Compute the BC contribution for the advection operator in CDO vertex-based (or vertex+cell-based) sch...
Definition: cs_cdo_advection.h:122
_cs_cdovb_t::source_terms
cs_real_t * source_terms
Definition: cs_cdovb_priv.h:74
cs_hodge_t
void() cs_hodge_t(const cs_param_hodge_t h_info, const cs_cell_mesh_t *cm, cs_cell_builder_t *cb)
Build a local operator for a given cell (stored in cb->hdg for a discrete Hodge operator or in cb->lo...
Definition: cs_hodge.h:63
_cs_cdovb_t::get_advection_matrix
cs_cdovb_advection_t * get_advection_matrix
Definition: cs_cdovb_priv.h:92
_cs_cdovb_t::enforce_robin_bc
cs_cdo_enforce_bc_t * enforce_robin_bc
Definition: cs_cdovb_priv.h:85
cs_lnum_t
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
cs_equation_assemble.h
_cs_cdovb_t::get_stiffness_matrix
cs_hodge_t * get_stiffness_matrix
Definition: cs_cdovb_priv.h:89
cs_flag_t
unsigned short int cs_flag_t
Definition: cs_defs.h:304
_cs_cdovb_t::var_field_id
int var_field_id
Definition: cs_cdovb_priv.h:66
_cs_cdovb_t::add_advection_bc
cs_cdovb_advection_bc_t * add_advection_bc
Definition: cs_cdovb_priv.h:93
_cs_cdovb_t::enforce_sliding
cs_cdo_enforce_bc_t * enforce_sliding
Definition: cs_cdovb_priv.h:86