OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
slen.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!|| slen ../engine/source/elements/solid/solide/slen.F
25!||--- called by ------------------------------------------------------
26!|| fdlen3 ../engine/source/elements/solid/solide/fdlen3.F
27!|| sdlen3 ../engine/source/elements/solid/solide/sdlen3.F
28!||====================================================================
29 SUBROUTINE slen(
30 1 X1, X2, X3, X4,
31 2 Y1, Y2, Y3, Y4,
32 3 Z1, Z2, Z3, Z4,
33 4 J, AREA, AREAM, NEL)
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
50 my_real
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
60 my_real
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
89 END
subroutine slen(x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, j, area, aream, nel)
Definition slen.F:34
subroutine area(d1, x, x2, y, y2, eint, stif0)
#define max(a, b)
Definition macros.h:21