OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
r2tors.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!|| r2tors ../engine/source/elements/spring/r2tors.F
25!||--- called by ------------------------------------------------------
26!|| r23law108 ../engine/source/elements/spring/r23law108.F
27!|| rforc3 ../engine/source/elements/spring/rforc3.F
28!||--- uses -----------------------------------------------------
29!|| h3d_mod ../engine/share/modules/h3d_mod.F
30!||====================================================================
31 SUBROUTINE r2tors(
32 1 FORX, FORY, FORZ, XMOM,
33 2 YMOM, ZMOM, TANI, H3D_DATA,
34 3 NEL)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE h3d_mod
39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER, INTENT(IN) :: NEL
47C REAL
48 my_real
49 . forx(*),fory(*),forz(*),xmom(*),
50 . ymom(*),zmom(*),tani(15,*)
51 TYPE(h3d_database) :: H3D_DATA
52C-----------------------------------------------
53C C o m m o n B l o c k s
54C-----------------------------------------------
55#include "scr14_c.inc"
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER I
60C-----------------------------------------------
61 IF (ANIM_FT(1) /= 0 .OR. h3d_data%UND_FORC /= 0) THEN
62 DO i=1,nel
63 tani(1,i)= forx(i)
64 tani(2,i)= fory(i)
65 tani(3,i)= forz(i)
66 tani(4,i)= xmom(i)
67 tani(5,i)= ymom(i)
68 tani(6,i)= zmom(i)
69 tani(7,i)= -xmom(i)
70 tani(8,i)= -ymom(i)
71 tani(9,i)= -zmom(i)
72 ENDDO
73 ENDIF
74!
75 RETURN
76 END
subroutine r2tors(forx, fory, forz, xmom, ymom, zmom, tani, h3d_data, nel)
Definition r2tors.F:35