7.3
general documentation
cs_ast_coupling.h
Go to the documentation of this file.
1 #ifndef __CS_AST_COUPLING_H__
2 #define __CS_AST_COUPLING_H__
3 
4 /*============================================================================
5  * code_aster coupling
6  *============================================================================*/
7 
8 /*
9  This file is part of code_saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2022 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  * Standard C library headers
32  *----------------------------------------------------------------------------*/
33 
34 /*----------------------------------------------------------------------------
35  * Local headers
36  *----------------------------------------------------------------------------*/
37 
38 #include "cs_base.h"
39 
40 /*----------------------------------------------------------------------------*/
41 
43 
44 /*=============================================================================
45  * Local Macro Definitions
46  *============================================================================*/
47 
48 /*============================================================================
49  * Structure definition
50  *============================================================================*/
51 
52 typedef struct _cs_ast_coupling_t cs_ast_coupling_t;
53 
54 /*============================================================================
55  * Global variable definitions
56  *============================================================================*/
57 
58 /*============================================================================
59  * Public function prototypes
60  *============================================================================*/
61 
62 /*----------------------------------------------------------------------------*/
71 /*----------------------------------------------------------------------------*/
72 
73 void
76 
77 /*----------------------------------------------------------------------------*/
81 /*----------------------------------------------------------------------------*/
82 
83 void
85 
86 /*----------------------------------------------------------------------------*/
95 /*----------------------------------------------------------------------------*/
96 
97 void
99  const cs_lnum_t *face_ids,
100  cs_real_t almax);
101 
102 /*----------------------------------------------------------------------------*/
108 /*----------------------------------------------------------------------------*/
109 
110 void
112 
113 /*----------------------------------------------------------------------------*/
120 /*----------------------------------------------------------------------------*/
121 
122 void
123 cs_ast_coupling_exchange_fields(const cs_real_t fluid_forces[]);
124 
125 /*----------------------------------------------------------------------------*/
132 /*----------------------------------------------------------------------------*/
133 
134 void
136 
137 /*----------------------------------------------------------------------------*/
144 /*----------------------------------------------------------------------------*/
145 
146 int
148 
149 /*----------------------------------------------------------------------------*/
155 /*----------------------------------------------------------------------------*/
156 
157 void
158 cs_ast_coupling_send_cvg(int icved);
159 
160 /*----------------------------------------------------------------------------*/
166 /*----------------------------------------------------------------------------*/
167 
168 int
170 
171 /*----------------------------------------------------------------------------*/
177 /*----------------------------------------------------------------------------*/
178 
179 void
180 cs_ast_coupling_set_verbosity(int verbosity);
181 
182 /*----------------------------------------------------------------------------*/
188 /*----------------------------------------------------------------------------*/
189 
190 int
192 
193 /*----------------------------------------------------------------------------*/
199 /*----------------------------------------------------------------------------*/
200 
201 void
202 cs_ast_coupling_set_visualization(int visualization);
203 
204 /*----------------------------------------------------------------------------*/
205 
207 
208 #endif /* __CS_AST_COUPLING_H__ */
void cs_ast_coupling_geometry(cs_lnum_t n_faces, const cs_lnum_t *face_ids, cs_real_t almax)
Extract and exchange mesh information for surfaces coupled with code_aster.
Definition: cs_ast_coupling.c:766
void cs_ast_coupling_send_cvg(int icved)
Send global convergence value of FSI calculations.
Definition: cs_ast_coupling.c:1243
int cs_ast_coupling_get_visualization(void)
Get visualization level for code_aster coupling.
Definition: cs_ast_coupling.c:1293
#define BEGIN_C_DECLS
Definition: cs_defs.h:512
double precision, save epalim
relative precision of implicitation of the structure displacement
Definition: albase.f90:51
int cs_ast_coupling_get_ext_cvg(void)
Receive convergence value of code_saturne/code_aster coupling.
Definition: cs_ast_coupling.c:1220
void cs_ast_coupling_initialize(int nalimx, cs_real_t epalim)
Initial exchange with code_aster.
Definition: cs_ast_coupling.c:577
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
void cs_ast_coupling_compute_displacement(cs_real_t disp[][3])
Compute predicted or exact displacement of the fluid/structure interface.
Definition: cs_ast_coupling.c:1132
int cs_ast_coupling_get_verbosity(void)
Get verbosity level for code_aster coupling.
Definition: cs_ast_coupling.c:1259
void cs_ast_coupling_exchange_time_step(cs_real_t c_dt[])
Exchange time-step information with code_aster.
Definition: cs_ast_coupling.c:911
void cs_ast_coupling_exchange_fields(const cs_real_t fluid_forces[])
Send stresses acting on the fluid/structure interface and receive displacements.
Definition: cs_ast_coupling.c:1009
void cs_ast_coupling_set_verbosity(int verbosity)
Set verbosity level for code_aster coupling.
Definition: cs_ast_coupling.c:1273
void cs_ast_coupling_set_visualization(int visualization)
Set visualization level for code_aster coupling.
Definition: cs_ast_coupling.c:1306
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:316
integer, save nalimx
maximum number of implicitation iterations of the structure displacement
Definition: albase.f90:49
#define END_C_DECLS
Definition: cs_defs.h:513
void cs_ast_coupling_finalize(void)
Finalize exchange with code_aster.
Definition: cs_ast_coupling.c:720
real(c_double), pointer, save almax
is a characteristic macroscopic length of the domain, used for the initialization of the turbulence a...
Definition: cstphy.f90:597
struct _cs_ast_coupling_t cs_ast_coupling_t
Definition: cs_ast_coupling.h:52