OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
dampvref_sum6.F File Reference
#include "implicit_f.inc"
#include "comlock.inc"
#include "lockon.inc"
#include "lockoff.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine dampvref_sum6 (igrnod, v, a, ms, weight, nd, nnod, igr, suml6, ngrnod, numnod, ndamp)

Function/Subroutine Documentation

◆ dampvref_sum6()

subroutine dampvref_sum6 ( type (group_), dimension(ngrnod), intent(in) igrnod,
dimension(3,numnod), intent(in) v,
dimension(3,numnod), intent(in) a,
dimension(numnod), intent(in) ms,
integer, dimension(numnod), intent(in) weight,
integer, intent(in) nd,
integer, intent(in) nnod,
integer, intent(in) igr,
double precision, dimension(7,6,ndamp), intent(inout) suml6,
integer, intent(in) ngrnod,
integer, intent(in) numnod,
integer, intent(in) ndamp )

Definition at line 32 of file dampvref_sum6.F.

35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE groupdef_mod
39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43#include "comlock.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER, INTENT(IN) :: WEIGHT(NUMNOD),ND,NNOD,IGR,NGRNOD,NUMNOD,NDAMP
48 my_real, INTENT(IN) :: v(3,numnod),a(3,numnod),ms(numnod)
49 DOUBLE PRECISION, INTENT(INOUT) :: SUML6(7,6,NDAMP)
50C-----------------------------------------------
51 TYPE (GROUP_),DIMENSION(NGRNOD), INTENT(IN) :: IGRNOD
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER I,K,N
56 INTEGER INDEX(NNOD),NINDEX
57 my_real :: f1(nnod),f2(nnod),f3(nnod),f4(nnod),f5(nnod),
58 . f6(nnod),f7(nnod)
59 DOUBLE PRECISION :: SUML6_L(7,6)
60C-----------------------------------------------
61C
62C======================================================================|
63C Parithon computation of reference velocity for /DAMP/VREF
64C======================================================================|
65C
66 suml6_l(1:7,1:6) = zero
67C
68 nindex = 0
69 DO n=1,nnod
70 i=igrnod(igr)%ENTITY(n)
71 nindex = nindex+1
72 index(nindex) = i
73 f1(nindex) = ms(i)*v(1,i)*weight(i)
74 f2(nindex) = ms(i)*v(2,i)*weight(i)
75 f3(nindex) = ms(i)*v(3,i)*weight(i)
76 f4(nindex) = ms(i)*a(1,i)*weight(i)
77 f5(nindex) = ms(i)*a(2,i)*weight(i)
78 f6(nindex) = ms(i)*a(3,i)*weight(i)
79 f7(nindex) = ms(i)*weight(i)
80 ENDDO
81C
82 CALL sum_6_float(1, nindex, f1, suml6_l(1,1), 7)
83 CALL sum_6_float(1, nindex, f2, suml6_l(2,1), 7)
84 CALL sum_6_float(1, nindex, f3, suml6_l(3,1), 7)
85 CALL sum_6_float(1, nindex, f4, suml6_l(4,1), 7)
86 CALL sum_6_float(1, nindex, f5, suml6_l(5,1), 7)
87 CALL sum_6_float(1, nindex, f6, suml6_l(6,1), 7)
88 CALL sum_6_float(1, nindex, f7, suml6_l(7,1), 7)
89C
90#include "lockon.inc"
91 DO k = 1, 6
92 suml6(1,k,nd) = suml6(1,k,nd)+suml6_l(1,k)
93 suml6(2,k,nd) = suml6(2,k,nd)+suml6_l(2,k)
94 suml6(3,k,nd) = suml6(3,k,nd)+suml6_l(3,k)
95 suml6(4,k,nd) = suml6(4,k,nd)+suml6_l(4,k)
96 suml6(5,k,nd) = suml6(5,k,nd)+suml6_l(5,k)
97 suml6(6,k,nd) = suml6(6,k,nd)+suml6_l(6,k)
98 suml6(7,k,nd) = suml6(7,k,nd)+suml6_l(7,k)
99 END DO
100#include "lockoff.inc"
101C
102 RETURN
103C
#define my_real
Definition cppsort.cpp:32
subroutine sum_6_float(jft, jlt, f, f6, n)
Definition parit.F:64