OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
prelecflow.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23C CFLUID /resol/prelecfluid.F
24!||====================================================================
25!|| prelecflow ../engine/source/elements/solid/solide/prelecflow.f
26!||--- called by ------------------------------------------------------
27!|| forint ../engine/source/elements/forint.F
28!||--- calls -----------------------------------------------------
29!|| initbuf ../engine/share/resol/initbuf.F
30!|| my_barrier ../engine/source/system/machine.F
31!|| spmd_e1vois ../engine/source/mpi/fluid/spmd_cfd.F
32!|| startimeg ../engine/source/system/timer.F
33!|| stoptimeg ../engine/source/system/timer.F
34!|| vfluid ../engine/source/elements/solid/solide/vfluid.F
35!||--- uses -----------------------------------------------------
36!|| elbufdef_mod ../common_source/modules/mat_elem/elbufdef_mod.F90
37!|| initbuf_mod ../engine/share/resol/initbuf.F
38!||====================================================================
39 SUBROUTINE prelecflow(ELBUF_TAB,NGROUNC,IGROUNC,IPARG ,NBSDVOIS,
40 1 NERCVOIS,NESDVOIS,LERCVOIS,LESDVOIS,PHI1 ,
41 2 PHI2 ,POR)
42C-----------------------------------------------
43C M o d u l e s
44C-----------------------------------------------
45 USE initbuf_mod
46 USE elbufdef_mod
47C----6---------------------------------------------------------------7---------8
48C I m p l i c i t T y p e s
49C-----------------------------------------------
50#include "implicit_f.inc"
51#include "comlock.inc"
52C-----------------------------------------------
53C G l o b a l P a r a m e t e r s
54C-----------------------------------------------
55#include "mvsiz_p.inc"
56C-----------------------------------------------
57C C o m m o n B l o c k s
58C-----------------------------------------------
59#include "com01_c.inc"
60#include "param_c.inc"
61#include "vect01_c.inc"
62#include "task_c.inc"
63C-----------------------------------------------------------------
64C D u m m y A r g u m e n t s
65C-----------------------------------------------
66 INTEGER IPARG(NPARG,*),NBSDVOIS(*),IGROUNC(*),
67 . NERCVOIS(*),NESDVOIS(*),LERCVOIS(*),LESDVOIS(*),NGROUNC
68C REAL
70 . phi1(*),phi2(*),por(*)
71 TYPE(elbuf_struct_), TARGET, DIMENSION(NGROUP) :: ELBUF_TAB
72C-----------------------------------------------
73C L o c a l V a r i a b l e s
74C-----------------------------------------------
75 INTEGER INDXOF(MVSIZ)
76 INTEGER I,II,J,N, NG, NVC, MLW, JFT, JLT,ISOLNOD,ITHK,IPLA,
77 . lencom,kad,nel,nf1,ig
78 my_real,
79 . DIMENSION(:), POINTER :: uvar
80C======================================================================|
81C
82 lencom = 0
83 IF(nspmd > 1)lencom=nercvois(nspmd+1)+nesdvois(nspmd+1)
84C Boucle parallele dynamique SMP
85C
86!$OMP DO
87
88 DO ig = 1, ngrounc
89 ng = igrounc(ig)
90 IF(iparg(8,ng)==1)GOTO 150
91 ity =iparg(5,ng)
92 IF (iddw>0) CALL startimeg(ng)
93 mlw = iparg(1,ng)
94C MLW = 777 ---->cell open foam
95 IF (mlw /= 77 ) GOTO 150
96C
97 CALL initbuf(iparg ,ng ,
98 2 mlw ,nel ,nft ,kad ,ity ,
99 3 npt ,jale ,ismstr ,jeul ,jtur ,
100 4 jthe ,jlag ,jmult ,jhbe ,jivf ,
101 5 nvaux ,jpor ,jcvt ,jclose ,ipla ,
102 6 irep ,iint ,igtyp ,israt ,isrot ,
103 7 icsen ,isorth ,isorthg ,ifailure,jsms)
104C
105 isolnod = iparg(28,ng)
106
107C---------------------------------
108 lft = 1
109 llt = min(nvsiz,nel)
110 jft=lft
111 jlt=llt
112 nf1 = nft+1
113 iad = kad
114 jsph=0
115C----6---------------------------------------------------------------7---------8
116 IF(ity==1 .AND. jlag==1)THEN
117C-------------------------
118C STANDARD 8 NODE SOLID ELEMENT (JHBE = 1,2,101,102)
119C-------------------------
120 uvar => elbuf_tab(ng)%BUFLY(1)%MAT(1,1,1)%VAR
121 CALL vfluid(
122 1 uvar, nel, mlw, phi1,
123 2 phi2, por, nft)
124 ENDIF
125C-------------------------
126 IF (iddw>0) CALL stoptimeg(ng)
127
128 150 CONTINUE
129 ENDDO
130C
131 CALL my_barrier
132C
133C-----------------------------
134C ECHANGES SPMD SUR ELTS VOISINS
135C-----------------------------
136 IF (nspmd > 1) THEN
137cc LENCOMN=NBRCVOIS(MAXPROC+1)+NBSDVOIS(MAXPROC+1)
138C
139C Partie non parallele smt
140C
141!$OMP SINGLE
142 CALL spmd_e1vois(phi1 ,nercvois,nesdvois,lercvois,
143 1 lesdvois,lencom )
144C
145 CALL spmd_e1vois(phi2 ,nercvois,nesdvois,lercvois,
146 1 lesdvois,lencom )
147C
148 CALL spmd_e1vois(por ,nercvois,nesdvois,lercvois,
149 1 lesdvois,lencom )
150C Fin Partie non parallele smt
151!$OMP END SINGLE
152 ENDIF
153 END
#define my_real
Definition cppsort.cpp:32
subroutine startimeg(ng)
Definition timer.F:1487
subroutine stoptimeg(ng)
Definition timer.F:1535
#define min(a, b)
Definition macros.h:20
subroutine initbuf(iparg, ng, mtn, llt, nft, iad, ity, npt, jale, ismstr, jeul, jtur, jthe, jlag, jmult, jhbe, jivf, mid, jpor, jcvt, jclose, jpla, irep, iint, igtyp, israt, isrot, icsen, isorth, isorthg, ifailure, jsms)
Definition initbuf.F:261
subroutine prelecflow(elbuf_tab, ngrounc, igrounc, iparg, nbsdvois, nercvois, nesdvois, lercvois, lesdvois, phi1, phi2, por)
Definition prelecflow.F:42
subroutine spmd_e1vois(phi, nercvois, nesdvois, lercvois, lesdvois, lencom)
Definition spmd_cfd.F:375
subroutine my_barrier
Definition machine.F:31
subroutine vfluid(uvar, nel, mlw, phi1, phi2, phi3, nft)
Definition vfluid.F:32