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!|| output_mod ../common_source/modules/output/output_mod.F90
30!||====================================================================
31 SUBROUTINE forani2(OUTPUT,A,NODFT,NODLT,H3D_DATA)
32C-----------------------------------------------
33C D e s c r i p t i o n
34C-----------------------------------------------
35C This subroutine is related to output of FINT and FEXT vectors.
36C When FORANI1 is called, A is containing: FEXT
37C When FORANI2 is called, A is containing: FEXT+FINT
38C When FORANI3 is called, A is containing:(FEXT+FINT+FGRAV)/m
39C
40C forani1 forani2 forani3
41C FANI(:,N+NFIA) = -FEXT +(FEXT+FINT) = FINT
42C FANI(:,N+NFEA) = +FEXT -(FEXT+FINT) + [(FEXT+FINT+FGRAV)/m]*m = FEXT+FGRAV
43C-----------------------------------------------
44C
45C ANIM_V(5) : /ANIM/VECT/FINT
46C OUTP_V(5) : /OUTP/VECT/FINT
47C H3D_DATA%N_VECT_FINT : /H3D/NODA/FINT
48C
49C ANIM_V(6) : /ANIM/VECT/FEXT
50C OUTP_V(6) : /OUTP/VECT/FEXT
51C H3D_DATA%N_VECT_FEXT : /H3D/NODA/FEXT
52C
53C-----------------------------------------------
54C M o d u l e s
55C-----------------------------------------------
56 USE h3d_mod
57 USE output_mod
58C-----------------------------------------------
59C I m p l i c i t T y p e s
60C-----------------------------------------------
61#include "implicit_f.inc"
62C-----------------------------------------------
63C C o m m o n B l o c k s
64C-----------------------------------------------
65!ANIM_V
66#include "scr14_c.inc"
67!OUTP_V
68#include "scr16_c.inc"
69C-----------------------------------------------
70C D u m m y A r g u m e n t s
71C-----------------------------------------------
72 TYPE(output_) :: OUTPUT
73 INTEGER NODFT,NODLT
74 my_real a(3,*)
75 TYPE(h3d_database) :: H3D_DATA
76C-----------------------------------------------
77C L o c a l V a r i a b l e s
78C-----------------------------------------------
79 INTEGER N
80C-----------------------------------------------
81C S o u r c e L i n e s
82C-----------------------------------------------
83
84 IF(anim_v(5)+outp_v(5)+h3d_data%N_VECT_FINT > 0) THEN
85 !if FINT is requested (ANIM or OUTP or H3D)
86#include "vectorize.inc"
87 DO n=nodft,nodlt
88 output%DATA%VECT_FINT(1,n)=output%DATA%VECT_FINT(1,n) + a(1,n)
89 output%DATA%VECT_FINT(2,n)=output%DATA%VECT_FINT(2,n) + a(2,n)
90 output%DATA%VECT_FINT(3,n)=output%DATA%VECT_FINT(3,n) + a(3,n)
91 ENDDO
92 ENDIF
93 IF(anim_v(6)+outp_v(6)+h3d_data%N_VECT_FEXT > 0) THEN
94 !if FEXT is requested (ANIM or OUTP or H3D)
95#include "vectorize.inc"
96 DO n=nodft,nodlt
97 output%DATA%VECT_FEXT(1,n)=output%DATA%VECT_FEXT(1,n) - a(1,n)
98 output%DATA%VECT_FEXT(2,n)=output%DATA%VECT_FEXT(2,n) - a(2,n)
99 output%DATA%VECT_FEXT(3,n)=output%DATA%VECT_FEXT(3,n) - a(3,n)
100 ENDDO
101 ENDIF
102C-----------------------------------------------
103 RETURN
104 END SUBROUTINE forani2
#define my_real
Definition cppsort.cpp:32
subroutine forani2(output, a, nodft, nodlt, h3d_data)
Definition forani2.F:32