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

« back to all changes in this revision

Viewing changes to include/lagr/cs_lagr_perio.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_PERIO_H__
29
 
#define __CS_LAGR_PERIO_H__
30
 
 
31
 
/*============================================================================
32
 
 * Management of the periodicity for particles
33
 
 *============================================================================*/
34
 
 
35
 
/*----------------------------------------------------------------------------
36
 
 * Local headers
37
 
 *----------------------------------------------------------------------------*/
38
 
 
39
 
#include "cs_base.h"
40
 
 
41
 
/*----------------------------------------------------------------------------*/
42
 
 
43
 
BEGIN_C_DECLS
44
 
 
45
 
/*============================================================================
46
 
 *  Public functions definition for API Fortran
47
 
 *============================================================================*/
48
 
 
49
 
/*----------------------------------------------------------------------------
50
 
 * Build buffers to keep the link between a given halo cell and :
51
 
 *  - the related real cell
52
 
 *  - the transformation id
53
 
 *
54
 
 * Fortran Interface :
55
 
 *
56
 
 * SUBROUTINE PERLOC
57
 
 * *****************
58
 
 *
59
 
 * INTEGER ICELCR(NCELET-NCEL) : <-  : related real cell buffer
60
 
 * INTEGER IPERCR(NCELET-NCEL) : <-  : transformation id buffer
61
 
 *
62
 
 * Returns:
63
 
 *----------------------------------------------------------------------------*/
64
 
 
65
 
void
66
 
CS_PROCF (perloc, PERLOC)(cs_int_t   *icelcr,
67
 
                          cs_int_t   *ipercr);
68
 
 
69
 
/*----------------------------------------------------------------------------
70
 
 * Apply rotation to the location of a particle.
71
 
 *
72
 
 * Fortran Interface :
73
 
 *
74
 
 * SUBROUTINE LAGPER
75
 
 * *****************
76
 
 *
77
 
 * INTEGER          ITRANS        :  -> : transformation id buffer
78
 
 * DOUBLE PRECISION VTX_A         :  -> : location of vertex before transform.
79
 
 * DOUBLE PRECISION VTX_B         : <-  : location of the vertex after transform.
80
 
 *
81
 
 * Returns:
82
 
 *----------------------------------------------------------------------------*/
83
 
 
84
 
void
85
 
CS_PROCF (lagper, LAGPER)(const cs_int_t   *itrans,
86
 
                          const cs_real_t   vtx_a[],
87
 
                                cs_real_t   vtx_b[]);
88
 
 
89
 
/*----------------------------------------------------------------------------
90
 
 * Apply rotation on the velocity vector of a particle.
91
 
 *
92
 
 * Fortran Interface :
93
 
 *
94
 
 * SUBROUTINE LAGVEC
95
 
 * *****************
96
 
 *
97
 
 * INTEGER          ITRANS        :  -> : transformation id
98
 
 * DOUBLE PRECISION VECTI         :  -> : vector before transformation
99
 
 * DOUBLE PRECISION VECTF         : <-  : vector after transformation
100
 
 *
101
 
 * Returns:
102
 
 *----------------------------------------------------------------------------*/
103
 
 
104
 
void
105
 
CS_PROCF (lagvec, LAGVEC)(const cs_int_t   *itrans,
106
 
                          const cs_real_t   vecti[],
107
 
                                cs_real_t   vectf[]);
108
 
 
109
 
/*----------------------------------------------------------------------------*/
110
 
 
111
 
END_C_DECLS
112
 
 
113
 
#endif /* __CS_LAGR_PERIO_H__ */