OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
sztorth3.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!|| sztorth3 ../engine/source/elements/solid/solidez/sztorth3.f
25!||--- called by ------------------------------------------------------
26!|| s8zforc3 ../engine/source/elements/solid/solide8z/s8zforc3.F
27!|| szforc3 ../engine/source/elements/solid/solidez/szforc3.F
28!||====================================================================
29 SUBROUTINE sztorth3(JFT,JLT,ISORTH,NEL,
30 . E1X, E2X, E3X, E1Y, E2Y, E3Y, E1Z, E2Z, E3Z ,
31 . G1X,G1Y,G1Z,G2X,G2Y,G2Z,G3X,G3Y,G3Z,GAMA)
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C D u m m y A r g u m e n t s
38C-----------------------------------------------
39 INTEGER JFT, JLT,ISORTH,NEL
40C REAL
42 . e1x(*),e1y(*),e1z(*),
43 . e2x(*),e2y(*),e2z(*),e3x(*),e3y(*),e3z(*),
44 . g1x(*),g1y(*),g1z(*),
45 . g2x(*),g2y(*),g2z(*),g3x(*),g3y(*),g3z(*),gama(nel,6)
46C-----------------------------------------------
47C L o c a l V a r i a b l e s
48C-----------------------------------------------
49 INTEGER I
50 my_real
51 . r11, r12, r13, r21, r22, r23, r31, r32, r33
52C=======================================================================
53 IF (isorth > 0) THEN
54 DO i=jft,jlt
55 r11=gama(i,1)
56 r12=gama(i,2)
57 r13=gama(i,3)
58 r21=gama(i,4)
59 r22=gama(i,5)
60 r23=gama(i,6)
61 r31=r12*r23-r13*r22
62 r32=r13*r21-r11*r23
63 r33=r11*r22-r12*r21
64 g1x(i)=r11*e1x(i)+r12*e2x(i)+r13*e3x(i)
65 g1y(i)=r11*e1y(i)+r12*e2y(i)+r13*e3y(i)
66 g1z(i)=r11*e1z(i)+r12*e2z(i)+r13*e3z(i)
67 g2x(i)=r21*e1x(i)+r22*e2x(i)+r23*e3x(i)
68 g2y(i)=r21*e1y(i)+r22*e2y(i)+r23*e3y(i)
69 g2z(i)=r21*e1z(i)+r22*e2z(i)+r23*e3z(i)
70 g3x(i)=r31*e1x(i)+r32*e2x(i)+r33*e3x(i)
71 g3y(i)=r31*e1y(i)+r32*e2y(i)+r33*e3y(i)
72 g3z(i)=r31*e1z(i)+r32*e2z(i)+r33*e3z(i)
73 ENDDO
74 ELSE
75 DO i=jft,jlt
76 g1x(i)=e1x(i)
77 g1y(i)=e1y(i)
78 g1z(i)=e1z(i)
79 g2x(i)=e2x(i)
80 g2y(i)=e2y(i)
81 g2z(i)=e2z(i)
82 g3x(i)=e3x(i)
83 g3y(i)=e3y(i)
84 g3z(i)=e3z(i)
85 ENDDO
86 ENDIF
87C-----------
88 RETURN
89 END
#define my_real
Definition cppsort.cpp:32
subroutine sztorth3(jft, jlt, isorth, nel, e1x, e2x, e3x, e1y, e2y, e3y, e1z, e2z, e3z, g1x, g1y, g1z, g2x, g2y, g2z, g3x, g3y, g3z, gama)
Definition sztorth3.F:32