OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
forani2.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!|| forani2 ../engine/source/output/anim/generate/forani2.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 forani2(FANI,A,NFIA,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-----------------------------------------------
53C M o d u l e s
54C-----------------------------------------------
55 USE h3d_mod
56C-----------------------------------------------
57C I m p l i c i t T y p e s
58C-----------------------------------------------
59#include "implicit_f.inc"
60C-----------------------------------------------
61C C o m m o n B l o c k s
62C-----------------------------------------------
63!ANIM_V
64#include "scr14_c.inc"
65!OUTP_V
66#include "scr16_c.inc"
67C-----------------------------------------------
68C D u m m y A r g u m e n t s
69C-----------------------------------------------
70 INTEGER NFIA,NFEA,NODFT,NODLT
71 my_real a(3,*),fani(3,*)
72 TYPE(h3d_database) :: H3D_DATA
73C-----------------------------------------------
74C L o c a l V a r i a b l e s
75C-----------------------------------------------
76 INTEGER N,K
77C-----------------------------------------------
78C S o u r c e L i n e s
79C-----------------------------------------------
80
81 IF(anim_v(5)+outp_v(5)+h3d_data%N_VECT_FINT > 0) THEN
82 !if FINT is requested (ANIM or OUTP or H3D)
83#include "vectorize.inc"
84 DO n=nodft,nodlt
85 fani(1,n+nfia)=fani(1,n+nfia) + a(1,n)
86 fani(2,n+nfia)=fani(2,n+nfia) + a(2,n)
87 fani(3,n+nfia)=fani(3,n+nfia) + a(3,n)
88 ENDDO
89 ENDIF
90 IF(anim_v(6)+outp_v(6)+h3d_data%N_VECT_FEXT > 0) THEN
91 !if FEXT is requested (ANIM or OUTP or H3D)
92#include "vectorize.inc"
93 DO n=nodft,nodlt
94 fani(1,n+nfea)=fani(1,n+nfea) - a(1,n)
95 fani(2,n+nfea)=fani(2,n+nfea) - a(2,n)
96 fani(3,n+nfea)=fani(3,n+nfea) - a(3,n)
97 ENDDO
98 ENDIF
99C-----------------------------------------------
100 RETURN
101 END SUBROUTINE forani2
#define my_real
Definition cppsort.cpp:32
subroutine forani2(fani, a, nfia, nfea, nodft, nodlt, h3d_data)
Definition forani2.F:31