OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
fail_johnson_b.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!|| fail_johnson_b ../engine/source/materials/fail/johnson_cook/fail_johnson_b.F
25!||--- called by ------------------------------------------------------
26!|| fail_beam3 ../engine/source/elements/beam/fail_beam3.F
27!||====================================================================
28 SUBROUTINE fail_johnson_b(
29 . NEL ,NGL ,NUPARAM ,UPARAM ,
30 . TIME ,TSTAR ,SVM ,PRESSURE ,
31 . DPLA ,EPSD ,OFF ,DFMAX ,
32 . TDEL ,IOUT ,ISTDO )
33C-----------------------------------------------
34c Johnson-Cook failure model for standard beams (TYPE 3)
35C-----------------------------------------------
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 "comlock.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER ,INTENT(IN) :: NEL ! size of element group
47 INTEGER ,INTENT(IN) :: NUPARAM ! size of parameter array
48 INTEGER ,INTENT(IN) :: IOUT ! output file unit
49 INTEGER ,INTENT(IN) :: ISTDO ! output file unit
50 INTEGER ,DIMENSION(NEL) ,INTENT(IN) :: NGL ! table of element identifiers
51 my_real ,INTENT(IN) :: time ! current time
52 my_real ,DIMENSION(NUPARAM) ,INTENT(IN) :: uparam ! failure model parameter array
53 my_real ,DIMENSION(NEL) ,INTENT(IN) :: dpla ! plastic strain increment
54 my_real ,DIMENSION(NEL) ,INTENT(IN) :: svm ! Von Mises stress
55 my_real ,DIMENSION(NEL) ,INTENT(IN) :: pressure! element pressure
56 my_real ,DIMENSION(NEL) ,INTENT(IN) :: epsd ! strain rate
57 my_real ,DIMENSION(NEL) ,INTENT(IN) :: tstar ! normalized temperature
58 my_real ,DIMENSION(NEL) ,INTENT(INOUT) :: off ! element deactivation flag
59 my_real ,DIMENSION(NEL) ,INTENT(INOUT) :: dfmax ! maximum damage
60 my_real ,DIMENSION(NEL) ,INTENT(INOUT) :: tdel ! deactivation time
61C-----------------------------------------------
62C L o c a l V a r i a b l e s
63C-----------------------------------------------
64 INTEGER :: I,J,NINDX
65 INTEGER ,DIMENSION(NEL) :: INDX
66 my_real :: D1,D2,D3,D4,D5,EPSD0,EPSF,EPSF_MIN
67C=======================================================================
68 nindx = 0
69 d1 = uparam(1)
70 d2 = uparam(2)
71 d3 = uparam(3)
72 d4 = uparam(4)
73 d5 = uparam(5)
74 epsd0 = uparam(6)
75 epsf_min = uparam(12)
76c-----------------------------
77 DO i=1,nel
78 IF (off(i) == one .and. dpla(i) > zero) THEN
79 epsf = d3 * pressure(i) / max(em20, svm(i))
80 epsf = d1 + d2 * exp(epsf)
81 IF (d4 /= zero) epsf = epsf * (one + d4*log(max(one,epsd(i)/epsd0)))
82 IF (d5 /= zero) epsf = epsf * (one + d5*tstar(i))
83 epsf = max(epsf,epsf_min)
84 IF (epsf > zero) dfmax(i) = dfmax(i) + dpla(i) / epsf
85 IF (dfmax(i) >= one) THEN ! total damage in integration point
86 nindx = nindx + 1
87 indx(nindx) = i
88 tdel(i) = time
89 dfmax(i) = one
90 off(i) = four_over_5
91 ENDIF
92 ENDIF
93 ENDDO
94c------------------------
95 IF (nindx > 0) THEN
96 DO j=1,nindx
97 i = indx(j)
98#include "lockon.inc"
99 WRITE(iout, 1000) ngl(i),time
100 WRITE(istdo,1000) ngl(i),time
101#include "lockoff.inc"
102 END DO
103 END IF ! NINDX
104c------------------
105 1000 FORMAT(5x,'FAILURE (JC) OF BEAM ELEMENT ',i10,1x,'AT TIME :',1pe12.4)
106c------------------
107 RETURN
108 END
#define my_real
Definition cppsort.cpp:32
subroutine fail_johnson_b(nel, ngl, nuparam, uparam, time, tstar, svm, pressure, dpla, epsd, off, dfmax, tdel, iout, istdo)
#define max(a, b)
Definition macros.h:21