1
/*============================================================================
3
* This file is part of the Code_Saturne Kernel, element of the
4
* Code_Saturne CFD tool.
6
* Copyright (C) 1998-2009 EDF S.A., France
8
* contact: saturne-support@edf.fr
10
* The Code_Saturne Kernel is free software; you can redistribute it
11
* and/or modify it under the terms of the GNU General Public License
12
* as published by the Free Software Foundation; either version 2 of
13
* the License, or (at your option) any later version.
15
* The Code_Saturne Kernel is distributed in the hope that it will be
16
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
17
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with the Code_Saturne Kernel; if not, write to the
22
* Free Software Foundation, Inc.,
23
* 51 Franklin St, Fifth Floor,
24
* Boston, MA 02110-1301 USA
26
*============================================================================*/
28
#ifndef __CS_SYR3_MESSAGES_H__
29
#define __CS_SYR3_MESSAGES_H__
31
/*============================================================================
32
* Manage messages for Syrthes coupling: sending, receiving and interpolation
33
*============================================================================*/
35
/*----------------------------------------------------------------------------
36
* Standard C library headers
37
*----------------------------------------------------------------------------*/
39
/*----------------------------------------------------------------------------
41
*----------------------------------------------------------------------------*/
43
/*----------------------------------------------------------------------------
45
*----------------------------------------------------------------------------*/
47
/*----------------------------------------------------------------------------
49
*----------------------------------------------------------------------------*/
53
/*----------------------------------------------------------------------------*/
57
/*=============================================================================
58
* Local Macro Definitions
59
*============================================================================*/
61
/*=============================================================================
62
* Local Structure Definitions
63
*============================================================================*/
65
/*============================================================================
67
*============================================================================*/
69
/*============================================================================
70
* Public function prototypes
71
*============================================================================*/
73
/*----------------------------------------------------------------------------
74
* Check if Syrthes coupling continues or if we must finalize communications.
77
* nt_cur_abs <-- current iteration number
78
* nt_max_abs <-> maximum iteration number
79
*----------------------------------------------------------------------------*/
82
cs_syr3_messages_test_iter(int nt_cur_abs,
85
/*----------------------------------------------------------------------------
86
* Synchronize new time step
89
* nt_cur_abs <-- current iteration number
90
* nt_max_abs --> maximum iteration number
91
*----------------------------------------------------------------------------*/
94
cs_syr3_messages_new_time_step(int nt_cur_abs,
97
/*----------------------------------------------------------------------------
98
* Receive coupling variables from Syrthes
101
* syr_num <-- Syrthes 3 coupling number
102
* twall --> wall temperature
103
*----------------------------------------------------------------------------*/
106
cs_syr3_messages_recv_twall(cs_int_t syr_num,
109
/*----------------------------------------------------------------------------
110
* Send coupling variables to Syrthes
113
* syr_num <-- Syrthes 3 coupling number
114
* tfluid <-- wall exchange coefficient
115
* hwall <-- wall exchange coefficient
116
*----------------------------------------------------------------------------*/
119
cs_syr3_messages_send_tf_hwall(cs_int_t syr_num,
123
/*----------------------------------------------------------------------------*/
127
#endif /* __CS_SYR3_MESSAGES_H__ */