OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
scortho31.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!|| scortho31 ../engine/source/elements/thickshell/solidec/scortho31.F
25!||--- called by ------------------------------------------------------
26!|| srota6 ../engine/source/output/anim/generate/srota6.F
27!|| srotorth ../engine/source/elements/solid/srotorth.F
28!|| thsol ../engine/source/output/th/thsol.F
29!||====================================================================
30 SUBROUTINE scortho31(
31 . X1, X2, X3, X4, X5, X6, X7, X8,
32 . Y1, Y2, Y3, Y4, Y5, Y6, Y7, Y8,
33 . Z1, Z2, Z3, Z4, Z5, Z6, Z7, Z8,
34 . E1X, E2X, E3X, E1Y, E2Y, E3Y, E1Z, E2Z, E3Z )
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C D u m m y A r g u m e n t s
41C-----------------------------------------------
42C REAL
44 . x1, x2, x3, x4, x5, x6, x7, x8,
45 . y1, y2, y3, y4, y5, y6, y7, y8,
46 . z1, z2, z3, z4, z5, z6, z7, z8,
47 . e1x, e1y, e1z,
48 . e2x, e2y, e2z,
49 . e3x, e3y, e3z
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53
54C REAL
55C 12
57 . x17 , x28 , x35 , x46,
58 . y17 , y28 , y35 , y46,
59 . z17 , z28 , z35 , z46,
60 . a17 , a28 ,
61 . b17 , b28 ,
62 . c17 , c28 ,
63 . rx , ry , rz ,
64 . tx , ty , tz ,
65 . det,c1,c2
66C-----------------------------------------------
67 x17=x7-x1
68 x28=x8-x2
69 x35=x5-x3
70 x46=x6-x4
71 y17=y7-y1
72 y28=y8-y2
73 y35=y5-y3
74 y46=y6-y4
75 z17=z7-z1
76 z28=z8-z2
77 z35=z5-z3
78 z46=z6-z4
79C
80 rx=x17+x28-x35-x46
81 ry=y17+y28-y35-y46
82 rz=z17+z28-z35-z46
83 a17=x17+x46
84 a28=x28+x35
85 b17=y17+y46
86 b28=y28+y35
87 c17=z17+z46
88 c28=z28+z35
89C
90 tx=a17-a28
91 ty=b17-b28
92 tz=c17-c28
93C
94c~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
95C
96 e3x = ty * rz - tz * ry
97 e3y = tz * rx - tx * rz
98 e3z = tx * ry - ty * rx
99C
100 det = sqrt(e3x*e3x + e3y*e3y + e3z*e3z)
101 IF ( det/=zero) det = one / det
102 e3x = e3x * det
103 e3y = e3y * det
104 e3z = e3z * det
105C
106 c1=sqrt(tx*tx+ty*ty+tz*tz)
107 c2=sqrt(rx*rx+ry*ry+rz*rz)
108 e1x=tx*c2 +(ry * e3z - rz * e3y)*c1
109 e1y=ty*c2 +(rz * e3x - rx * e3z)*c1
110 e1z=tz*c2 +(rx * e3y - ry * e3x)*c1
111 det = sqrt(e1x*e1x + e1y*e1y + e1z*e1z)
112 IF ( det/=zero) det = one / det
113 e1x = e1x*det
114 e1y = e1y*det
115 e1z = e1z*det
116C
117 e2x = e3y * e1z - e3z * e1y
118 e2y = e3z * e1x - e3x * e1z
119 e2z = e3x * e1y - e3y * e1x
120c~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
121 RETURN
122 END
#define my_real
Definition cppsort.cpp:32
subroutine scortho31(x1, x2, x3, x4, x5, x6, x7, x8, y1, y2, y3, y4, y5, y6, y7, y8, z1, z2, z3, z4, z5, z6, z7, z8, e1x, e2x, e3x, e1y, e2y, e3y, e1z, e2z, e3z)
Definition scortho31.F:35