OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
volint.F File Reference
#include "implicit_f.inc"
#include "scr08_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine volint (vol)

Function/Subroutine Documentation

◆ volint()

subroutine volint ( intent(out) vol)

Definition at line 37 of file volint.F.

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
#define my_real
Definition cppsort.cpp:32