OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
fail_energy_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_energy_b ../engine/source/materials/fail/energy/fail_energy_b.F
25!||--- called by ------------------------------------------------------
26!|| fail_beam3 ../engine/source/elements/beam/fail_beam3.F
27!||--- calls -----------------------------------------------------
28!|| finter ../engine/source/tools/curve/finter.F
29!||====================================================================
30 SUBROUTINE fail_energy_b(
31 . NEL ,NGL ,NUPARAM ,UPARAM ,
32 . TIME ,EPSD ,OFF ,DFMAX ,
33 . TDEL ,IOUT ,ISTDO ,IFUNC ,
34 . AREA ,F1 ,
35 . F2 ,F3 ,M1 ,M2 ,
36 . M3 ,SNPC ,NPF ,STF ,
37 . TF ,EPSXX ,EPSXY ,EPSXZ ,
38 . KXX ,KYY ,KZZ ,NVAR ,
39 . UVAR ,DMGSCL )
40C-----------------------------------------------
41c energy failure model for standard beams (TYPE 3)
42C-----------------------------------------------
43C I m p l i c i t T y p e s
44C-----------------------------------------------
45#include "implicit_f.inc"
46C-----------------------------------------------
47C G l o b a l P a r a m e t e r s
48C-----------------------------------------------
49#include "comlock.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 INTEGER ,INTENT(IN) :: NEL ! size of element group
54 INTEGER ,INTENT(IN) :: NUPARAM ! size of parameter array
55 INTEGER ,INTENT(IN) :: IOUT ! output file unit
56 INTEGER ,INTENT(IN) :: ISTDO ! output file unit
57 INTEGER ,INTENT(IN) :: SNPC
58 INTEGER ,INTENT(IN) :: STF
59 INTEGER ,DIMENSION(NEL) ,INTENT(IN) :: NGL ! table of element identifiers
60 INTEGER ,DIMENSION(100) ,INTENT(IN) :: IFUNC ! table of functions identifiers
61 INTEGER ,DIMENSION(SNPC) ,INTENT(IN) :: NPF
62 INTEGER ,INTENT(IN) :: NVAR
63 my_real ,INTENT(IN) :: time ! current time
64 my_real ,INTENT(IN) :: area
65 my_real ,DIMENSION(NUPARAM) ,INTENT(IN) :: uparam ! failure model parameter array
66 my_real ,DIMENSION(NEL) ,INTENT(IN) :: epsd ! strain rate
67 my_real ,DIMENSION(STF) ,INTENT(IN) :: tf
68 my_real ,DIMENSION(NEL) ,INTENT(INOUT) :: off ! element deactivation flag
69 my_real ,DIMENSION(NEL) ,INTENT(INOUT) :: dfmax ! maximum damage
70 my_real ,DIMENSION(NEL) ,INTENT(INOUT) :: tdel ! deactivation time
71 my_real ,DIMENSION(NEL) ,INTENT(IN) :: f1,f2,f3
72 my_real ,DIMENSION(NEL) ,INTENT(IN) :: m1,m2,m3
73 my_real ,DIMENSION(NEL) ,INTENT(IN) :: epsxx,epsxy,epsxz
74 my_real ,DIMENSION(NEL) ,INTENT(IN) :: kxx,kyy,kzz
75 my_real ,DIMENSION(NEL,NVAR),INTENT(INOUT) :: uvar ! User variable
76 my_real, DIMENSION(NEL) ,INTENT(INOUT) :: dmgscl
77C-----------------------------------------------
78C L o c a l V a r i a b l e s
79C-----------------------------------------------
80 INTEGER :: I,J,NINDX
81 INTEGER ,DIMENSION(NEL) :: INDX
82 my_real :: rfac,r1,r2,ie_sp,dydx,rief1,rief2,xfac,finter,fact
83 EXTERNAL finter
84 my_real ,DIMENSION(NEL) :: damage
85C=======================================================================
86 nindx = 0
87 rief1 = uparam(1)
88 rief2 = uparam(2)
89 xfac = uparam(4)
90 DO i=1,nel
91 damage(i) = zero
92 uvar(i,1) = uvar(i,1) + (
93 . f1(i)*epsxx(i) + f2(i)*epsxy(i) + f3(i)*epsxz(i) +
94 . m1(i)*kxx(i) + m2(i)*kyy(i) + m3(i)*kzz(i))
95 ENDDO
96c-----------------------------
97 DO i=1,nel
98 IF (off(i) == one ) THEN
99 IF (ifunc(1) /= 0) THEN
100 rfac = finter(ifunc(1),epsd(i)*xfac,npf,tf,dydx)
101 rfac = max(rfac,em20)
102 ELSE
103 rfac = one
104 ENDIF
105 r1 = rief1*rfac
106 r2 = rief2*rfac
107 ie_sp = uvar(i,1)/area
108
109 IF (ie_sp > r1) THEN
110 damage(i) = (ie_sp-r1)/(r2-r1)
111 damage(i) = min(one,damage(i))
112 dfmax(i) = max(dfmax(i) ,damage(i))
113 ENDIF
114
115 IF (ie_sp > r2) THEN
116 nindx = nindx + 1
117 indx(nindx) = i
118 tdel(i) = time
119 dfmax(i) = one
120 off(i) = four_over_5
121 ENDIF
122 ENDIF
123 dmgscl(i) = one - dfmax(i)
124 ENDDO
125c------------------------
126 IF (nindx > 0) THEN
127 DO j=1,nindx
128 i = indx(j)
129#include "lockon.inc"
130 WRITE(iout, 1000) ngl(i),time
131 WRITE(istdo,1000) ngl(i),time
132#include "lockoff.inc"
133 END DO
134 END IF ! NINDX
135c------------------
136 1000 FORMAT(5x,'FAILURE (ENERGY) OF BEAM ELEMENT ',i10,1x,'AT TIME :',1pe12.4)
137c------------------
138 RETURN
139 END
#define my_real
Definition cppsort.cpp:32
subroutine fail_energy_b(nel, ngl, nuparam, uparam, time, epsd, off, dfmax, tdel, iout, istdo, ifunc, area, f1, f2, f3, m1, m2, m3, snpc, npf, stf, tf, epsxx, epsxy, epsxz, kxx, kyy, kzz, nvar, uvar, dmgscl)
subroutine area(d1, x, x2, y, y2, eint, stif0)
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21