OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
dampvref_sum6.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!|| dampvref_sum6 ../engine/source/assembly/dampvref_sum6.F
25!||--- called by ------------------------------------------------------
26!|| damping_vref ../engine/source/assembly/damping_vref.F
27!||--- calls -----------------------------------------------------
28!|| sum_6_float ../engine/source/system/parit.F
29!||--- uses -----------------------------------------------------
30!|| groupdef_mod ../common_source/modules/groupdef_mod.F
31!||====================================================================
32 SUBROUTINE dampvref_sum6(IGRNOD,V,A,MS,WEIGHT,
33 . ND,NNOD,IGR,SUML6,NGRNOD,
34 . NUMNOD,NDAMP)
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
104 END
subroutine dampvref_sum6(igrnod, v, a, ms, weight, nd, nnod, igr, suml6, ngrnod, numnod, ndamp)
subroutine sum_6_float(jft, jlt, f, f6, n)
Definition parit.F:64