OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
dmasani0.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/.
23!||====================================================================
24!|| dmasani0 ../engine/source/output/anim/generate/dmasani0.F
25!||--- called by ------------------------------------------------------
26!|| genani ../engine/source/output/anim/generate/genani.F
27!||--- calls -----------------------------------------------------
28!|| initbuf ../engine/share/resol/initbuf.F
29!||--- uses -----------------------------------------------------
30!|| elbufdef_mod ../common_source/modules/mat_elem/elbufdef_mod.F90
31!|| initbuf_mod ../engine/share/resol/initbuf.F
32!||====================================================================
33 SUBROUTINE dmasani0(X ,D ,ELBUF_TAB,GEO ,IPARG ,
34 2 MAS ,PM ,EL2FA ,IPART ,IPARTSP )
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE initbuf_mod
39 USE elbufdef_mod
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47#include "vect01_c.inc"
48#include "com01_c.inc"
49#include "sphcom.inc"
50#include "scr17_c.inc"
51#include "param_c.inc"
52C-----------------------------------------------
53C D u m m y A r g u m e n t s
54C-----------------------------------------------
55C REAL
57 . mas(*) ,pm(npropm,*),geo(npropg,*),x(3,*),d(3,*)
58 INTEGER IPARG(NPARG,*),EL2FA(*),IPART(LIPART1,*),
59 . ipartsp(*)
60 TYPE (ELBUF_STRUCT_), DIMENSION(NGROUP), TARGET :: ELBUF_TAB
61C-----------------------------------------------
62C L o c a l V a r i a b l e s
63C-----------------------------------------------
64C REAL
66 . off, VALUE
67 INTEGER I, NG, NEL, N, MT,IALEL,NN1,NN2,IPRT
68 TYPE(g_bufel_) ,POINTER :: GBUF
69C=======================================================================
70 nn1 = 1
71 nn2 = nn1 + (numsph+maxpjet)
72C-----------------------------------------------
73C face ext
74C-----------------------------------------------
75 DO 490 ng=1,ngroup
76 CALL initbuf(iparg ,ng ,
77 2 mtn ,nel ,nft ,iad ,ity ,
78 3 npt ,jale ,ismstr ,jeul ,jtur ,
79 4 jthe ,jlag ,jmult ,jhbe ,jivf ,
80 5 nvaux ,jpor ,jcvt ,jclose ,jplasol ,
81 6 irep ,iint ,igtyp ,israt ,isrot ,
82 7 icsen ,isorth ,isorthg ,ifailure,jsms )
83 IF (ity == 51) THEN
84C-----------------------------------------------
85C SPH PARTICLES.
86C-----------------------------------------------
87 lft=1
88 llt=nel
89 gbuf => elbuf_tab(ng)%GBUF
90 ialel=iparg(7,ng)+iparg(11,ng)
91 DO i=lft,llt
92 n = i + nft
93 IF(el2fa(nn1+n)/=0)THEN
94 IF(ialel==0)THEN
95 iprt=ipartsp(n)
96 mt =ipart(1,iprt)
97 VALUE=pm(89,mt)*gbuf%VOL(i)
98 ELSE
99 off = min(gbuf%OFF(i),one)
100 VALUE=gbuf%RHO(i)*gbuf%VOL(i)*off
101 ENDIF
102 mas(el2fa(nn1+n)) = VALUE
103 ENDIF
104 ENDDO
105 ENDIF
106C-----------------------------------------------
107C end of loop over groups
108C-----------------------------------------------
109 490 CONTINUE
110C-----------------------------------------------
111 RETURN
112 END
#define my_real
Definition cppsort.cpp:32
subroutine dmasani0(x, d, elbuf_tab, geo, iparg, mas, pm, el2fa, ipart, ipartsp)
Definition dmasani0.F:35
#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