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

Go to the source code of this file.

Functions/Subroutines

subroutine tetra4v (det, x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4)

Function/Subroutine Documentation

◆ tetra4v()

subroutine tetra4v ( det,
x1,
x2,
x3,
x4,
y1,
y2,
y3,
y4,
z1,
z2,
z3,
z4 )

Definition at line 28 of file tetra4v.F.

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