OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
ranim33.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!|| ranim33 ../engine/source/elements/joint/ranim33.F
25!||--- called by ------------------------------------------------------
26!|| rgjoint ../engine/source/elements/joint/rgjoint.F
27!||--- uses -----------------------------------------------------
28!|| h3d_mod ../engine/share/modules/h3d_mod.F
29!||====================================================================
30 SUBROUTINE ranim33(JFT,JLT,FORX,FORY,FORZ,XMOM,YMOM,ZMOM,XL,TANI,H3D_DATA)
31C-----------------------------------------------
32C M o d u l e s
33C-----------------------------------------------
34 USE h3d_mod
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C G l o b a l P a r a m e t e r s
41C-----------------------------------------------
42#include "mvsiz_p.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER JFT,JLT
48 . forx(*), fory(*), forz(*), xmom(*),
49 . ymom(*), zmom(*),tani(15,*)
50 DOUBLE PRECISION XL(MVSIZ,3)
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
60 my_real m1,m2,m3
61C=======================================================================
62C
63 IF(anim_ft(1)/=0 .OR. h3d_data%UND_FORC /= 0)THEN
64 DO i=jft,jlt
65 tani(1,i)= forx(i)
66 tani(2,i)= fory(i)
67 tani(3,i)= forz(i)
68 m1 = half*(xl(i,2)*forz(i)-xl(i,3)*fory(i))
69 m2 = half*(xl(i,3)*forx(i)-xl(i,1)*forz(i))
70 m3 = half*(xl(i,1)*fory(i)-xl(i,2)*forx(i))
71 tani(4,i)= xmom(i) + m1
72 tani(5,i)= ymom(i) + m2
73 tani(6,i)= zmom(i) + m3
74 tani(7,i)= -xmom(i) + m1
75 tani(8,i)= -ymom(i) + m2
76 tani(9,i)= -zmom(i) + m3
77 ENDDO
78 ENDIF
79C
80 RETURN
81 END
#define my_real
Definition cppsort.cpp:32
subroutine ranim33(jft, jlt, forx, fory, forz, xmom, ymom, zmom, xl, tani, h3d_data)
Definition ranim33.F:31