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-----------------------------------------------
45 INTEGER I
46C 12
48 . x41, y41, z41, x42, y42, z42, x43, y43, z43
50 . rx, ry, rz, sx, sy, sz,tx, ty, tz,
51 . tsx, tsy,tsz
52C-----------------------------------------------
53 x43 = x4 - x3
54 y43 = y4 - y3
55 z43 = z4 - z3
56 x41 = x4 - x1
57 y41 = y4 - y1
58 z41 = z4 - z1
59 x42 = x4 - x2
60 y42 = y4 - y2
61 z42 = z4 - z2
62C
63 rx = -x41
64 ry = -y41
65 rz = -z41
66C
67 sx = -x42
68 sy = -y42
69 sz = -z42
70C
71 tx = -x43
72 ty = -y43
73 tz = -z43
74C
75 tsx = y43*z42 - y42*z43
76 tsy = z43*x42 - z42*x43
77 tsz = x43*y42 - x42*y43
78C------V=r*(s^t)/6
79 det = abs(rx*tsx + ry*tsy + rz*tsz)*one_over_6
80C
81 RETURN
#define my_real
Definition cppsort.cpp:32