OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
m2lawt.F File Reference
#include "implicit_f.inc"
#include "comlock.inc"
#include "mvsiz_p.inc"
#include "param_c.inc"
#include "com08_c.inc"
#include "units_c.inc"
#include "scr17_c.inc"
#include "lockon.inc"
#include "lockoff.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine m2lawt (mat_param, geo, off, for, eint, area, al0, pla, sti, mgm, ngl, eps, al, nel)

Function/Subroutine Documentation

◆ m2lawt()

subroutine m2lawt ( type (matparam_struct_), intent(in) mat_param,
geo,
off,
for,
eint,
area,
al0,
pla,
sti,
integer, dimension(mvsiz) mgm,
integer, dimension(mvsiz) ngl,
eps,
al,
integer, intent(in) nel )

Definition at line 30 of file m2lawt.F.

34!-----------------------------------------------
35! m o d u l e s
36!-----------------------------------------------
37 use matparam_def_mod
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42#include "comlock.inc"
43C-----------------------------------------------
44C G l o b a l P a r a m e t e r s
45C-----------------------------------------------
46#include "mvsiz_p.inc"
47C-----------------------------------------------
48C C o m m o n B l o c k s
49C-----------------------------------------------
50#include "param_c.inc"
51#include "com08_c.inc"
52#include "units_c.inc"
53#include "scr17_c.inc"
54C-----------------------------------------------
55C D u m m y A r g u m e n t s
56C-----------------------------------------------
57 INTEGER, INTENT(IN) :: NEL
58 INTEGER MGM(MVSIZ),NGL(MVSIZ)
60 . geo(npropg,*),off(*),for(*),eint(*),
61 . area(*),al0(*),pla(*),sti(*),eps(mvsiz),al(mvsiz)
62 type (matparam_struct_) ,intent(in) :: mat_param
63C-----------------------------------------------
64C L o c a l V a r i a b l e s
65C-----------------------------------------------
66 INTEGER I
67 INTEGER ICC(MVSIZ)
68 my_real yma
69 my_real ym(mvsiz),gap(mvsiz),ca(mvsiz),cb(mvsiz),cn(mvsiz),ymax(mvsiz),
70 . epmx(mvsiz),yld(mvsiz),ff(mvsiz),hh(mvsiz),aa(mvsiz),pr(mvsiz)
71C-----------------------------------------------
72C E x t e r n a l F u n c t i o n s
73C-----------------------------------------------
74 my_real :: cvmgt
75C-----------------------------------------------
76 !J-C formulation only
77
78 DO i=1,nel
79 ym(i) = mat_param%young
80 pr(i) = mat_param%nu
81 icc(i) = mat_param%iparam(2)
82 ca(i) = mat_param%uparam(1)
83 cb(i) = mat_param%uparam(2)
84 cn(i) = mat_param%uparam(3)
85 epmx(i)= mat_param%uparam(4)
86 ymax(i)= mat_param%uparam(5)
87 gap(i) = geo(2,mgm(i))
88 ENDDO
89c
90 DO i=1,nel
91 IF (gap(i) > zero .AND. al(i) <= (al0(i)-gap(i))) off(i)=one
92 ENDDO
93c
94 DO i=1,nel
95 eint(i)=eint(i)+for(i)*eps(i)*al(i)*dt1*half
96 ENDDO
97c
98 DO i=1,nel
99 area(i)=area(i)*(one - two*pr(i)*eps(i)*dt1*off(i))
100 ENDDO
101c
102 DO i=1,nel
103 yma = ym(i)*area(i)
104 for(i)=for(i)+yma*eps(i)*dt1
105 sti(i)=yma / al(i)
106 ENDDO
107c
108 DO i=1,nel
109 yld(i)=ca(i)+cb(i)*pla(i)**cn(i)
110 ENDDO
111C-----------------------
112C MODULE ECROUISSAGE
113C-----------------------
114 DO i=1,nel
115 IF (cn(i) == one) THEN
116 hh(i)= cb(i)
117 ELSE
118 IF (pla(i) /= zero) THEN
119 hh(i)= cb(i)*cn(i)/pla(i)**(one -cn(i))
120 ELSE
121 hh(i)=zero
122 ENDIF
123 ENDIF
124 ENDDO
125c
126 DO i=1,nel
127 aa(i) = (ym(i)+hh(i))*area(i)
128 yld(i) = min(yld(i),ymax(i))
129 ff(i) = abs(for(i))-yld(i)*area(i)
130 ff(i) = max(zero,ff(i))
131 ENDDO
132c
133 DO i=1,nel
134 pla(i)=pla(i)+ff(i)/aa(i)
135 ENDDO
136c
137 DO i=1,nel
138 for(i)=cvmgt(sign(yld(i)*area(i),for(i)),for(i),ff(i) > zero)
139 ENDDO
140C--------------------------------
141C ductile failure test
142C-------------------------------
143 DO i=1,nel
144 IF (off(i) < em01) off(i)=zero
145 IF (off(i) < one) off(i)=off(i)*four_over_5
146 ENDDO
147c
148 DO i=1,nel
149 IF (off(i) < one) cycle
150 IF (pla(i) < epmx(i)) cycle
151 off(i)=off(i)*four_over_5
152 idel7nok = 1
153 ENDDO
154c
155 DO i=1,nel
156 IF (off(i) /= four_over_5) cycle
157#include "lockon.inc"
158 WRITE(iout,1000) ngl(i)
159 WRITE(istdo,1100) ngl(i),tt
160#include "lockoff.inc"
161 ENDDO
162c
163 DO i=1,nel
164 sti(i)=sti(i)*off(i)
165 for(i)= for(i)*off(i)
166 ENDDO
167c
168 DO i=1,nel
169 eint(i)=eint(i)+for(i)*eps(i)*al(i)*dt1*half
170 ENDDO
171C
172 1000 FORMAT(1x,'-- RUPTURE OF TRUSS ELEMENT NUMBER ',i10)
173 1100 FORMAT(1x,'-- rupture of truss element :',I10,' at time :',G11.4)
174C-----------------------------------------------
175 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine area(d1, x, x2, y, y2, eint, stif0)
subroutine ymax(idn, fac, npc, pld, stiffmin, stiffmax, stiffini, stiffavg)
Definition law100_upd.F:274
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
for(i8=*sizetab-1;i8 >=0;i8--)