8.0
general documentation
Loading...
Searching...
No Matches
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-2023 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
52typedef 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/*----------------------------------------------------------------------------*/
68/*----------------------------------------------------------------------------*/
69
70int
72
73/*----------------------------------------------------------------------------*/
81/*----------------------------------------------------------------------------*/
82
83void
85
86/*----------------------------------------------------------------------------*/
95/*----------------------------------------------------------------------------*/
96
97void
99 cs_real_t epalim);
100
101/*----------------------------------------------------------------------------*/
105/*----------------------------------------------------------------------------*/
106
107void
109
110/*----------------------------------------------------------------------------*/
119/*----------------------------------------------------------------------------*/
120
121void
123 const cs_lnum_t *face_ids,
124 cs_real_t almax);
125
126/*----------------------------------------------------------------------------*/
132/*----------------------------------------------------------------------------*/
133
134void
136
137/*----------------------------------------------------------------------------*/
144/*----------------------------------------------------------------------------*/
145
148
149/*----------------------------------------------------------------------------*/
154/*----------------------------------------------------------------------------*/
155
156void
158
159/*----------------------------------------------------------------------------*/
166/*----------------------------------------------------------------------------*/
167
168void
170
171/*----------------------------------------------------------------------------*/
178/*----------------------------------------------------------------------------*/
179
180int
182
183/*----------------------------------------------------------------------------*/
189/*----------------------------------------------------------------------------*/
190
191void
192cs_ast_coupling_send_cvg(int icved);
193
194/*----------------------------------------------------------------------------*/
200/*----------------------------------------------------------------------------*/
201
202int
204
205/*----------------------------------------------------------------------------*/
211/*----------------------------------------------------------------------------*/
212
213void
214cs_ast_coupling_set_verbosity(int verbosity);
215
216/*----------------------------------------------------------------------------*/
222/*----------------------------------------------------------------------------*/
223
224int
226
227/*----------------------------------------------------------------------------*/
233/*----------------------------------------------------------------------------*/
234
235void
236cs_ast_coupling_set_visualization(int visualization);
237
238/*----------------------------------------------------------------------------*/
239
241
242#endif /* __CS_AST_COUPLING_H__ */
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:1210
int cs_ast_coupling_n_couplings(void)
Query number of couplings with code_aster.
Definition cs_ast_coupling.c:574
void cs_ast_coupling_exchange_time_step(cs_real_t c_dt[])
Exchange time-step information with code_aster.
Definition cs_ast_coupling.c:972
void cs_ast_coupling_send_cvg(int icved)
Send global convergence value of FSI calculations.
Definition cs_ast_coupling.c:1321
void cs_ast_coupling_add(void)
Define coupling with code_aster.
Definition cs_ast_coupling.c:595
void cs_ast_coupling_exchange_fields(void)
Send stresses acting on the fluid/structure interface and receive displacements.
Definition cs_ast_coupling.c:1090
void cs_ast_coupling_set_visualization(int visualization)
Set visualization level for code_aster coupling.
Definition cs_ast_coupling.c:1384
void cs_ast_coupling_finalize(void)
Finalize exchange with code_aster.
Definition cs_ast_coupling.c:781
int cs_ast_coupling_get_ext_cvg(void)
Receive convergence value of code_saturne/code_aster coupling.
Definition cs_ast_coupling.c:1298
cs_real_3_t * cs_ast_coupling_get_fluid_forces_pointer(void)
Return pointer to array of fluid forces at faces coupled with code_aster.
Definition cs_ast_coupling.c:1070
struct _cs_ast_coupling_t cs_ast_coupling_t
Definition cs_ast_coupling.h:52
int cs_ast_coupling_get_verbosity(void)
Get verbosity level for code_aster coupling.
Definition cs_ast_coupling.c:1337
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:827
int cs_ast_coupling_get_visualization(void)
Get visualization level for code_aster coupling.
Definition cs_ast_coupling.c:1371
void cs_ast_coupling_initialize(int nalimx, cs_real_t epalim)
Initial exchange with code_aster.
Definition cs_ast_coupling.c:719
void cs_ast_coupling_set_verbosity(int verbosity)
Set verbosity level for code_aster coupling.
Definition cs_ast_coupling.c:1351
#define BEGIN_C_DECLS
Definition cs_defs.h:509
double cs_real_t
Floating-point value.
Definition cs_defs.h:319
#define END_C_DECLS
Definition cs_defs.h:510
int cs_lnum_t
local mesh entity id
Definition cs_defs.h:313
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition cs_defs.h:332