OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
m2iter_imp.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!|| m2iter_imp ../engine/source/materials/mat/mat002/m2iter_imp.F
25!||--- called by ------------------------------------------------------
26!|| m2law ../engine/source/materials/mat/mat002/m2law.F
27!||====================================================================
28 SUBROUTINE m2iter_imp(
29 1 SIG, EPXE, AJ2, G,
30 2 CA, CB, CN, EPD,
31 3 SIGMX, EPMX, DPLA1, AK,
32 4 QH, SIGY, FISOKIN, NEL)
33c--------------------------------------------------------------
34c
35c -------------------
36c -- parameters in --
37c -------------------
38c
39c SIG = Elastic Predictor (Deviatoric Stress Tensor)
40c EPXE = previous time-step equivalent plastic strain (on input)
41c AJ2 = von Mises stress at elastic predictor
42c G = Kirhhoff's modulus (elastic shear modulus))
43c
44c CA, CB, CN = coefficients of the hardening rule
45c Sigma_Yield = CA + CB * (equiv_pl_strn)**CN
46c EPD = scalling fac due to velocity effect
47c SIGMX = max allowable von Mises stress
48c EPMX = max allowable equivalent plastic strain
49c FISOKIN= Mixed hardening ratio
50c --------------------
51c -- parameters out --
52c --------------------
53c
54c DPLA1 = equivalent plastic strain increment
55c EPXE = updated equivalent plastic strain (on output)
56c AK = current yield stress
57c SIGY = current yield stress (same as AK)
58c QH = current hardening parameter
59c
60c--------------------------------------------------------------
61c qz !! this subroutine will be optimized after
62C-----------------------------------------------
63C I m p l i c i t T y p e s
64C-----------------------------------------------
65#include "implicit_f.inc"
66C-----------------------------------------------
67C G l o b a l P a r a m e t e r s
68C-----------------------------------------------
69#include "mvsiz_p.inc"
70C-----------------------------------------------
71C D u m m y A r g u m e n t s
72C-----------------------------------------------
73 INTEGER :: NEL
74 my_real :: FISOKIN,EPMX,CB,CN
75 my_real ,DIMENSION(NEL) :: EPXE,EPD,G,AK,QH,AJ2,CA,SIGMX,DPLA1,SIGY
76 my_real ,DIMENSION(NEL,6) :: SIG
77C-----------------------------------------------
78C L o c a l V a r i a b l e s
79C-----------------------------------------------
80 INTEGER :: I, ITER, NITER
81 MY_REAL :: XSI,DXSI,LHS,RHS,ALPHA_RADIAL,BETA,G3(MVSIZ),HTOT
82C=======================================================================
83c ---- max number of iterations ----
84 niter = 10
85C
86 DO 100 i=1,nel
87C
88 xsi = zero
89C
90C -- PREVIOUS TIME-STEP EQUIVALENT PLASTIC STRAIN
91 epxe(i) = max(zero,epxe(i))
92 g3(i) =max(three*g(i),em15)
93C
94C -- PREVIOUS TIME-STEP YIELD STRESS !!!!! if EPXE=0!!!!!
95C AK(I)=CA(I)(I)+CB*EPXE(I)**CN !..SIGMA0(EPS_P)
96C
97C -- COMPARE IT WITH ELASTIC PREDICTOR
98 IF(aj2(i)<ak(i)) GO TO 90
99C
100 beta = one-fisokin
101 DO 80 iter = 1,niter ! .. NR ITERATIONS ..
102C
103 IF(epxe(i)>zero) THEN !..TESTING FOR ZERO EQUIV.PL.STRN
104 ak(i)=ca(i)+beta*cb*epxe(i)**cn !..SIGMA0(EPS_P)
105C
106C --COMPUTE THE HARDENING PARAMETER H
107C --(JUST THE DERIVATIVE OF THE SIG-EPS_PL FUNCTION)
108C
109 IF(cn>one) THEN
110 qh(i) = (cb*cn*epxe(i)**(cn - one))*epd(i)
111 ELSEIF(cn==one) THEN !.. LINEAR HARDENING
112 qh(i)= cb*epd(i)
113 ELSE !.. POWER LESS THAN UNITY
114 qh(i) = (cb*cn/epxe(i)**(one -cn))*epd(i)
115 ENDIF
116C
117 ELSEIF(epxe(i)==zero) THEN
118C
119 ak(i)=ca(i)
120C
121 IF(cn>one )THEN
122 qh(i) = zero
123 ELSEIF(cn==one) THEN
124 qh(i) = cb*epd(i)
125 ELSE
126 qh(i) = ep10 *epd(i) !.. SHOULD BE +INFINITY
127 ENDIF
128C
129 ELSE !--ERROR
130CCC WRITE(*,*)'M2LAW-NEGATIVE EQUIVALENT PLASTIC STRN',EPXE(I)
131CCC CALL ARRET(2)
132C
133 ENDIF !--EPXE(I)>ZERO ..END TESTING FOR ZERO EQUIV.PL.STRN
134C
135 htot = g3(i) + fisokin*qh(i)
136 rhs = aj2(i) -htot * xsi - ak(i)
137 lhs = g3(i) + qh(i)
138 dxsi = rhs/lhs
139 xsi = xsi + dxsi
140C
141 epxe(i) = epxe(i) + dxsi
142 epxe(i) = max(zero,epxe(i))
143 IF( abs(dxsi)<em10.AND.
144 $ abs(rhs )<em10) GO TO 90
145C
146 80 CONTINUE
147CCC WRITE(*,*)'M2LAW--NON-CONVERGED ITERATION', ABS(DXSI),ABS(RHS)
148 90 CONTINUE
149C
150 IF(xsi<zero) xsi = zero
151 dpla1(i) = xsi !.. PLASTIC STRAIN MULTIPLIER "delta lambda"
152CCC IF(I==1)WRITE(*,*)'D_LAMBDA =',XSI
153C
154C .. ENFORCING SOME CUT-OFFS, LEFT UNCHANGED
155C ----!!!cette partie devrait etre interieure de boucle --- tester
156 ak(i)=ak(i)*epd(i)
157 IF(sigmx(i)<ak(i))THEN
158 ak(i)=sigmx(i)
159 qh(i)=zero
160 ENDIF
161C SIGY(I) = AK(I)
162 IF(epxe(i)>epmx)THEN
163 ak(i)=zero
164 qh(i)=zero
165 ENDIF
166C
167C -- RADIAL RETURN ------
168C -- ALPHA_RADIAL := PARAMETER ALPHA OF THE RADIAL RETURN
169C
170 alpha_radial= min(one,ak(i)/ max(aj2(i),em15))
171 sig(i,1)=alpha_radial*sig(i,1)
172 sig(i,2)=alpha_radial*sig(i,2)
173 sig(i,3)=alpha_radial*sig(i,3)
174 sig(i,4)=alpha_radial*sig(i,4)
175 sig(i,5)=alpha_radial*sig(i,5)
176 sig(i,6)=alpha_radial*sig(i,6)
177C
178 100 CONTINUE !..LOOP ON ELEMENTS
179C
180 RETURN
181 END
subroutine m2iter_imp(sig, epxe, aj2, g, ca, cb, cn, epd, sigmx, epmx, dpla1, ak, qh, sigy, fisokin, nel)
Definition m2iter_imp.F:33
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21