9.2
general documentation
cs_meg_prototypes.h
Go to the documentation of this file.
1#ifndef CS_MEG_PROTOTYPES_H
2#define CS_MEG_PROTOTYPES_H
3
4/*============================================================================
5 * Prototypes for MEG (Mathematical Expression Generator) functions
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
30/*----------------------------------------------------------------------------
31 * Local headers
32 *----------------------------------------------------------------------------*/
33
34#include "base/cs_base.h"
35#include "base/cs_field.h"
36#include "base/cs_volume_zone.h"
38#include "base/cs_ibm.h"
39
40/*----------------------------------------------------------------------------*/
41
43
44typedef void
46 const cs_real_3_t xyz,
47 const cs_real_t t,
48 cs_real_t *retval);
49
50typedef void
52
53/*============================================================================
54 * MEG function prototypes
55 *============================================================================*/
56
57/*----------------------------------------------------------------------------*/
63/*----------------------------------------------------------------------------*/
64
65void
67(
68 const char *zone_name,
69 const cs_lnum_t n_elts,
70 const cs_lnum_t *elt_ids,
71 const cs_real_t xyz[][3],
72 const char *field_name,
73 const char *condition,
74 cs_real_t *retvals
75);
76
77/*----------------------------------------------------------------------------*/
83/*----------------------------------------------------------------------------*/
84
85void
87(
88 const char *zone_name,
89 const cs_lnum_t n_elts,
90 const cs_lnum_t *elt_ids,
91 const cs_real_t xyz[][3],
92 const char *fields_names,
93 cs_real_t *fvals[]
94);
95
96/*----------------------------------------------------------------------------*/
103/*----------------------------------------------------------------------------*/
104
105void
107(
108 const char *zone_name,
109 const cs_lnum_t n_elts,
110 const cs_lnum_t *elt_ids,
111 const cs_real_t xyz[][3],
112 const char *field_name,
113 cs_real_t *retvals
114);
115
116/*----------------------------------------------------------------------------*/
123/*----------------------------------------------------------------------------*/
124
125void
127(
128 const char *zone_name,
129 const cs_lnum_t n_elts,
130 const cs_lnum_t *elt_ids,
131 const cs_real_t xyz[][3],
132 const char *name,
133 const char *source_type,
134 cs_real_t *retvals
135);
136
137/*----------------------------------------------------------------------------*/
142/*----------------------------------------------------------------------------*/
143
144void
146(
147 const char *object_type,
148 const char *name,
149 const cs_real_t fluid_f[],
150 cs_real_t val[]
151);
152
153/*----------------------------------------------------------------------------*/
157/*----------------------------------------------------------------------------*/
158
159void
161
162/*----------------------------------------------------------------------------*/
166/*----------------------------------------------------------------------------*/
167
168void
170(
171 const char *name,
172 int n_coords,
173 cs_real_t coords[][3]
174);
175
176/*----------------------------------------------------------------------------*/
181/*----------------------------------------------------------------------------*/
182
183void
185(
186 const char *name,
187 const cs_lnum_t n_elts,
188 const cs_lnum_t *elt_ids,
189 const cs_real_t xyz[][3],
190 cs_real_t *retvals
191);
192
193/*----------------------------------------------------------------------------*/
200/*----------------------------------------------------------------------------*/
201
204(
205 const char *object_name
206);
207
208/*----------------------------------------------------------------------------*/
216/*----------------------------------------------------------------------------*/
217
220(
221 const char *object_name,
222 const char *gui_var_name
223);
224
225/*----------------------------------------------------------------------------*/
226
227/*----------------------------------------------------------------------------*/
235/*----------------------------------------------------------------------------*/
236
239(
240 const char *object_name,
241 const char *gui_var_name
242);
243
244/*----------------------------------------------------------------------------*/
245
247
248#endif /* CS_MEG_PROTOTYPES_H */
#define BEGIN_C_DECLS
Definition: cs_defs.h:528
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:349
#define END_C_DECLS
Definition: cs_defs.h:529
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
@ t
Definition: cs_field_pointer.h:91
int() cs_cutcell_func_t(const cs_lnum_t c_id, const cs_real_3_t xyz, const cs_real_t t, const int num_object)
Definition: cs_ibm.h:148
void() cs_ibm_fsi_func_t(cs_real_t *retval)
Definition: cs_meg_prototypes.h:51
void cs_meg_source_terms(const char *zone_name, const cs_lnum_t n_elts, const cs_lnum_t *elt_ids, const cs_real_t xyz[][3], const char *name, const char *source_type, cs_real_t *retvals)
This function is used to compute source terms over a volume zone. The mathematical expression is defi...
Definition: cs_meg_source_terms.cxx:70
void() cs_ibm_volume_func_t(const cs_lnum_t c_id, const cs_real_3_t xyz, const cs_real_t t, cs_real_t *retval)
Definition: cs_meg_prototypes.h:45
void cs_meg_initialization(const char *zone_name, const cs_lnum_t n_elts, const cs_lnum_t *elt_ids, const cs_real_t xyz[][3], const char *field_name, cs_real_t *retvals)
This function is used for the initalization of fields over a given volume zone. The mathematical expr...
Definition: cs_meg_initialization.cxx:68
cs_ibm_fsi_func_t * cs_meg_ibm_fsi_func_by_name(const char *object_name, const char *gui_var_name)
This function is used to get the cs_ibm_fsi_func_t pointer for a given object.
Definition: cs_meg_immersed_boundaries_fsi.cxx:61
cs_cutcell_func_t * cs_meg_ibm_func_by_name(const char *object_name)
This function is used to get the cs_cutcell_func_t pointer for a given object.
Definition: cs_meg_immersed_boundaries.cxx:59
void cs_meg_post_activate(void)
This function is used to activate postprocessing writers.
Definition: cs_meg_post_output.cxx:60
void cs_meg_volume_function(const char *zone_name, const cs_lnum_t n_elts, const cs_lnum_t *elt_ids, const cs_real_t xyz[][3], const char *fields_names, cs_real_t *fvals[])
This function is used to compute user defined values for fields over a given volume zone....
Definition: cs_meg_volume_function.cxx:66
void cs_meg_post_profiles(const char *name, int n_coords, cs_real_t coords[][3])
This function is used to define profile coordinates.
Definition: cs_meg_post_profile.cxx:64
void cs_meg_post_calculator(const char *name, const cs_lnum_t n_elts, const cs_lnum_t *elt_ids, const cs_real_t xyz[][3], cs_real_t *retvals)
This function is used to compute user defined calculator formulae. The mathematical expression is def...
Definition: cs_meg_post_calculator.cxx:66
cs_ibm_volume_func_t * cs_meg_ibm_volume_func_by_name(const char *object_name, const char *gui_var_name)
This function is used to get the cs_ibm_volume_func_t pointer for a given object.
Definition: cs_meg_immersed_boundaries_volume.cxx:61
void cs_meg_fsi_struct(const char *object_type, const char *name, const cs_real_t fluid_f[], cs_real_t val[])
This function is used to query FSI internal coupling structure values for a given boundary and struct...
Definition: cs_meg_fsi_struct.cxx:66
void cs_meg_boundary_function(const char *zone_name, const cs_lnum_t n_elts, const cs_lnum_t *elt_ids, const cs_real_t xyz[][3], const char *field_name, const char *condition, cs_real_t *retvals)
This function is used to compute user defined values for fields over a given boundary zone....
Definition: cs_meg_boundary_function.cxx:68