1
#ifndef __COMMUNICATION_H__
2
#define __COMMUNICATION_H__
5
This file is part of Code_Saturne, a general-purpose CFD tool.
7
Copyright (C) 1998-2011 EDF S.A.
9
This program is free software; you can redistribute it and/or modify it under
10
the terms of the GNU General Public License as published by the Free Software
11
Foundation; either version 2 of the License, or (at your option) any later
14
This program is distributed in the hope that it will be useful, but WITHOUT
15
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
19
You should have received a copy of the GNU General Public License along with
20
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
21
Street, Fifth Floor, Boston, MA 02110-1301, USA.
24
/*----------------------------------------------------------------------------*/
30
/*=============================================================================
31
* Public function prototypes
32
*============================================================================*/
34
/*----------------------------------------------------------------------------
35
* Receive geometric data and sets variables nb_for, nb_dyn and lref
36
*----------------------------------------------------------------------------*/
39
recv_geom(void *component);
41
/*----------------------------------------------------------------------------
42
* Send geometric data to Code_Aster
43
* To be removed in initialization stage
44
*----------------------------------------------------------------------------*/
47
send_geom(void* component);
49
/*----------------------------------------------------------------------------
50
* Sends time step computed by middle component to codes
51
*----------------------------------------------------------------------------*/
54
send_pdt(void *component,
58
/*----------------------------------------------------------------------------
59
* Receives time steps from Code_Aster and Code_Saturne
60
*----------------------------------------------------------------------------*/
63
recv_pdt(void *component,
68
/*----------------------------------------------------------------------------
69
* Sends the following parameters:
76
*----------------------------------------------------------------------------*/
79
send_param(void *component);
81
/*----------------------------------------------------------------------------
82
* Receives displacements and velocities from Code_Aster at current time step
83
*----------------------------------------------------------------------------*/
86
recv_dyn(void *component);
88
/*----------------------------------------------------------------------------
89
* Send predicted displacements to Code_Saturne
90
*----------------------------------------------------------------------------*/
93
send_dyn(void *component);
95
/*----------------------------------------------------------------------------
96
* Receive efforts from Code_Saturne
97
*----------------------------------------------------------------------------*/
100
recv_for(void *component);
102
/*----------------------------------------------------------------------------
103
* Send predicted efforts to Code_Aster
104
*----------------------------------------------------------------------------*/
107
send_for(void *component);
109
/*----------------------------------------------------------------------------
110
* Send convergence indicator to Code_Saturne
111
*----------------------------------------------------------------------------*/
114
send_icv1(void *component,
117
/*----------------------------------------------------------------------------
118
* Receive convergence indicator from Code_Saturne
119
*----------------------------------------------------------------------------*/
122
recv_icv(void *component,
125
/*----------------------------------------------------------------------------
126
* Send convergence indicator to Code_Aster
127
*----------------------------------------------------------------------------*/
130
send_icv2(void *component,
133
/*----------------------------------------------------------------------------
134
* Initialize communication with Calcium
135
*----------------------------------------------------------------------------*/
138
inicom(void *component);
140
/*----------------------------------------------------------------------------
141
* End communication with Calcium and stop calculation
142
*----------------------------------------------------------------------------*/
145
calfin(void *component);
147
/*----------------------------------------------------------------------------*/
153
#endif /* __COMMUNICATION_H__ */