OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spload3.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!|| spload3 ../engine/source/elements/sph/spload3.F
25!||--- called by ------------------------------------------------------
26!|| spstres ../engine/source/elements/sph/spstres.F
27!||====================================================================
28 SUBROUTINE spload3(
29 1 SPBUF, WA, RHOA, RHON,
30 2 DELTAX, OFFG, DXX, DXY,
31 3 DXZ, DYX, DYY, DYZ,
32 4 DZX, DZY, DZZ, MUMAX,
33 5 LFT, LLT, NFT)
34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38C-----------------------------------------------
39C C o m m o n B l o c k s
40C-----------------------------------------------
41#include "sphcom.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER, INTENT(INOUT) :: LFT
46 INTEGER, INTENT(INOUT) :: LLT
47 INTEGER, INTENT(INOUT) :: NFT
48 my_real
49 . SPBUF(NSPBUF,*) ,WA(KWASPH,*) ,
50 . rhoa(*) ,rhon(*) ,deltax(*) ,offg(*) ,
51 . dxx(*), dxy(*), dxz(*),
52 . dyx(*), dyy(*), dyz(*),
53 . dzx(*), dzy(*), dzz(*),
54 . mumax(*)
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER N,I
59C REAL
60 my_real
61 . OFF_L
62C-----------------------------------------------
63 DO 100 i=lft,llt
64 n=nft+i
65 rhon(i) =spbuf(2,n)
66 100 CONTINUE
67C
68 off_l = zero
69 DO i=lft,llt
70 off_l = min(off_l,offg(i))
71 ENDDO
72C-----
73 IF(off_l>=zero)THEN
74 DO 200 i=lft,llt
75 n=nft+i
76 dxx(i) =wa(1,n)
77 dyy(i) =wa(2,n)
78 dzz(i) =wa(3,n)
79 dxy(i) =wa(4,n)
80 dyz(i) =wa(5,n)
81 dxz(i) =wa(6,n)
82 dyx(i) =wa(7,n)
83 dzy(i) =wa(8,n)
84 dzx(i) =wa(9,n)
85 rhoa(i) =wa(10,n)
86C for stability time step computation:
87 deltax(i)=wa(11,n)
88 mumax(i) =wa(12,n)
89 200 CONTINUE
90 ELSE
91 DO 300 i=lft,llt
92 n=nft+i
93 rhoa(i) =wa(10,n)
94 IF(offg(i)>=zero)THEN
95 dxx(i) =wa(1,n)
96 dyy(i) =wa(2,n)
97 dzz(i) =wa(3,n)
98 dxy(i) =wa(4,n)
99 dyz(i) =wa(5,n)
100 dxz(i) =wa(6,n)
101 dyx(i) =wa(7,n)
102 dzy(i) =wa(8,n)
103 dzx(i) =wa(9,n)
104C for stability time step computation:
105 deltax(i)=wa(11,n)
106 mumax(i) =wa(12,n)
107 ELSE
108 dxx(i) =zero
109 dyy(i) =zero
110 dzz(i) =zero
111 dxy(i) =zero
112 dyz(i) =zero
113 dxz(i) =zero
114 dyx(i) =zero
115 dzy(i) =zero
116 dzx(i) =zero
117C for stability time step computation:
118 deltax(i)=ep20
119 mumax(i) =zero
120 ENDIF
121 300 CONTINUE
122 ENDIF
123C----------------------------------
124 RETURN
125 END
#define min(a, b)
Definition macros.h:20
subroutine spload3(spbuf, wa, rhoa, rhon, deltax, offg, dxx, dxy, dxz, dyx, dyy, dyz, dzx, dzy, dzz, mumax, lft, llt, nft)
Definition spload3.F:34