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