OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
tetra4v.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!|| tetra4v ../engine/source/elements/solid/solide/tetra4v.F
25!||--- called by ------------------------------------------------------
26!|| deges4v ../engine/source/elements/solid/solide/deges4v.F
27!||====================================================================
28 SUBROUTINE tetra4v(DET,
29 . X1, X2, X3, X4,
30 . Y1, Y2, Y3, Y4,
31 . Z1, Z2, Z3, Z4)
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C D u m m y A r g u m e n t s
38C-----------------------------------------------
40 . det,
41 . x1, x2, x3, x4, y1, y2, y3, y4,z1, z2, z3, z4
42C-----------------------------------------------
43C L o c a l V a r i a b l e s
44C-----------------------------------------------
45C 12
47 . x41, y41, z41, x42, y42, z42, x43, y43, z43
49 . rx, ry, rz, sx, sy, sz,tx, ty, tz,
50 . tsx, tsy,tsz
51C-----------------------------------------------
52 x43 = x4 - x3
53 y43 = y4 - y3
54 z43 = z4 - z3
55 x41 = x4 - x1
56 y41 = y4 - y1
57 z41 = z4 - z1
58 x42 = x4 - x2
59 y42 = y4 - y2
60 z42 = z4 - z2
61C
62 rx = -x41
63 ry = -y41
64 rz = -z41
65C
66 sx = -x42
67 sy = -y42
68 sz = -z42
69C
70 tx = -x43
71 ty = -y43
72 tz = -z43
73C
74 tsx = y43*z42 - y42*z43
75 tsy = z43*x42 - z42*x43
76 tsz = x43*y42 - x42*y43
77C------V=r*(s^t)/6
78 det = abs(rx*tsx + ry*tsy + rz*tsz)*one_over_6
79C
80 RETURN
81 END
#define my_real
Definition cppsort.cpp:32
subroutine tetra4v(det, x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4)
Definition tetra4v.F:32