OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
ig3daverage.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!||====================================================================
25!|| ig3daverage ../engine/source/elements/ige3d/ig3daverage.F
26!||--- called by ------------------------------------------------------
27!|| ig3duforc3 ../engine/source/elements/ige3d/ig3duforc3.F
28!||====================================================================
29 SUBROUTINE ig3daverage(
30 1 SIG, SIGG, VOL0, VOL0G,
31 2 RHO, EINT, EINTG, RHOG,
32 3 VOL, VOLG, EPLAS, EPLASG,
33 4 G_PLA, EPSD, EPSDG, NEL,
34 5 ISRAT)
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C G l o b a l P a r a m e t e r s
41C-----------------------------------------------
42#include "mvsiz_p.inc"
43C-----------------------------------------------
44C C o m m o n B l o c k s
45C-----------------------------------------------
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 INTEGER, INTENT(IN) :: ISRAT
50 INTEGER G_PLA,NEL
51 my_real
52 . SIG(NEL,6), SIGG(NEL,6), VOL(*), VOLG(*) , VOL0(*),
53 . VOL0G(*), EINT(*) , RHO(*), EINTG(*), RHOG(*),
54 . eplas(*), eplasg(*), epsd(*),epsdg(*)
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER I
59 my_real
60 . WIP(MVSIZ)
61C-----------------------------------------------
62c
63 DO i=1,nel
64 wip(i) = vol(i)/volg(i)
65 sigg(i,1) = sigg(i,1) + wip(i) * sig(i,1)
66 sigg(i,2) = sigg(i,2) + wip(i) * sig(i,2)
67 sigg(i,3) = sigg(i,3) + wip(i) * sig(i,3)
68 sigg(i,4) = sigg(i,4) + wip(i) * sig(i,4)
69 sigg(i,5) = sigg(i,5) + wip(i) * sig(i,5)
70 sigg(i,6) = sigg(i,6) + wip(i) * sig(i,6)
71 rhog(i) = rhog(i) + wip(i) * rho(i)
72 eintg(i) = eintg(i) + eint(i) * vol0(i)/vol0g(i)
73 ENDDO
74 IF (israt > 0) THEN
75 DO i=1,nel
76 epsdg(i) = epsdg(i) + wip(i) * epsd(i)
77 ENDDO
78 ENDIF
79 IF (g_pla > 0) THEN
80 DO i=1,nel
81 eplasg(i) = eplasg(i) + wip(i) * eplas(i)
82 ENDDO
83 ENDIF
84c
85C-----------
86 RETURN
87 END
subroutine ig3daverage(sig, sigg, vol0, vol0g, rho, eint, eintg, rhog, vol, volg, eplas, eplasg, g_pla, epsd, epsdg, nel, israt)
Definition ig3daverage.F:35