OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
seatbelt_reduction_factor.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!|| seatbelt_reduction_factor ../engine/source/tools/seatbelts/seatbelt_reduction_factor.F
25!||--- called by ------------------------------------------------------
26!|| forintc ../engine/source/elements/forintc.F
27!||--- uses -----------------------------------------------------
28!|| elbufdef_mod ../common_source/modules/mat_elem/elbufdef_mod.F90
29!|| element_mod ../common_source/modules/elements/element_mod.F90
30!||====================================================================
31 SUBROUTINE seatbelt_reduction_factor(ELBUF_STR,JFT,JLT,IXC,NEL,X,NFT)
32C-----------------------------------------------
33C M o d u l e s
34C-----------------------------------------------
35 USE elbufdef_mod
36 use element_mod , only : nixc
37C----6------------------------------------------
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 C o m m o n B l o c k s
47C-----------------------------------------------
48#include "com04_c.inc"
49C-----------------------------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 INTEGER, INTENT(IN) :: IXC(NIXC,NUMELC),NEL,JFT,JLT,NFT
53 my_real, INTENT(IN) :: x(3,numnod)
54 TYPE (ELBUF_STRUCT_), INTENT(INOUT), TARGET :: ELBUF_STR
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER I,J,K,N1,N2,N3,N4,POS,POS_B,NEL_L,CORES(MVSIZ+1),FLAG,NODE_CORES_DIR2(4)
59 my_real
60 . dist,distb
61 TYPE(g_bufel_) ,POINTER :: GBUF
62C---------------------------------------------------------
63C
64 gbuf => elbuf_str%GBUF
65C
66C-----------------------------------------------------------------------
67C Computation of logarthmic reduction factor of stress for seatbelts
68C-----------------------------------------------------------------------
69C
70 nel_l = 0
71C
72#include "vectorize.inc"
73 DO i=jft,jlt
74 flag = min(1,abs(gbuf%UPDATE(i)))
75 nel_l = nel_l + flag
76 cores(1+nel_l*flag) = i
77 ENDDO
78C
79 DO k=1,nel_l
80C
81 i = cores(k+1)
82 j = nft + i
83C
84C-- Element is partially activated - scaling factor in mulawc between 0.0 and 1.0
85 IF (gbuf%UPDATE(i) /= zero) THEN
86C
87 IF (gbuf%ADD_NODE(i) == ixc(3,j)) THEN
88C-- dir1 is N1 N2
89 node_cores_dir2(1) = 4
90 node_cores_dir2(2) = 3
91 node_cores_dir2(3) = 2
92 node_cores_dir2(4) = 1
93 ELSE
94C-- dir1 is N1 N4
95 node_cores_dir2(1) = 2
96 node_cores_dir2(2) = 1
97 node_cores_dir2(3) = 4
98 node_cores_dir2(4) = 3
99 ENDIF
100C
101 pos = abs(gbuf%UPDATE(i))
102 pos_b = node_cores_dir2(pos)
103 n1 = ixc(1+pos,j)
104 n2 = gbuf%ADD_NODE(nel*pos+i)
105 n3 = ixc(1+pos_b,j)
106 n4 = gbuf%ADD_NODE(nel*pos_b+i)
107C
108 dist = sqrt(max(em20,(x(1,n1)-x(1,n2))**2+(x(2,n1)-x(2,n2))**2+(x(3,n1)-x(3,n2))**2))
109 distb = sqrt(max(em20,(x(1,n3)-x(1,n4))**2+(x(2,n3)-x(2,n4))**2+(x(3,n3)-x(3,n4))**2))
110 dist = min(dist,distb)
111 gbuf%INTVAR(i) = log(one + 1.72*dist/gbuf%INTVAR(nel+i))
112 gbuf%INTVAR(i) = max(zero,gbuf%INTVAR(i))
113 gbuf%INTVAR(i) = min(one,gbuf%INTVAR(i))
114C
115 ENDIF
116C
117 ENDDO
118C
119 RETURN
120 END
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
subroutine seatbelt_reduction_factor(elbuf_str, jft, jlt, ixc, nel, x, nft)