OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
qmasi2.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!|| qmasi2 ../starter/source/elements/solid_2d/quad/qmasi2.F
25!||--- called by ------------------------------------------------------
26!|| binit2 ../starter/source/ale/bimat/binit2.F
27!|| q4init2 ../starter/source/elements/solid_2d/quad4/q4init2.F
28!|| qinit2 ../starter/source/elements/solid_2d/quad/qinit2.F
29!||--- uses -----------------------------------------------------
30!||====================================================================
31 SUBROUTINE qmasi2(PM,MAT,MS,VOL,MSQ,WMA,IPART,PARTSAV,
32 . IX1, IX2, IX3, IX4 ,X ,V)
33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36 USE ale_mod
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C G l o b a l P a r a m e t e r s
43C-----------------------------------------------
44#include "mvsiz_p.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
49 . pm(npropm,*), ms(*), vol(*),wma(*), msq(*), partsav(20, *),
50 . x(3,*),v(3,*)
51 INTEGER MAT(*),IPART(*), IX1(*), IX2(*), IX3(*), IX4(*)
52C-----------------------------------------------
53C C o m m o n B l o c k s
54C-----------------------------------------------
55#include "vect01_c.inc"
56#include "param_c.inc"
57C-----------------------------------------------
58C L o c a l V a r i a b l e s
59C-----------------------------------------------
60 INTEGER I,IP ,I1 ,I2 ,I3 ,I4
62 . yy ,zz ,yz ,
63 . mass(mvsiz)
64C-----------------------------------------------------------------------
65 DO i=lft,llt
66 mass(i)=pm(89,mat(i))*vol(i)*fourth
67 ENDDO
68
69C calcul mass initiale en arithmetique // pour le spmd
70 DO i=lft,llt
71 msq(i)=mass(i)
72 ENDDO
73
74 IF(jale > 0 .AND. ale%GRID%NWALE == 4)THEN
75 DO i=lft,llt
76 wma(ix1(i))=wma(ix1(i))+one
77 wma(ix2(i))=wma(ix2(i))+one
78 wma(ix3(i))=wma(ix3(i))+one
79 wma(ix4(i))=wma(ix4(i))+one
80 ENDDO
81 ENDIF
82
83 DO i=lft,llt
84 ip = ipart(i)
85 partsav(1,ip)=partsav(1,ip) + four*mass(i)
86C
87 i1 = ix1(i)
88 i2 = ix2(i)
89 i3 = ix3(i)
90 i4 = ix4(i)
91 yy = (x(2,i1)*x(2,i1)+x(2,i2)*x(2,i2)
92 . +x(2,i3)*x(2,i3)+x(2,i4)*x(2,i4))
93 yz = (x(2,i1)*x(3,i1)+x(2,i2)*x(3,i2)
94 . +x(2,i3)*x(3,i3)+x(2,i4)*x(3,i4))
95 zz = (x(3,i1)*x(3,i1)+x(3,i2)*x(3,i2)
96 . +x(3,i3)*x(3,i3)+x(3,i4)*x(3,i4))
97c
98 partsav(5,ip) =partsav(5,ip) + mass(i) * (yy+zz)
99 partsav(6,ip) =partsav(6,ip) + mass(i) * zz
100 partsav(7,ip) =partsav(7,ip) + mass(i) * yy
101 partsav(9,ip) =partsav(9,ip) - mass(i) * yz
102C
103 partsav(12,ip)=partsav(12,ip) + mass(i)*
104 . (v(2,i1)+v(2,i2)+v(2,i3)+v(2,i4))
105 partsav(13,ip)=partsav(13,ip) + mass(i)*
106 . (v(3,i1)+v(3,i2)+v(3,i3)+v(3,i4))
107 partsav(14,ip)=partsav(14,ip) + half * mass(i) *
108 . (v(2,i1)*v(2,i1)+v(3,i1)*v(3,i1)
109 . +v(2,i2)*v(2,i2)+v(3,i2)*v(3,i2)
110 . +v(2,i3)*v(2,i3)+v(3,i3)*v(3,i3)
111 . +v(2,i4)*v(2,i4)+v(3,i4)*v(3,i4))
112C
113 ENDDO
114
115 RETURN
116
117 END
#define my_real
Definition cppsort.cpp:32
type(ale_) ale
Definition ale_mod.F:249
subroutine qmasi2(pm, mat, ms, vol, msq, wma, ipart, partsav, ix1, ix2, ix3, ix4, x, v)
Definition qmasi2.F:33