programmer's documentation
cs_ale.h
Go to the documentation of this file.
1 #ifndef __CS_ALE_H__
2 #define __CS_ALE_H__
3 
4 /*============================================================================
5  * Functions associated to ALE formulation
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2015 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  * Standard C library headers
32  *----------------------------------------------------------------------------*/
33 
34 /*----------------------------------------------------------------------------
35  * Local headers
36  *----------------------------------------------------------------------------*/
37 
38 #include "cs_base.h"
39 
40 /*----------------------------------------------------------------------------*/
41 
43 
44 /*============================================================================
45  * Public function prototypes
46  *============================================================================*/
47 
48 /*----------------------------------------------------------------------------
49  * Compute cell and face center of gravity, cell volume.
50  *
51  * Fortran Interface
52  *
53  * subroutine algrma
54  * *****************
55  *
56  * min_vol : --> : Minimum cell volume
57  * max_vol : --> : Maximum cell volume
58  * tot_vol : --> : Total mesh volume
59  *----------------------------------------------------------------------------*/
60 
61 void
62 CS_PROCF (algrma, ALGRMA)(cs_real_t *min_vol,
63  cs_real_t *max_vol,
64  cs_real_t *tot_vol);
65 
66 /*----------------------------------------------------------------------------
67  * Projection on mesh vertices of the displacement (computed on cell center)
68  *
69  * Fortran Interface
70  *
71  * subroutine aledis
72  * *****************
73  *
74  * ialtyb : <-- : Type of boundary for ALE
75  * meshv : <-- : Mesh velocity
76  * gradm : <-- : Mesh velocity gradient (du_i/dx_j : gradv[][i][j])
77  * claale : <-- : Boundary conditions A
78  * clbale : <-- : Boundary conditions B
79  * dt : <-- : Time step
80  * disp_proj : --> : Displacement projected on vertices
81  *----------------------------------------------------------------------------*/
82 
83 void
84 CS_PROCF (aledis, ALEDIS)(const cs_int_t ialtyb[],
85  const cs_real_3_t *meshv,
86  const cs_real_33_t gradm[],
87  const cs_real_3_t *claale,
88  const cs_real_33_t *clbale,
89  const cs_real_t *dt,
90  cs_real_3_t *disp_proj);
91 
92 /*----------------------------------------------------------------------------*/
93 
95 
96 #endif /* __CS_ALE_H__ */
97 
#define BEGIN_C_DECLS
Definition: cs_defs.h:429
int cs_int_t
Fortran-compatible integer.
Definition: cs_defs.h:295
integer, dimension(:), allocatable ialtyb
defines the mesh velocity from the color of the boundary faces, or more generally from their properti...
Definition: albase.f90:58
Definition: cs_field_pointer.h:64
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:307
#define END_C_DECLS
Definition: cs_defs.h:430
double cs_real_t
Definition: cs_defs.h:296
#define CS_PROCF(x, y)
Definition: cs_defs.h:453
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:311
void algrma(cs_real_t *min_vol, cs_real_t *max_vol, cs_real_t *tot_vol)
Definition: cs_ale.c:88
void aledis(const cs_int_t ialtyb[], const cs_real_3_t *meshv, const cs_real_33_t gradm[], const cs_real_3_t *claale, const cs_real_33_t *clbale, const cs_real_t *dt, cs_real_3_t *disp_proj)
Definition: cs_ale.c:121