OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
fsigtrini.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!|| fsigtrini ../starter/source/constraints/fxbody/fsigtrini.F
25!||--- called by ------------------------------------------------------
26!|| fxbsini ../starter/source/constraints/fxbody/fxbsini.F
27!||====================================================================
28 SUBROUTINE fsigtrini(FXBELM, IPARG , X , PM , IXT ,
29 . GEO , FXBMOD, FXBSIG, NELT)
30C-----------------------------------------------
31C I m p l i c i t T y p e s
32C-----------------------------------------------
33#include "implicit_f.inc"
34C-----------------------------------------------
35C G l o b a l P a r a m e t e r s
36C-----------------------------------------------
37#include "mvsiz_p.inc"
38C-----------------------------------------------
39C C o m m o n B l o c k s
40C-----------------------------------------------
41#include "param_c.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER FXBELM(*), IPARG(NPARG,*), IXT(NIXT,*), NELT
47 . fxbsig(*), x(3,*), pm(npropm,*), fxbmod(*),
48 . geo(npropg,*)
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 INTEGER IG, OFFSET, LAST, NFT, NFS, I, NG, IEL,
53 . mat, prop, n1, n2
55 . area, e, x1, y1, z1, x2, y2, z2, l0, d11, d12, d13,
56 . d21, d22, d23, xc1, yc1, zc1, xc2, yc2, zc2, lc
57C-----------------------------------------------
58C
59 DO ig=1,nelt,mvsiz
60 offset=ig-1
61 last=min(mvsiz,nelt-offset)
62 nft=offset*7
63 nfs=offset*2
64 DO i=1,last
65 ng=fxbelm(nft+7*(i-1)+1)
66 iel=iparg(3,ng)+fxbelm(nft+7*(i-1)+2)
67 mat=ixt(1,iel)
68 prop=ixt(4,iel)
69 area=geo(1,prop)
70 e=pm(20,mat)
71 x1=x(1,ixt(2,iel))
72 y1=x(2,ixt(2,iel))
73 z1=x(3,ixt(2,iel))
74 x2=x(1,ixt(3,iel))
75 y2=x(2,ixt(3,iel))
76 z2=x(3,ixt(3,iel))
77 l0=sqrt((x2-x1)**2+(y2-y1)**2+(z2-z1)**2)
78 n1=fxbelm(nft+7*(i-1)+3)
79 n2=fxbelm(nft+7*(i-1)+4)
80 d11=fxbmod(6*(n1-1)+1)
81 d12=fxbmod(6*(n1-1)+2)
82 d13=fxbmod(6*(n1-1)+3)
83 d21=fxbmod(6*(n2-1)+1)
84 d22=fxbmod(6*(n2-1)+2)
85 d23=fxbmod(6*(n2-1)+3)
86 xc1=x1+d11
87 yc1=y1+d12
88 zc1=z1+d13
89 xc2=x2+d21
90 yc2=y2+d22
91 zc2=z2+d23
92 lc=sqrt((xc2-xc1)**2+(yc2-yc1)**2+(zc2-zc1)**2)
93C
94 fxbsig(nfs+2*(i-1)+1)=e*area*(lc-l0)
95 fxbsig(nfs+2*(i-1)+2)=half*e*area*(lc-l0)**2
96 ENDDO
97 ENDDO
98C
99 RETURN
100 END SUBROUTINE fsigtrini
101
#define my_real
Definition cppsort.cpp:32
subroutine fsigtrini(fxbelm, iparg, x, pm, ixt, geo, fxbmod, fxbsig, nelt)
Definition fsigtrini.F:30
subroutine area(d1, x, x2, y, y2, eint, stif0)
#define min(a, b)
Definition macros.h:20