OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
reaction_forces_th.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!|| reaction_forces_th ../engine/source/output/reaction_forces_th.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||====================================================================
28 SUBROUTINE reaction_forces_th(NODFT ,NODLT ,A ,AR ,MS ,
29 2 IN ,FTHREAC ,IFLAG ,NODREAC)
30C-----------------------------------------------------------------------
31C I m p l i c i t T y p e s
32C-----------------------------------------------
33#include "implicit_f.inc"
34C-----------------------------------------------
35C C o m m o n B l o c k s
36C-----------------------------------------------
37#include "com01_c.inc"
38#include "com04_c.inc"
39#include "com08_c.inc"
40C-----------------------------------------------
41C D u m m y A r g u m e n t s
42C-----------------------------------------------
43 INTEGER,INTENT(IN) :: NODFT, NODLT, IFLAG
44 INTEGER,INTENT(IN) :: NODREAC(*)
45 my_real,INTENT(IN) :: a(3,numnod) , ar(3,numnod), ms(numnod), in(iroddl*numnod)
46 my_real,INTENT(INOUT) :: fthreac(6,*)
47C-----------------------------------------------
48C L o c a l V a r i a b l e s
49C-----------------------------------------------
50 INTEGER N
51C-----------------------------------------------
52C S o u r c e L i n e s
53C-----------------------------------------------
54
55 !---------------------------------------------------------!
56 ! ADDITIONAL CONTRIBUTION OF REACTION FORCES for /TH/NODE !
57 ! First call with iflag=1, second one with iflag=1 : !
58 ! FADD = m(A-A~) !
59 !---------------------------------------------------------!
60 DO n=nodft,nodlt
61 IF (nodreac(n) > 0) THEN
62 fthreac(1,nodreac(n)) = fthreac(1,nodreac(n)) + iflag * ms(n)*a(1,n)*dt12
63 fthreac(2,nodreac(n)) = fthreac(2,nodreac(n)) + iflag * ms(n)*a(2,n)*dt12
64 fthreac(3,nodreac(n)) = fthreac(3,nodreac(n)) + iflag * ms(n)*a(3,n)*dt12
65 ENDIF ! IF (NODREAC(N) > 0)
66 ENDDO
67
68 IF (iroddl/=0) THEN
69 DO n=nodft,nodlt
70 IF (nodreac(n) > 0) THEN
71 fthreac(4,nodreac(n)) = fthreac(4,nodreac(n)) + iflag * in(n)*ar(1,n)*dt12
72 fthreac(5,nodreac(n)) = fthreac(5,nodreac(n)) + iflag * in(n)*ar(2,n)*dt12
73 fthreac(6,nodreac(n)) = fthreac(6,nodreac(n)) + iflag * in(n)*ar(3,n)*dt12
74 ENDIF ! IF (NODREAC(N) > 0)
75 ENDDO
76 END IF
77
78C-----------------------------------------------
79 RETURN
80 END SUBROUTINE reaction_forces_th
#define my_real
Definition cppsort.cpp:32
subroutine reaction_forces_th(nodft, nodlt, a, ar, ms, in, fthreac, iflag, nodreac)