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