OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
a4mass3.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!|| a4mass3 ../engine/source/elements/solid/solide4/a4mass3.F
25!||--- called by ------------------------------------------------------
26!|| multi_fvm2fem ../engine/source/multifluid/multi_fvm2fem.F
27!|| s4forc3 ../engine/source/elements/solid/solide4/s4forc3.F
28!||====================================================================
29 SUBROUTINE a4mass3(
30 1 MS, RHO, VOLU, NC1,
31 2 NC2, NC3, NC4, MSNF,
32 3 OFF, NEL)
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36#include "comlock.inc"
37C-----------------------------------------------
38C G l o b a l P a r a m e t e r s
39C-----------------------------------------------
40#include "mvsiz_p.inc"
41C-----------------------------------------------
42C D u m m y A r g u m e n t s
43C-----------------------------------------------
44 INTEGER, INTENT(IN) :: NEL
45C REAL
46 my_real
47 . ms(*), rho(*),volu(*),msnf(*),off(*)
48 INTEGER NC1(*),NC2(*),NC3(*),NC4(*)
49C-----------------------------------------------
50C C o m m o n B l o c k s
51C-----------------------------------------------
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER I
56C REAL
57 my_real
58 . dmass(mvsiz)
59C-----------------------------------------------
60 DO i=1,nel
61 dmass(i)=fourth*rho(i)*volu(i)*off(i)
62 ENDDO
63C
64#include "lockon.inc"
65 DO i=1,nel
66 ms(nc1(i))=ms(nc1(i)) + dmass(i)
67 msnf(nc1(i))=msnf(nc1(i)) + dmass(i)
68 ENDDO
69#include "lockoff.inc"
70C
71#include "lockon.inc"
72 DO i=1,nel
73 msnf(nc2(i))=msnf(nc2(i)) + dmass(i)
74 ms(nc2(i))=ms(nc2(i)) + dmass(i)
75 ENDDO
76#include "lockoff.inc"
77C
78#include "lockon.inc"
79 DO i=1,nel
80 ms(nc3(i))=ms(nc3(i)) + dmass(i)
81 msnf(nc3(i))=msnf(nc3(i)) + dmass(i)
82 ENDDO
83#include "lockoff.inc"
84C
85#include "lockon.inc"
86 DO i=1,nel
87 ms(nc4(i))=ms(nc4(i)) + dmass(i)
88 msnf(nc4(i))=msnf(nc4(i)) + dmass(i)
89 ENDDO
90#include "lockoff.inc"
91C
92C
93 RETURN
94 END
subroutine a4mass3(ms, rho, volu, nc1, nc2, nc3, nc4, msnf, off, nel)
Definition a4mass3.F:33