OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
dmasani0.F File Reference
#include "implicit_f.inc"
#include "vect01_c.inc"
#include "com01_c.inc"
#include "scr17_c.inc"
#include "param_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine dmasani0 (elbuf_tab, iparg, mas, pm, el2fa, ipart, ipartsp)

Function/Subroutine Documentation

◆ dmasani0()

subroutine dmasani0 ( type (elbuf_struct_), dimension(ngroup), target elbuf_tab,
integer, dimension(nparg,*) iparg,
mas,
pm,
integer, dimension(*) el2fa,
integer, dimension(lipart1,*) ipart,
integer, dimension(*) ipartsp )

Definition at line 29 of file dmasani0.F.

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
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20