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

Go to the source code of this file.

Functions/Subroutines

subroutine slen (x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, j, area, aream, nel)

Function/Subroutine Documentation

◆ slen()

subroutine slen ( x1,
x2,
x3,
x4,
y1,
y2,
y3,
y4,
z1,
z2,
z3,
z4,
integer j,
area,
aream,
integer, intent(in) nel )

Definition at line 29 of file slen.F.

34C
35C NOTE : SURFACE OF FACETS IS AVAILABLE FOR ALE ELEMENTS
36C
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C G l o b a l P a r a m e t e r s
43C-----------------------------------------------
44#include "mvsiz_p.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER, INTENT(IN) :: NEL
49 INTEGER J
51 . x1(*), x2(*), x3(*), x4(*), y1(*), y2(*), y3(*), y4(*),
52 . z1(*), z2(*), z3(*), z4(*),area(mvsiz,6),aream(*)
53C-----------------------------------------------
54C C o m m o n B l o c k s
55C-----------------------------------------------
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER I
61 . x13, y13, z13,
62 . x24, y24, z24,
63 . fs1, fs2, fs3,
64 . ft1, ft2, ft3,
65 . e, f, g
66C-----------------------------------------------
67 DO 10 i=1,nel
68 x13=x3(i) - x1(i)
69 x24=x4(i) - x2(i)
70 y13=y3(i) - y1(i)
71 y24=y4(i) - y2(i)
72 z13=z3(i) - z1(i)
73 z24=z4(i) - z2(i)
74C
75 fs1=x13-x24
76 ft1=x13+x24
77 fs2=y13-y24
78 ft2=y13+y24
79 fs3=z13-z24
80 ft3=z13+z24
81C
82 e=fs1*fs1+fs2*fs2+fs3*fs3
83 f=fs1*ft1+fs2*ft2+fs3*ft3
84 g=ft1*ft1+ft2*ft2+ft3*ft3
85 area(i,j) =e*g-f*f
86 aream(i)= max(area(i,j),aream(i))
87 10 CONTINUE
88 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine area(d1, x, x2, y, y2, eint, stif0)
#define max(a, b)
Definition macros.h:21