OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
forani3.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!|| forani3 ../engine/source/output/anim/generate/forani3.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- uses -----------------------------------------------------
28!|| h3d_mod ../engine/share/modules/h3d_mod.F
29!||====================================================================
30 SUBROUTINE forani3(FANI,A,MS,NFEA,NODFT,NODLT,H3D_DATA)
31C-----------------------------------------------
32C D e s c r i p t i o n
33C-----------------------------------------------
34C This subroutine is related to output of FINT and FEXT vectors.
35C When FORANI1 is called, A is containing: FEXT
36C When FORANI2 is called, A is containing: FEXT+FINT
37C When FORANI3 is called, A is containing:(FEXT+FINT+FGRAV)/m
38C
39C forani1 forani2 forani3
40C FANI(:,N+NFIA) = -FEXT +(FEXT+FINT) = FINT
41C FANI(:,N+NFEA) = +FEXT -(FEXT+FINT) + [(FEXT+FINT+FRAV)/m]*m = FEXT+FGRAV
42C-----------------------------------------------
43C
44C ANIM_V(5) : /ANIM/VECT/FINT
45C OUTP_V(5) : /OUTP/VECT/FINT
46C H3D_DATA%N_VECT_FINT : /H3D/NODA/FINT
47C
48C ANIM_V(6) : /ANIM/VECT/FEXT
49C OUTP_V(6) : /OUTP/VECT/FEXT
50C H3D_DATA%N_VECT_FEXT : /H3D/NODA/FEXT
51C
52C-----------------------------------------------
53 USE h3d_mod
54C-----------------------------------------------
55C I m p l i c i t T y p e s
56C-----------------------------------------------
57#include "implicit_f.inc"
58C-----------------------------------------------
59C C o m m o n B l o c k s
60C-----------------------------------------------
61!ANIM_V
62#include "scr14_c.inc"
63!OUTP_V
64#include "scr16_c.inc"
65C-----------------------------------------------
66C D u m m y A r g u m e n t s
67C-----------------------------------------------
68 INTEGER NFEA,NODFT,NODLT
69 my_real a(3,*),fani(3,*),ms(*)
70 TYPE(h3d_database) :: H3D_DATA
71C-----------------------------------------------
72C L o c a l V a r i a b l e s
73C-----------------------------------------------
74 INTEGER N,K
75C-----------------------------------------------
76C S o u r c e L i n e s
77C-----------------------------------------------
78 IF(anim_v(6)+outp_v(6)+h3d_data%N_VECT_FEXT > 0) THEN
79 !if FEXT is requested (ANIM or OUTP or H3D)
80#include "vectorize.inc"
81 DO n=nodft,nodlt
82 fani(1,n+nfea)=fani(1,n+nfea) + a(1,n)*ms(n)
83 fani(2,n+nfea)=fani(2,n+nfea) + a(2,n)*ms(n)
84 fani(3,n+nfea)=fani(3,n+nfea) + a(3,n)*ms(n)
85 ENDDO
86 ENDIF
87C-----------------------------------------------
88 RETURN
89 END SUBROUTINE forani3
#define my_real
Definition cppsort.cpp:32
subroutine forani3(fani, a, ms, nfea, nodft, nodlt, h3d_data)
Definition forani3.F:31