OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
forani3.F File Reference
#include "implicit_f.inc"
#include "scr14_c.inc"
#include "scr16_c.inc"
#include "vectorize.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine forani3 (output, a, ms, nodft, nodlt, h3d_data)

Function/Subroutine Documentation

◆ forani3()

subroutine forani3 ( type(output_) output,
a,
ms,
integer nodft,
integer nodlt,
type(h3d_database) h3d_data )

Definition at line 31 of file forani3.F.

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+FRAV)/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-----------------------------------------------
54 USE output_mod, only : output_
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 TYPE(OUTPUT_) :: OUTPUT
71 INTEGER NODFT,NODLT
72 my_real a(3,*),ms(*)
73 TYPE(H3D_DATABASE) :: H3D_DATA
74C-----------------------------------------------
75C L o c a l V a r i a b l e s
76C-----------------------------------------------
77 INTEGER N
78C-----------------------------------------------
79C S o u r c e L i n e s
80C-----------------------------------------------
81 IF(anim_v(6)+outp_v(6)+h3d_data%N_VECT_FEXT > 0) THEN
82 !if FEXT is requested (ANIM or OUTP or H3D)
83#include "vectorize.inc"
84 DO n=nodft,nodlt
85 output%DATA%VECT_FEXT(1,n)=output%DATA%VECT_FEXT(1,n) + a(1,n)*ms(n)
86 output%DATA%VECT_FEXT(2,n)=output%DATA%VECT_FEXT(2,n) + a(2,n)*ms(n)
87 output%DATA%VECT_FEXT(3,n)=output%DATA%VECT_FEXT(3,n) + a(3,n)*ms(n)
88 ENDDO
89 ENDIF
90C-----------------------------------------------
91 RETURN
#define my_real
Definition cppsort.cpp:32