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 30 of file seatbelt_reduction_factor.F.

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