OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
sreploc3.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!|| sreploc3 ../starter/source/elements/solid/solide/sreploc3.F
25!||--- called by ------------------------------------------------------
26!|| s10init3 ../starter/source/elements/solid/solide10/s10init3.F
27!|| s4init3 ../starter/source/elements/solid/solide4/s4init3.F
28!||====================================================================
29 SUBROUTINE sreploc3(
30 . RX ,RY ,RZ ,SX ,SY ,SZ ,TX ,TY ,TZ ,
31 . E1X ,E2X ,E3X ,E1Y ,E2Y ,E3Y ,E1Z ,E2Z ,E3Z )
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C G l o b a l P a r a m e t e r s
38C-----------------------------------------------
39C D u m m y A r g u m e n t s
40C-----------------------------------------------
41C REAL
43 . rx(*) ,ry(*) ,rz(*) ,sx(*) ,sy(*) ,sz(*) ,tx(*) ,ty(*) ,tz(*),
44 . e1x(*),e1y(*),e1z(*),e2x(*),e2y(*),e2z(*),e3x(*),e3y(*),e3z(*)
45C-----------------------------------------------
46C C o m m o n B l o c k s
47C-----------------------------------------------
48#include "vect01_c.inc"
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 INTEGER I
53C REAL
55 . sum
56C=======================================================================
57C Orthogonalisation du repere
58C E1=R, E3=R^S, E2=E3^E1
59C
60 DO i=lft,llt
61 sum = sqrt(rx(i)**2+ry(i)**2+rz(i)**2)
62 IF (sum > zero) sum=one/sum
63 e1x(i) = rx(i)*sum
64 e1y(i) = ry(i)*sum
65 e1z(i) = rz(i)*sum
66 e3x(i) = e1y(i)*sz(i) - e1z(i)*sy(i)
67 e3y(i) = e1z(i)*sx(i) - e1x(i)*sz(i)
68 e3z(i) = e1x(i)*sy(i) - e1y(i)*sx(i)
69 sum = sqrt(e3x(i)**2+e3y(i)**2+e3z(i)**2)
70 IF (sum > zero) sum=one/sum
71 e3x(i) = e3x(i)*sum
72 e3y(i) = e3y(i)*sum
73 e3z(i) = e3z(i)*sum
74 e2x(i) = e3y(i)*e1z(i) - e3z(i)*e1y(i)
75 e2y(i) = e3z(i)*e1x(i) - e3x(i)*e1z(i)
76 e2z(i) = e3x(i)*e1y(i) - e3y(i)*e1x(i)
77 sum = sqrt(e2x(i)**2+e2y(i)**2+e2z(i)**2)
78 IF (sum > zero) sum=one/sum
79 e2x(i) = e2x(i)*sum
80 e2y(i) = e2y(i)*sum
81 e2z(i) = e2z(i)*sum
82 ENDDO
83C-------------
84 RETURN
85 END SUBROUTINE sreploc3
#define my_real
Definition cppsort.cpp:32
subroutine sreploc3(rx, ry, rz, sx, sy, sz, tx, ty, tz, e1x, e2x, e3x, e1y, e2y, e3y, e1z, e2z, e3z)
Definition sreploc3.F:32