OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spadah.F File Reference
#include "implicit_f.inc"
#include "com08_c.inc"
#include "sphcom.inc"
#include "task_c.inc"
#include "scr17_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine spadah (x, v, ms, spbuf, itab, kxsp, ixsp, nod2sp, wa, waspact, itask, ipartsp, ipart)

Function/Subroutine Documentation

◆ spadah()

subroutine spadah ( x,
v,
ms,
spbuf,
integer, dimension(*) itab,
integer, dimension(nisp,*) kxsp,
integer, dimension(kvoisph,*) ixsp,
integer, dimension(*) nod2sp,
wa,
integer, dimension(*) waspact,
integer itask,
integer, dimension(*) ipartsp,
integer, dimension(lipart1,*) ipart )

Definition at line 33 of file spadah.F.

37C-----------------------------------------------
38C M o d u l e s
39C-----------------------------------------------
40 USE message_mod
41C-----------------------------------------------
42C I m p l i c i t T y p e s
43C-----------------------------------------------
44#include "implicit_f.inc"
45C-----------------------------------------------
46C C o m m o n B l o c k s
47C-----------------------------------------------
48#include "com08_c.inc"
49#include "sphcom.inc"
50#include "task_c.inc"
51#include "scr17_c.inc"
52C-----------------------------------------------
53C D u m m y A r g u m e n t s
54C-----------------------------------------------
55 INTEGER KXSP(NISP,*),IXSP(KVOISPH,*),NOD2SP(*),ITAB(*),
56 . WASPACT(*),ITASK,IPARTSP(*),IPART(LIPART1,*)
57C REAL
59 . x(3,*) ,v(3,*) ,ms(*) ,spbuf(nspbuf,*) ,wa(kwasph,*)
60C-----------------------------------------------
61C L o c a l V a r i a b l e s
62C-----------------------------------------------
63 INTEGER N,INOD,NVOIS,NS,IPRT,IPROP,H_FLAG
65 . xi,yi,zi,di,divv,coeff,get_u_geo,
66 . hmin,hmax,h_new,di0
67C-----------------------------------------------
68 EXTERNAL get_u_geo
69C-----------------------------------------------
70 DO ns=itask+1,nsphact,nthread
71 n=waspact(ns)
72 inod =kxsp(3,n)
73 nvois=kxsp(4,n)
74 xi=x(1,inod)
75 yi=x(2,inod)
76 zi=x(3,inod)
77 di =spbuf(1,n)
78 di0 = spbuf(14,n)
79 divv =wa(13,n)
80 iprt =ipartsp(n)
81 iprop=ipart(2,iprt)
82 coeff = get_u_geo(8,iprop)
83 h_flag=nint(get_u_geo(9,iprop))
84 hmin = get_u_geo(10,iprop)
85 hmax = get_u_geo(11,iprop)
86C-- H_FLAG = 0 -> 3D dilatation of H : GET_U_GEO(8,IPROP) = 1/3 - HMIN=0 HMAX=EP20
87C-- H_FLAG = 1 -> 1D dilatation of H : GET_U_GEO(8,IPROP) = 1 - HMIN=0 HMAX=EP20
88C-- H_FLAG = 2 -> Constant H : GET_U_GEO(8,IPROP) = 0 - HMIN=0 HMAX=EP20
89C-- H_FLAG = 3 -> 3D dilatation of H with bounds hmin*h0 < H < hmax*h0
90 h_new=di*(one+divv*dt1*coeff)
91 IF (h_flag==3) THEN
92 h_new=max(hmin*di0,h_new)
93 h_new=min(hmax*di0,h_new)
94 ENDIF
95 spbuf(1,n)= h_new
96 IF(spbuf(1,n)<em20)THEN
97 CALL ancmsg(msgid=174,anmode=aninfo,
98 . i1=kxsp(nisp,n))
99 CALL arret(2)
100 ENDIF
101 ENDDO
102C-----------------------------------------------
103 RETURN
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
Definition message.F:889
subroutine arret(nn)
Definition arret.F:87