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 ../starter/source/elements/solid/solide/slen.F
25!||--- called by ------------------------------------------------------
26!|| s6cderi3 ../starter/source/elements/thickshell/solide6c/s6cderi3.F
27!|| sdlen3 ../starter/source/elements/solid/solide/sdlen3.F
28!||====================================================================
29 SUBROUTINE slen(X1,X2,X3,X4,Y1,Y2,Y3,Y4,Z1,Z2,Z3,Z4,J,
30 . AREA, AREAM)
31C-----------------------------------------------------------
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C G l o b a l P a r a m e t e r s
38C-----------------------------------------------
39#include "mvsiz_p.inc"
40C-----------------------------------------------
41C D u m m y A r g u m e n t s
42C-----------------------------------------------
43 INTEGER J
45 . x1(*), x2(*), x3(*), x4(*), y1(*), y2(*), y3(*), y4(*),
46 . z1(*), z2(*), z3(*), z4(*),
47 . area(6, *), aream(*)
48C-----------------------------------------------
49C C o m m o n B l o c k s
50C-----------------------------------------------
51#include "vect01_c.inc"
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER I
57 . x13(mvsiz), x24(mvsiz), y13(mvsiz),
58 . y24(mvsiz), z13(mvsiz), z24(mvsiz),
59 . fs1(mvsiz), fs2(mvsiz), fs3(mvsiz), ft1(mvsiz), ft2(mvsiz),
60 . ft3(mvsiz), e(mvsiz), f(mvsiz), g(mvsiz)
61C-----------------------------------------------------------------------
62C
63 DO i=lft,llt
64 x13(i) = x3(i)-x1(i)
65 x24(i) = x4(i)-x2(i)
66 y13(i) = y3(i)-y1(i)
67 y24(i) = y4(i)-y2(i)
68 z13(i) = z3(i)-z1(i)
69 z24(i) = z4(i)-z2(i)
70 fs1(i) = x13(i)-x24(i)
71 ft1(i) = x13(i)+x24(i)
72 fs2(i) = y13(i)-y24(i)
73 ft2(i) = y13(i)+y24(i)
74 fs3(i) = z13(i)-z24(i)
75 ft3(i) = z13(i)+z24(i)
76 e(i) = fs1(i)*fs1(i)+fs2(i)*fs2(i)+fs3(i)*fs3(i)
77 f(i) = fs1(i)*ft1(i)+fs2(i)*ft2(i)+fs3(i)*ft3(i)
78 g(i) = ft1(i)*ft1(i)+ft2(i)*ft2(i)+ft3(i)*ft3(i)
79 area(j,i) = e(i)*g(i)-f(i)*f(i)
80 aream(i) = max(area(j,i),aream(i))
81 END DO
82
83 RETURN
84 END
#define my_real
Definition cppsort.cpp:32
subroutine area(d1, x, x2, y, y2, eint, stif0)
#define max(a, b)
Definition macros.h:21
subroutine slen(x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, j, area, aream)
Definition slen.F:31