OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
s4jaci3.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!|| s4jaci3 ../starter/source/elements/solid/solide4/s4jaci3.F
25!||--- called by ------------------------------------------------------
26!|| s4init3 ../starter/source/elements/solid/solide4/s4init3.F
27!||====================================================================
28 SUBROUTINE s4jaci3(SAV ,JAC_I, VOL, NEL )
29C-----------------------------------------------
30C I m p l i c i t T y p e s
31C-----------------------------------------------
32#include "implicit_f.inc"
33C-----------------------------------------------
34C G l o b a l P a r a m e t e r s
35C-----------------------------------------------
36#include "mvsiz_p.inc"
37C-----------------------------------------------
38C D u m m y A r g u m e n t s
39C-----------------------------------------------
40 INTEGER , INTENT(IN) :: NEL
41 DOUBLE PRECISION , DIMENSION(NEL,9),INTENT(IN) :: SAV
42 my_real , DIMENSION(10,NEL),INTENT(OUT) :: jac_i
43 my_real , DIMENSION(NEL), INTENT(OUT) :: vol
44C-----------------------------------------------
45C L o c a l V a r i a b l e s
46C-----------------------------------------------
47 double precision
48 . x1(mvsiz), x2(mvsiz), x3(mvsiz), x4(mvsiz),
49 . y1(mvsiz), y2(mvsiz), y3(mvsiz), y4(mvsiz),
50 . z1(mvsiz), z2(mvsiz), z3(mvsiz), z4(mvsiz),voldp
51C REAL
53 . det(mvsiz),
54 . px1(mvsiz), px2(mvsiz), px3(mvsiz), px4(mvsiz),
55 . py1(mvsiz), py2(mvsiz), py3(mvsiz), py4(mvsiz),
56 . pz1(mvsiz), pz2(mvsiz), pz3(mvsiz), pz4(mvsiz)
57 INTEGER I
59 . b1(mvsiz), b2(mvsiz), b3(mvsiz), b4(mvsiz),
60 . c1(mvsiz), c2(mvsiz), c3(mvsiz), c4(mvsiz),
61 . d1(mvsiz), d2(mvsiz), d3(mvsiz), d4(mvsiz)
62 double precision
63 . x41, y41, z41, x42, y42, z42, x43, y43, z43,b1dp,c1dp,d1dp
65 . d ,pxx, pyy, pzz, pxy, pyz, pxz, gfac, aa, bb, p, ld
66C=======================================================================
67 DO i=1,nel
68 x4(i)=zero
69 y4(i)=zero
70 z4(i)=zero
71 ENDDO
72 DO i=1,nel
73 x1(i)=sav(i,1)
74 y1(i)=sav(i,4)
75 z1(i)=sav(i,7)
76 x2(i)=sav(i,2)
77 y2(i)=sav(i,5)
78 z2(i)=sav(i,8)
79 x3(i)=sav(i,3)
80 y3(i)=sav(i,6)
81 z3(i)=sav(i,9)
82 ENDDO
83 DO i=1,nel
84 x43 = x4(i) - x3(i)
85 y43 = y4(i) - y3(i)
86 z43 = z4(i) - z3(i)
87 x41 = x4(i) - x1(i)
88 y41 = y4(i) - y1(i)
89 z41 = z4(i) - z1(i)
90 x42 = x4(i) - x2(i)
91 y42 = y4(i) - y2(i)
92 z42 = z4(i) - z2(i)
93C
94 b1dp = y43*z42 - y42*z43
95 b1(i) = b1dp
96 b2(i) = y41*z43 - y43*z41
97 b3(i) = y42*z41 - y41*z42
98 b4(i) = -(b1(i) + b2(i) + b3(i))
99C
100 c1dp = z43*x42 - z42*x43
101 c1(i) = c1dp
102 c2(i) = z41*x43 - z43*x41
103 c3(i) = z42*x41 - z41*x42
104 c4(i) = -(c1(i) + c2(i) + c3(i))
105C
106 d1dp = x43*y42 - x42*y43
107 d1(i) = d1dp
108 d2(i) = x41*y43 - x43*y41
109 d3(i) = x42*y41 - x41*y42
110 d4(i) = -(d1(i) + d2(i) + d3(i))
111C
112 voldp = (x41*b1dp + y41*c1dp + z41*d1dp)*one_over_6
113 det(i) = voldp
114 vol(i) = det(i)
115 ENDDO
116C
117 DO i=1,nel
118 d = one/det(i)/six
119 px1(i)=-b1(i)*d
120 py1(i)=-c1(i)*d
121 pz1(i)=-d1(i)*d
122 px2(i)=-b2(i)*d
123 py2(i)=-c2(i)*d
124 pz2(i)=-d2(i)*d
125 px3(i)=-b3(i)*d
126 py3(i)=-c3(i)*d
127 pz3(i)=-d3(i)*d
128 px4(i)=-b4(i)*d
129 py4(i)=-c4(i)*d
130 pz4(i)=-d4(i)*d
131 ENDDO
132 DO i=1,nel
133 jac_i(1,i) = px1(i)
134 jac_i(2,i) = px2(i)
135 jac_i(3,i) = px3(i)
136 jac_i(4,i) = py1(i)
137 jac_i(5,i) = py2(i)
138 jac_i(6,i) = py3(i)
139 jac_i(7,i) = pz1(i)
140 jac_i(8,i) = pz2(i)
141 jac_i(9,i) = pz3(i)
142 jac_i(10,i) = vol(i)
143 ENDDO
144C-----------
145 RETURN
146 END
#define my_real
Definition cppsort.cpp:32
subroutine s4jaci3(sav, jac_i, vol, nel)
Definition s4jaci3.F:29