8.1
general documentation
cs_mobile_structures.h
Go to the documentation of this file.
1 #ifndef __CS_MOBILE_STRUCTURES_H__
2 #define __CS_MOBILE_STRUCTURES_H__
3 
4 /*============================================================================
5  * Mobile structures management.
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  * Local headers
32  *----------------------------------------------------------------------------*/
33 
34 #include "cs_defs.h"
35 
36 #include "cs_restart.h"
37 #include "cs_time_control.h"
38 
39 /*----------------------------------------------------------------------------*/
40 
42 
43 /*=============================================================================
44  * Macro definitions
45  *============================================================================*/
46 
47 /*============================================================================
48  * Type definitions
49  *============================================================================*/
50 
51 /*============================================================================
52  * Global variables
53  *============================================================================*/
54 
56 extern int cs_glob_mobile_structures_i_max; /* nalimx */
57 
59 extern double cs_glob_mobile_structures_i_eps; /* epalim */
60 
61 /*=============================================================================
62  * Public function prototypes
63  *============================================================================*/
64 
65 /*----------------------------------------------------------------------------*/
69 /*----------------------------------------------------------------------------*/
70 
71 void
73 
74 /*----------------------------------------------------------------------------*/
78 /*----------------------------------------------------------------------------*/
79 
80 void
82 
83 /*----------------------------------------------------------------------------*/
87 /*----------------------------------------------------------------------------*/
88 
89 void
91 
92 /*----------------------------------------------------------------------------*/
96 /*----------------------------------------------------------------------------*/
97 
98 void
100 
101 /*----------------------------------------------------------------------------*/
107 /*----------------------------------------------------------------------------*/
108 
109 int
111 
112 /*----------------------------------------------------------------------------*/
121 /*----------------------------------------------------------------------------*/
122 
123 void
124 cs_mobile_structures_add_n_structures(int n_structures);
125 
126 /*----------------------------------------------------------------------------*/
134 /*----------------------------------------------------------------------------*/
135 
136 void
138  cs_real_t beta,
139  cs_real_t gamma);
140 
141 /*----------------------------------------------------------------------------*/
150 /*----------------------------------------------------------------------------*/
151 
152 void
154  int italim,
155  int ineefl,
156  int impale[]);
157 
158 /*----------------------------------------------------------------------------*/
166 /*----------------------------------------------------------------------------*/
167 
168 void
170  int italim,
171  int *itrfin);
172 
173 /*----------------------------------------------------------------------------*/
179 /*----------------------------------------------------------------------------*/
180 
181 void
183 
184 /*----------------------------------------------------------------------------*/
190 /*----------------------------------------------------------------------------*/
191 
192 void
194 
195 /*----------------------------------------------------------------------------*/
196 
198 
199 #endif /* __CS_MOBILE_STRUCTURES_H__ */
#define BEGIN_C_DECLS
Definition: cs_defs.h:514
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
#define END_C_DECLS
Definition: cs_defs.h:515
@ gamma
Definition: cs_field_pointer.h:221
void cs_mobile_structures_prediction(int itrale, int italim, int ineefl, int impale[])
Predict displacement of mobile structures with ALE.
Definition: cs_mobile_structures.c:1116
int cs_glob_mobile_structures_i_max
void cs_mobile_structures_initialize(void)
Initialize mobile structures with ALE for internal coupling.
Definition: cs_mobile_structures.c:784
void cs_mobile_structures_log_setup(void)
Log structures and coupling information.
Definition: cs_mobile_structures.c:921
void cs_mobile_structures_displacement(int itrale, int italim, int *itrfin)
Displacement of mobile structures with ALE for internal coupling.
Definition: cs_mobile_structures.c:1327
void cs_mobile_structures_add_n_structures(int n_structures)
Add internal mobile structures.
Definition: cs_mobile_structures.c:1046
void cs_mobile_structures_finalize(void)
Finalize mobile structures with ALE for internal coupling.
Definition: cs_mobile_structures.c:905
void cs_mobile_structures_restart_write(cs_restart_t *r)
Write mobile structures data to checkpoint.
Definition: cs_mobile_structures.c:1780
double cs_glob_mobile_structures_i_eps
void cs_mobile_structures_restart_read(cs_restart_t *r)
Read mobile structures data to checkpoint.
Definition: cs_mobile_structures.c:1650
void cs_mobile_structures_set_newmark_coefficients(cs_real_t alpha, cs_real_t beta, cs_real_t gamma)
Set Newmark coefficients for internal mobile structures.
Definition: cs_mobile_structures.c:1071
int cs_mobile_structures_get_n_structures(void)
Query number of internal mobile structures defined.
Definition: cs_mobile_structures.c:1024
void cs_mobile_structures_setup(void)
Initialize mobile structures with ALE for internal coupling.
Definition: cs_mobile_structures.c:731
struct _cs_restart_t cs_restart_t
Definition: cs_restart.h:95
double precision, dimension(ncharm), save alpha
Definition: cpincl.f90:96
double precision, dimension(ncharm), save beta
Definition: cpincl.f90:96