OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
m2lawt.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!|| m2lawt ../engine/source/materials/mat/mat002/m2lawt.F
25!||--- called by ------------------------------------------------------
26!|| tforc3 ../engine/source/elements/truss/tforc3.F
27!||--- uses -----------------------------------------------------
28!|| matparam_def_mod ../common_source/modules/mat_elem/matparam_def_mod.F90
29!||====================================================================
30 SUBROUTINE m2lawt(mat_param ,
31 1 GEO, OFF, FOR, EINT, AREA,
32 2 AL0, PLA, STI, MGM, NGL,
33 3 EPS, AL, NEL)
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)
59 my_real
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
176 END
subroutine area(d1, x, x2, y, y2, eint, stif0)
subroutine ymax(idn, fac, npc, pld, stiffmin, stiffmax, stiffini, stiffavg)
Definition law100_upd.F:274
subroutine m2lawt(mat_param, geo, off, for, eint, area, al0, pla, sti, mgm, ngl, eps, al, nel)
Definition m2lawt.F:34
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
for(i8=*sizetab-1;i8 >=0;i8--)