OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
volint.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!|| volint ../starter/source/interfaces/inter3d1/volint.F
25!||--- called by ------------------------------------------------------
26!|| i11sti3 ../starter/source/interfaces/inter3d1/i11sti3.F
27!|| i20sti3 ../starter/source/interfaces/inter3d1/i20sti3.F
28!|| i20sti3e ../starter/source/interfaces/inter3d1/i20sti3.F
29!|| i24gapm ../starter/source/interfaces/inter3d1/i24sti3.F
30!|| i24ll_kg ../starter/source/interfaces/inter3d1/i24sti3.F
31!|| i25gapm ../starter/source/interfaces/inter3d1/i25sti3.F
32!|| i2buc1 ../starter/source/interfaces/inter3d1/i2buc1.F
33!|| i2cor3 ../starter/source/interfaces/inter3d1/i2cor3.F
34!|| i3sti3 ../starter/source/interfaces/inter3d1/i3sti3.F
35!|| i7sti3 ../starter/source/interfaces/inter3d1/i7sti3.F
36!||====================================================================
37 SUBROUTINE volint(VOL)
38C-----------------------------------------------
39C COMPUTE HEXAHEDRON VOLUME
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47#include "scr08_c.inc"
48C-----------------------------------------------
49C D u m m y A r g u m e n t s
50C-----------------------------------------------
51 my_real, INTENT(OUT) :: vol
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 my_real x17, x28, x35, x46,
56 . y17, y28, y35, y46,
57 . z17, z28, z35, z46
58 my_real a17, a28, b17, b28, c17, c28
59 my_real jac1, jac2, jac3, jac4, jac5, jac6, jac7, jac8, jac9
60 my_real jac_59_68, jac_67_49, jac_48_57
61C-------------------------------------------------------
62 x17 = xc(7)-xc(1)
63 x28 = xc(8)-xc(2)
64 x35 = xc(5)-xc(3)
65 x46 = xc(6)-xc(4)
66C
67 y17 = yc(7)-yc(1)
68 y28 = yc(8)-yc(2)
69 y35 = yc(5)-yc(3)
70 y46 = yc(6)-yc(4)
71C
72 z17 = zc(7)-zc(1)
73 z28 = zc(8)-zc(2)
74 z35 = zc(5)-zc(3)
75 z46 = zc(6)-zc(4)
76C
77 jac4 = x17 + x28 - x35 - x46
78 jac5 = y17 + y28 - y35 - y46
79 jac6 = z17 + z28 - z35 - z46
80C
81 a17 = x17 + x46
82 a28 = x28 + x35
83 b17 = y17 + y46
84 b28 = y28 + y35
85 c17 = z17 + z46
86 c28 = z28 + z35
87C
88 jac7 = a17 + a28
89 jac8 = b17 + b28
90 jac9 = c17 + c28
91 jac1 = a17 - a28
92 jac2 = b17 - b28
93 jac3 = c17 - c28
94C
95 jac_59_68 = jac5 * jac9 - jac6 * jac8
96 jac_67_49 = jac6 * jac7 - jac4 * jac9
97 jac_48_57 = jac4 * jac8 - jac5 * jac7
98C
99 vol = zep015625 * (jac1 * jac_59_68 + jac2 * jac_67_49 + jac3 * jac_48_57)
100
101 RETURN
102 END
#define my_real
Definition cppsort.cpp:32
subroutine volint(vol)
Definition volint.F:38