~ubuntu-branches/ubuntu/precise/code-saturne/precise

« back to all changes in this revision

Viewing changes to salome/libmilieu/communication.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2011-11-01 17:43:32 UTC
  • mto: (6.1.7 sid)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20111101174332-tl4vk45no0x3emc3
Tags: upstream-2.1.0
ImportĀ upstreamĀ versionĀ 2.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __COMMUNICATION_H__
 
2
#define __COMMUNICATION_H__
 
3
 
 
4
/*
 
5
  This file is part of Code_Saturne, a general-purpose CFD tool.
 
6
 
 
7
  Copyright (C) 1998-2011 EDF S.A.
 
8
 
 
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
 
12
  version.
 
13
 
 
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
 
17
  details.
 
18
 
 
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.
 
22
*/
 
23
 
 
24
/*----------------------------------------------------------------------------*/
 
25
 
 
26
#ifdef __cplusplus
 
27
extern "C" {
 
28
#endif
 
29
 
 
30
/*=============================================================================
 
31
 * Public function prototypes
 
32
 *============================================================================*/
 
33
 
 
34
/*----------------------------------------------------------------------------
 
35
 * Receive geometric data and sets variables nb_for, nb_dyn and lref
 
36
 *----------------------------------------------------------------------------*/
 
37
 
 
38
int
 
39
recv_geom(void *component);
 
40
 
 
41
/*----------------------------------------------------------------------------
 
42
 * Send geometric data to Code_Aster
 
43
 * To be removed in initialization stage
 
44
 *----------------------------------------------------------------------------*/
 
45
 
 
46
int
 
47
send_geom(void* component);
 
48
 
 
49
/*----------------------------------------------------------------------------
 
50
 * Sends time step computed by middle component to codes
 
51
 *----------------------------------------------------------------------------*/
 
52
 
 
53
int
 
54
send_pdt(void *component,
 
55
         double dt,
 
56
         int numpdt);
 
57
 
 
58
/*----------------------------------------------------------------------------
 
59
 * Receives time steps from Code_Aster and Code_Saturne
 
60
 *----------------------------------------------------------------------------*/
 
61
 
 
62
int
 
63
recv_pdt(void *component,
 
64
         double *dt_ast,
 
65
         double *dt_sat,
 
66
         int numpdt);
 
67
 
 
68
/*----------------------------------------------------------------------------
 
69
 * Sends the following parameters:
 
70
 *                                 nbpdtm
 
71
 *                                 nbssit
 
72
 *                                 epsilo
 
73
 *                                 isyncp
 
74
 *                                 ntchr
 
75
 *                                 ttpabs
 
76
 *----------------------------------------------------------------------------*/
 
77
 
 
78
int
 
79
send_param(void *component);
 
80
 
 
81
/*----------------------------------------------------------------------------
 
82
 * Receives displacements and velocities from Code_Aster at current time step
 
83
 *----------------------------------------------------------------------------*/
 
84
 
 
85
int
 
86
recv_dyn(void *component);
 
87
 
 
88
/*----------------------------------------------------------------------------
 
89
 * Send predicted displacements to Code_Saturne
 
90
 *----------------------------------------------------------------------------*/
 
91
 
 
92
int
 
93
send_dyn(void *component);
 
94
 
 
95
/*----------------------------------------------------------------------------
 
96
 * Receive efforts from Code_Saturne
 
97
 *----------------------------------------------------------------------------*/
 
98
 
 
99
int
 
100
recv_for(void *component);
 
101
 
 
102
/*----------------------------------------------------------------------------
 
103
 * Send predicted efforts to Code_Aster
 
104
 *----------------------------------------------------------------------------*/
 
105
 
 
106
int
 
107
send_for(void *component);
 
108
 
 
109
/*----------------------------------------------------------------------------
 
110
 * Send convergence indicator to Code_Saturne
 
111
 *----------------------------------------------------------------------------*/
 
112
 
 
113
int
 
114
send_icv1(void *component,
 
115
          int icv);
 
116
 
 
117
/*----------------------------------------------------------------------------
 
118
 * Receive convergence indicator from Code_Saturne
 
119
 *----------------------------------------------------------------------------*/
 
120
 
 
121
int
 
122
recv_icv(void *component,
 
123
         int *icv);
 
124
 
 
125
/*----------------------------------------------------------------------------
 
126
 * Send convergence indicator to Code_Aster
 
127
 *----------------------------------------------------------------------------*/
 
128
 
 
129
int
 
130
send_icv2(void *component,
 
131
          int icv);
 
132
 
 
133
/*----------------------------------------------------------------------------
 
134
 * Initialize communication with Calcium
 
135
 *----------------------------------------------------------------------------*/
 
136
 
 
137
int
 
138
inicom(void *component);
 
139
 
 
140
/*----------------------------------------------------------------------------
 
141
 * End communication with Calcium and stop calculation
 
142
 *----------------------------------------------------------------------------*/
 
143
 
 
144
int
 
145
calfin(void *component);
 
146
 
 
147
/*----------------------------------------------------------------------------*/
 
148
 
 
149
#ifdef __cplusplus
 
150
}
 
151
#endif
 
152
 
 
153
#endif /* __COMMUNICATION_H__ */