OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
scortho3.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!|| scortho3 ../engine/source/elements/thickshell/solidec/scortho3.F
25!||--- called by ------------------------------------------------------
26!|| srcoor3 ../engine/source/elements/solid/solide/srcoor3.F
27!|| srcoork ../engine/source/elements/solid/solide8z/srcoork.F
28!|| srep2glo ../engine/source/elements/sph/srep2glo.F
29!|| tsh_dir2 ../engine/source/output/h3d/h3d_results/h3d_skin_tensor.F
30!||====================================================================
31 SUBROUTINE scortho3(
32 1 RX, RY, RZ, SX,
33 2 SY, SZ, TX, TY,
34 3 TZ, E1X, E2X, E3X,
35 4 E1Y, E2Y, E3Y, E1Z,
36 5 E2Z, E3Z, NEL)
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C G l o b a l P a r a m e t e r s
43C-----------------------------------------------
44#include "mvsiz_p.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER, INTENT(IN) :: NEL
49C REAL
50 my_real, INTENT(IN), DIMENSION(MVSIZ) ::
51 . RX, RY, RZ, SX, SY, SZ, TX, TY, TZ
52 my_real, INTENT(OUT), DIMENSION(MVSIZ) ::
53 . e1x, e1y, e1z, e2x, e2y, e2z, e3x, e3y, e3z
54C-----------------------------------------------
55C C o m m o n B l o c k s
56C-----------------------------------------------
57C-----------------------------------------------
58C L o c a l V a r i a b l e s
59C-----------------------------------------------
60 INTEGER I
61C REAL
62 my_real
63 . DET,C1,C2
64C-----------------------------------------------
65 DO 100 i=1,nel
66C
67 e3x(i) = ty(i) * rz(i) - tz(i) * ry(i)
68 e3y(i) = tz(i) * rx(i) - tx(i) * rz(i)
69 e3z(i) = tx(i) * ry(i) - ty(i) * rx(i)
70C
71 det = sqrt(e3x(i)*e3x(i) + e3y(i)*e3y(i) + e3z(i)*e3z(i))
72 IF ( det/=zero) det = one / det
73 e3x(i) = e3x(i) * det
74 e3y(i) = e3y(i) * det
75 e3z(i) = e3z(i) * det
76C
77 c1=sqrt(tx(i)*tx(i)+ty(i)*ty(i)+tz(i)*tz(i))
78 c2=sqrt(rx(i)*rx(i)+ry(i)*ry(i)+rz(i)*rz(i))
79 e1x(i)=tx(i)*c2 +(ry(i) * e3z(i) - rz(i) * e3y(i))*c1
80 e1y(i)=ty(i)*c2 +(rz(i) * e3x(i) - rx(i) * e3z(i))*c1
81 e1z(i)=tz(i)*c2 +(rx(i) * e3y(i) - ry(i) * e3x(i))*c1
82 det = sqrt(e1x(i)*e1x(i) + e1y(i)*e1y(i) + e1z(i)*e1z(i))
83 IF ( det/=zero) det = one / det
84 e1x(i) = e1x(i)*det
85 e1y(i) = e1y(i)*det
86 e1z(i) = e1z(i)*det
87C
88 e2x(i) = e3y(i) * e1z(i) - e3z(i) * e1y(i)
89 e2y(i) = e3z(i) * e1x(i) - e3x(i) * e1z(i)
90 e2z(i) = e3x(i) * e1y(i) - e3y(i) * e1x(i)
91 100 CONTINUE
92c~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
93 RETURN
94 END
subroutine scortho3(rx, ry, rz, sx, sy, sz, tx, ty, tz, e1x, e2x, e3x, e1y, e2y, e3y, e1z, e2z, e3z, nel)
Definition scortho3.F:37