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 ../engine/source/elements/solid/solide/sreploc3.F
25!||--- called by ------------------------------------------------------
26!|| mulaw ../engine/source/materials/mat_share/mulaw.F90
27!|| s10forc3 ../engine/source/elements/solid/solide10/s10forc3.F
28!|| s10ke3 ../engine/source/elements/solid/solide10/s10ke3.F
29!|| s20ke3 ../engine/source/elements/solid/solide20/s20ke3.F
30!|| s4forc3 ../engine/source/elements/solid/solide4/s4forc3.F
31!|| s4ke3 ../engine/source/elements/solid/solide4/s4ke3.F
32!|| scoor3 ../engine/source/elements/solid/solide/scoor3.F
33!|| scoor3_fvm ../engine/source/ale/alefvm/scoor3_fvm.F
34!|| usermat_solid ../engine/source/materials/mat_share/usermat_solid.F
35!||====================================================================
36 SUBROUTINE sreploc3(
37 1 RX, RY, RZ, SX,
38 2 SY, SZ, TX, TY,
39 3 TZ, E1X, E2X, E3X,
40 4 E1Y, E2Y, E3Y, E1Z,
41 5 E2Z, E3Z, NEL)
42C-----------------------------------------------
43C I m p l i c i t T y p e s
44C-----------------------------------------------
45#include "implicit_f.inc"
46C-----------------------------------------------
47C G l o b a l P a r a m e t e r s
48C-----------------------------------------------
49#include "mvsiz_p.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 INTEGER, INTENT(IN) :: NEL
54C REAL
55 my_real, INTENT(IN), DIMENSION(MVSIZ) ::
56 . RX, RY, RZ, SX, SY, SZ, TX, TY, TZ
57 my_real, INTENT(OUT), DIMENSION(MVSIZ) ::
58 . e1x, e1y, e1z, e2x, e2y, e2z, e3x, e3y, e3z
59C-----------------------------------------------
60C C o m m o n B l o c k s
61C-----------------------------------------------
62C-----------------------------------------------
63C L o c a l V a r i a b l e s
64C-----------------------------------------------
65 INTEGER I
66C REAL
67 my_real
68 . SUMA
69C=======================================================================
70C Orthogonalisation du repere
71C E1=R, E3=R^S, E2=E3^E1
72C--------------------------------
73 DO i=1,nel
74 suma = sqrt(rx(i)**2+ry(i)**2+rz(i)**2)
75 IF (suma > zero) suma=one/suma
76 e1x(i) = rx(i)*suma
77 e1y(i) = ry(i)*suma
78 e1z(i) = rz(i)*suma
79 e3x(i) = e1y(i)*sz(i) - e1z(i)*sy(i)
80 e3y(i) = e1z(i)*sx(i) - e1x(i)*sz(i)
81 e3z(i) = e1x(i)*sy(i) - e1y(i)*sx(i)
82 suma = sqrt(e3x(i)**2+e3y(i)**2+e3z(i)**2)
83 IF (suma > zero) suma=one/suma
84 e3x(i) = e3x(i)*suma
85 e3y(i) = e3y(i)*suma
86 e3z(i) = e3z(i)*suma
87 e2x(i) = e3y(i)*e1z(i) - e3z(i)*e1y(i)
88 e2y(i) = e3z(i)*e1x(i) - e3x(i)*e1z(i)
89 e2z(i) = e3x(i)*e1y(i) - e3y(i)*e1x(i)
90 suma = sqrt(e2x(i)**2+e2y(i)**2+e2z(i)**2)
91 IF (suma > zero) suma=one/suma
92 e2x(i) = e2x(i)*suma
93 e2y(i) = e2y(i)*suma
94 e2z(i) = e2z(i)*suma
95 ENDDO
96C-------------
97 RETURN
98 END SUBROUTINE sreploc3
subroutine sreploc3(rx, ry, rz, sx, sy, sz, tx, ty, tz, e1x, e2x, e3x, e1y, e2y, e3y, e1z, e2z, e3z, nel)
Definition sreploc3.F:42