OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
seatbelt_reduction_factor.F File Reference
#include "implicit_f.inc"
#include "mvsiz_p.inc"
#include "com04_c.inc"
#include "vectorize.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine seatbelt_reduction_factor (elbuf_str, jft, jlt, ixc, nel, x, nft)

Function/Subroutine Documentation

◆ seatbelt_reduction_factor()

subroutine seatbelt_reduction_factor ( type (elbuf_struct_), intent(inout), target elbuf_str,
integer, intent(in) jft,
integer, intent(in) jlt,
integer, dimension(nixc,numelc), intent(in) ixc,
integer, intent(in) nel,
dimension(3,numnod), intent(in) x,
integer, intent(in) nft )

Definition at line 31 of file seatbelt_reduction_factor.F.

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
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21