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

« back to all changes in this revision

Viewing changes to include/lagr/cs_lagr.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2011-11-24 00:00:08 UTC
  • mfrom: (6.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20111124000008-2vo99e38267942q5
Tags: 2.1.0-3
Install a missing file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*============================================================================
2
 
 *
3
 
 *     This file is part of the Code_Saturne Kernel, element of the
4
 
 *     Code_Saturne CFD tool.
5
 
 *
6
 
 *     Copyright (C) 1998-2009 EDF S.A., France
7
 
 *
8
 
 *     contact: saturne-support@edf.fr
9
 
 *
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.
14
 
 *
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.
19
 
 *
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
25
 
 *
26
 
 *============================================================================*/
27
 
 
28
 
#ifndef __CS_LAGR_H__
29
 
#define __CS_LAGR_H__
30
 
 
31
 
/*============================================================================
32
 
 * Utilitarian functions for the diphasic lagrangian module
33
 
 *============================================================================*/
34
 
 
35
 
/*----------------------------------------------------------------------------
36
 
 *  Local headers
37
 
 *----------------------------------------------------------------------------*/
38
 
 
39
 
#include "cs_base.h"
40
 
 
41
 
/*----------------------------------------------------------------------------*/
42
 
 
43
 
BEGIN_C_DECLS
44
 
 
45
 
/*============================================================================
46
 
 * Public function definitions
47
 
 *============================================================================*/
48
 
 
49
 
/*----------------------------------------------------------------------------
50
 
 * Check if IEEE 754 standard is respected for floating storage for this
51
 
 * architecture. If the standard is not respected the particle trajectography
52
 
 * may be wrong.
53
 
 *
54
 
 * Returns:
55
 
 *----------------------------------------------------------------------------*/
56
 
 
57
 
void
58
 
CS_PROCF (csieee,CSIEEE)(void);
59
 
 
60
 
/*----------------------------------------------------------------------------
61
 
 * Check the relative localization of two vertices. We want to know if these
62
 
 * two vertices are identical.
63
 
 *
64
 
 * pvalmax              --> upperbound on coordinates
65
 
 * px                   --> X coordinate of the vertex P
66
 
 * py                   --> Y coordinate of the vertex P
67
 
 * pz                   --> Z coordinate of the vertex P
68
 
 * qx                   --> X coordinate of the vertex Q
69
 
 * qy                   --> Y coordinate of the vertex Q
70
 
 * qz                   --> Z coordinate of the vertex Q
71
 
 * sign                 <-> return tag (1 -> identical else 0)
72
 
 *
73
 
 * Returns:
74
 
 *----------------------------------------------------------------------------*/
75
 
 
76
 
void
77
 
CS_PROCF (coloca,COLOCA)(cs_real_t  *pvalmax,
78
 
                         cs_real_t  *px,
79
 
                         cs_real_t  *py,
80
 
                         cs_real_t  *pz,
81
 
                         cs_real_t  *qx,
82
 
                         cs_real_t  *qy,
83
 
                         cs_real_t  *qz,
84
 
                         cs_int_t   *sign);
85
 
 
86
 
/*----------------------------------------------------------------------------
87
 
 * Look for coordinate system orientation to locate particles in relation to
88
 
 * faces.
89
 
 *
90
 
 * pvalmax              --> upper bound on coordinates
91
 
 * px                   --> X coordinate of the first vertex
92
 
 * py                   --> Y coordinate of the first vertex
93
 
 * pz                   --> Z coordinate of the first vertex
94
 
 * qx                   --> X coordinate of the second vertex
95
 
 * qy                   --> Y coordinate of the second vertex
96
 
 * qz                   --> Z coordinate of the second vertex
97
 
 * cdgx                 --> X coordinate of the third vertex
98
 
 * cdgy                 --> Y coordinate of the third vertex
99
 
 * cdgz                 --> Z coordinate of the third vertex
100
 
 * crgx                 --> X coordinate of the fourth vertex
101
 
 * crgy                 --> Y coordinate of the fourth vertex
102
 
 * crgz                 --> Z coordinate of the fourth vertex
103
 
 * sign                 <-> orientation of the four vertices.
104
 
 * pturb                <->
105
 
 *
106
 
 * Returns:
107
 
 *----------------------------------------------------------------------------*/
108
 
 
109
 
void
110
 
CS_PROCF (coturn,COTURN)(cs_real_t   *pvalmax,
111
 
                         cs_real_t   *px,
112
 
                         cs_real_t   *py,
113
 
                         cs_real_t   *pz,
114
 
                         cs_real_t   *qx,
115
 
                         cs_real_t   *qy,
116
 
                         cs_real_t   *qz,
117
 
                         cs_real_t   *cdgx,
118
 
                         cs_real_t   *cdgy,
119
 
                         cs_real_t   *cdgz,
120
 
                         cs_real_t   *crdx,
121
 
                         cs_real_t   *crdy,
122
 
                         cs_real_t   *crdz,
123
 
                         cs_int_t    *sign,
124
 
                         cs_int_t    *pturb);
125
 
 
126
 
/*----------------------------------------------------------------------------*/
127
 
 
128
 
END_C_DECLS
129
 
 
130
 
#endif /* __CS_LAGR_H__ */