OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
s4jac_i.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!|| s4jac_i ../engine/source/elements/solid/solide4/s4jac_i.F
25!||--- called by ------------------------------------------------------
26!|| s4upd11t12 ../engine/source/elements/solid/solide4/s4upd11t12.F
27!||--- uses -----------------------------------------------------
28!|| message_mod ../engine/share/message_module/message_mod.F
29!||====================================================================
30 SUBROUTINE s4jac_i(
31 . X1 ,X2 ,X3 ,X4 ,
32 . Y1 ,Y2 ,Y3 ,Y4 ,
33 . Z1 ,Z2 ,Z3 ,Z4 ,
34 . JAC_I,NEL )
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE message_mod
39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43C-----------------------------------------------
44C G l o b a l P a r a m e t e r s
45C-----------------------------------------------
46#include "mvsiz_p.inc"
47C-----------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
50 INTEGER NEL
51 my_real
52 . JAC_I(10,*)
53 DOUBLE PRECISION
54 . x1(*), x2(*), x3(*), x4(*),
55 . y1(*), y2(*), y3(*), y4(*),
56 . z1(*), z2(*), z3(*), z4(*)
57C-----------------------------------------------
58C L o c a l V a r i a b l e s
59C-----------------------------------------------
60 INTEGER I
61 my_real
62 . B1(MVSIZ), B2(MVSIZ), B3(MVSIZ), B4(MVSIZ),
63 . C1(MVSIZ), C2(MVSIZ), C3(MVSIZ), C4(MVSIZ),
64 . d1(mvsiz), d2(mvsiz), d3(mvsiz), d4(mvsiz),vol(mvsiz)
65 double precision
66 . x41, y41, z41, x42, y42, z42, x43, y43, z43,b1dp,c1dp,d1dp,voldp
67 my_real
68 . d ,px1,px2,px3,px4,py1,py2,py3,py4,pz1,pz2,pz3,pz4
69C=======================================================================
70 DO i=1,nel
71 x43 = x4(i) - x3(i)
72 y43 = y4(i) - y3(i)
73 z43 = z4(i) - z3(i)
74 x41 = x4(i) - x1(i)
75 y41 = y4(i) - y1(i)
76 z41 = z4(i) - z1(i)
77 x42 = x4(i) - x2(i)
78 y42 = y4(i) - y2(i)
79 z42 = z4(i) - z2(i)
80C
81 b1dp = y43*z42 - y42*z43
82 b1(i) = b1dp
83 b2(i) = y41*z43 - y43*z41
84 b3(i) = y42*z41 - y41*z42
85 b4(i) = -(b1(i) + b2(i) + b3(i))
86C
87 c1dp = z43*x42 - z42*x43
88 c1(i) = c1dp
89 c2(i) = z41*x43 - z43*x41
90 c3(i) = z42*x41 - z41*x42
91 c4(i) = -(c1(i) + c2(i) + c3(i))
92C
93 d1dp = x43*y42 - x42*y43
94 d1(i) = d1dp
95 d2(i) = x41*y43 - x43*y41
96 d3(i) = x42*y41 - x41*y42
97 d4(i) = -(d1(i) + d2(i) + d3(i))
98C
99 voldp = (x41*b1dp + y41*c1dp + z41*d1dp)*one_over_6
100 vol(i) = voldp
101 ENDDO
102C
103 DO i=1,nel
104 d = one/vol(i)/six
105 px1=-b1(i)*d
106 py1=-c1(i)*d
107 pz1=-d1(i)*d
108 px2=-b2(i)*d
109 py2=-c2(i)*d
110 pz2=-d2(i)*d
111 px3=-b3(i)*d
112 py3=-c3(i)*d
113 pz3=-d3(i)*d
114 px4=-b4(i)*d
115 py4=-c4(i)*d
116 pz4=-d4(i)*d
117 jac_i(1,i) = px1
118 jac_i(2,i) = px2
119 jac_i(3,i) = px3
120 jac_i(4,i) = py1
121 jac_i(5,i) = py2
122 jac_i(6,i) = py3
123 jac_i(7,i) = pz1
124 jac_i(8,i) = pz2
125 jac_i(9,i) = pz3
126 jac_i(10,i) = vol(i)
127 ENDDO
128C-----------
129 RETURN
130 END
subroutine s4jac_i(x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, jac_i, nel)
Definition s4jac_i.F:35