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

« back to all changes in this revision

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