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 ../starter/source/output/anim/dmasani0.F
25!||--- called by ------------------------------------------------------
26!|| genani1 ../starter/source/output/anim/genani1.F
27!||--- uses -----------------------------------------------------
28!||====================================================================
29 SUBROUTINE dmasani0(ELBUF_TAB ,IPARG ,
30 2 MAS ,PM ,EL2FA ,IPART ,IPARTSP )
31C-----------------------------------------------
32C M o d u l e s
33C-----------------------------------------------
34 USE elbufdef_mod
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C C o m m o n B l o c k s
41C-----------------------------------------------
42#include "vect01_c.inc"
43#include "com01_c.inc"
44#include "scr17_c.inc"
45#include "param_c.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49C REAL
50 my_real
51 . mas(*) ,pm(npropm,*)
52 INTEGER IPARG(NPARG,*),EL2FA(*),IPART(LIPART1,*),
53 . ipartsp(*)
54 TYPE (ELBUF_STRUCT_), DIMENSION(NGROUP), TARGET :: ELBUF_TAB
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 my_real
59 . off, VALUE
60 INTEGER I, NG, NEL, N, MT,IALEL, IPRT,NN1
61 REAL R4
62 TYPE(g_bufel_) ,POINTER :: GBUF
63C---+----1----+----2----+----3----+----4----+----5----+----6----+----7--
64 nn1 = 1
65C-----------------------------------------------
66C face ext
67C-----------------------------------------------
68 DO 490 ng=1,ngroup
69 nel = iparg(2,ng)
70 nft = iparg(3,ng)
71 ity = iparg(5,ng)
72 lft=1
73 llt=nel
74C-----------------------------------------------
75 IF(ity==51)THEN
76C PARTICULES SPH.
77C-----------------------------------------------
78 gbuf => elbuf_tab(ng)%GBUF
79 ialel=iparg(7,ng)+iparg(11,ng)
80 DO i=lft,llt
81 n = i + nft
82 IF(el2fa(nn1+n)/=0)THEN
83 IF(ialel==0)THEN
84 iprt=ipartsp(n)
85 mt =ipart(1,iprt)
86 VALUE=pm(89,mt)*gbuf%VOL(i)
87 ELSE
88 off = min(gbuf%OFF(i),one)
89 VALUE=gbuf%RHO(i)*gbuf%VOL(i)*off
90 ENDIF
91 mas(el2fa(nn1+n)) = VALUE
92 ENDIF
93 ENDDO
94 ENDIF
95C-----------------------------------------------
96C FIN DE BOUCLE SUR LES GROUPES
97C-----------------------------------------------
98 490 CONTINUE
99C-----------------------------------------------
100 RETURN
101 END
102
103
104
105
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20
subroutine dmasani0(elbuf_tab, iparg, mas, pm, el2fa, ipart, ipartsp)
Definition dmasani0.F:31