1
!-------------------------------------------------------------------------------
3
! This file is part of Code_Saturne, a general-purpose CFD tool.
5
! Copyright (C) 1998-2011 EDF S.A.
7
! This program is free software; you can redistribute it and/or modify it under
8
! the terms of the GNU General Public License as published by the Free Software
9
! Foundation; either version 2 of the License, or (at your option) any later
12
! This program is distributed in the hope that it will be useful, but WITHOUT
13
! ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14
! FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17
! You should have received a copy of the GNU General Public License along with
18
! this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
19
! Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
!-------------------------------------------------------------------------------
23
! Module for multigrid parameters
27
!=============================================================================
30
! iale : utilisation de la methode ALE
31
! = 0 sans methode ALE
32
! = 1 avec methode ALE
33
! nalinf : nombre d'iterations d'initialisation du fluide
34
! nalimx : nombre maximal d'iterations d'implicitation du deplacement
36
! iortvm : type de viscosite de maillage
39
! epalim : precision relative d'implicitation du deplacement des
41
! italin : iteration d'initialisation de l'ALE
45
integer, save :: iale , nalinf
46
integer, save :: nalimx, iortvm, italin
48
double precision, save :: epalim
50
! impale : indicateur de deplacement impose
51
! xyzno0 : position initiale du maillage
52
! depale : deplacement du maillage
53
! ialtyb : type de bord
55
integer, allocatable, dimension(:) :: impale, ialtyb
57
double precision, allocatable, dimension(:,:) :: xyzno0, depale
61
!=============================================================================
63
subroutine init_ale ( ncelet , ncel , nfac , nfabor , nnod )
69
integer, intent(in) :: ncelet, ncel, nfac, nfabor, nnod
71
if (iale.eq.1.or.imobil.eq.1) then
72
allocate(xyzno0(3,nnod))
76
allocate(impale(nnod))
77
allocate(ialtyb(nfabor))
78
allocate(depale(nnod,3))
81
end subroutine init_ale
83
!=============================================================================
85
subroutine finalize_ale
89
if (iale.eq.1.or.imobil.eq.1) then
99
end subroutine finalize_ale
101
!=============================================================================