OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
fail_mullins_OR_s.F File Reference
#include "implicit_f.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine fail_mullins_or_s (nel, nuparam, nuvar, time, timestep, uparam, ngl, signxx, signyy, signzz, signxy, signyz, signzx, uvar, off, dfmax, ww)
subroutine mullins_or (nel, nuvar, coefr, betaf, coefm, ww, uvar, eta)

Function/Subroutine Documentation

◆ fail_mullins_or_s()

subroutine fail_mullins_or_s ( integer, intent(in) nel,
integer, intent(in) nuparam,
integer, intent(in) nuvar,
intent(in) time,
intent(in) timestep,
intent(in) uparam,
intent(in) ngl,
intent(inout) signxx,
intent(inout) signyy,
intent(inout) signzz,
intent(inout) signxy,
intent(inout) signyz,
intent(inout) signzx,
intent(inout) uvar,
intent(inout) off,
intent(inout) dfmax,
intent(in) ww )

Definition at line 31 of file fail_mullins_OR_s.F.

37C---------+---------+---+---+--------------------------------------------
38c---------+---------+---+---+--------------------------------------------
39C /FAIL/EMC - tabulated rupture criteria for solids
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C---------+---------+---+---+--------------------------------------------
45C VAR | SIZE |TYP| RW| DEFINITION
46C---------+---------+---+---+--------------------------------------------
47C NEL | 1 | I | R | SIZE OF THE ELEMENT GROUP NEL
48C NUPARAM | 1 | I | R | SIZE OF THE USER PARAMETER ARRAY
49C NUVAR | 1 | I | R | NUMBER OF FAILURE ELEMENT VARIABLES
50C---------+---------+---+---+--------------------------------------------
51C TIME | 1 | F | R | CURRENT TIME
52C TIMESTEP| 1 | F | R | CURRENT TIME STEP
53C UPARAM | NUPARAM | F | R | USER FAILURE PARAMETER ARRAY
54C---------+---------+---+---+--------------------------------------------
55C SIGNXX | NEL | F | W | NEW ELASTO PLASTIC STRESS XX
56C SIGNYY | NEL | F | W | NEW ELASTO PLASTIC STRESS YY
57C ... | | | |
58C ... | | | |
59C---------+---------+---+---+--------------------------------------------
60C UVAR |NEL*NUVAR| F |R/W| USER ELEMENT VARIABLE ARRAY
61C OFF | NEL | F |R/W| DELETED ELEMENT FLAG (=1. ON, =0. OFF)
62C---------+---------+---+---+--------------------------------------------
63C-----------------------------------------------
64C I N P U T A r g u m e n t s
65C-----------------------------------------------
66 INTEGER, INTENT(IN) :: NEL,NUPARAM ,NUVAR
67 my_real, INTENT(IN) :: time,timestep
68 my_real, DIMENSION(NUPARAM), INTENT(IN) :: uparam
69 my_real, DIMENSION(NEL), INTENT(IN) ::ngl, ww
70C-----------------------------------------------
71C O U T P U T A r g u m e n t s
72C-----------------------------------------------
73cc my_real
74C-----------------------------------------------
75C I N P U T O U T P U T A r g u m e n t s
76C-----------------------------------------------
77 my_real, DIMENSION(NEL), INTENT(INOUT) :: signxx,
78 . signyy,signzz,signxy,signyz,signzx,dfmax, off
79 my_real, DIMENSION(NEL,NUVAR), INTENT(INOUT) :: uvar
80C-----------------------------------------------
81C L o c a l V a r i a b l e s
82C-----------------------------------------------
83 INTEGER I,J,JJ,K,IR,IADBUF,NINDX,IFAIL
84 INTEGER, DIMENSION(NEL) :: INDX
85 my_real
86 . coefr, betaf ,coefm,sxx,syy,szz,trace,eta(nel)
87C=======================================================================
88C INITIALIZATIONS
89C-----------------------------------------------
90 coefr = uparam(1)
91 betaf = uparam(2)
92 coefm = uparam(3)
93
94 CALL mullins_or(
95 1 nel ,nuvar, coefr,betaf ,
96 2 coefm,ww , uvar, eta )
97
98c-----------------------------------------------
99 DO i = 1,nel
100 trace = third * (signxx(i)+signyy(i)+signzz(i))
101 sxx = signxx(i) - trace
102 syy = signyy(i) - trace
103 szz = signzz(i) - trace
104 signxx(i) = eta(i) * sxx + trace
105 signyy(i) = eta(i) * syy + trace
106 signzz(i) = eta(i) * szz + trace
107
108 signxy(i) = eta(i) * signxy(i)
109 signyz(i) = eta(i) * signyz(i)
110 signzx(i) = eta(i) * signzx(i)
111
112 ENDDO
113
114
115c-----------
116 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine mullins_or(nel, nuvar, coefr, betaf, coefm, ww, uvar, eta)

◆ mullins_or()

subroutine mullins_or ( integer, intent(in) nel,
integer, intent(in) nuvar,
intent(in) coefr,
intent(in) betaf,
intent(in) coefm,
intent(in) ww,
intent(inout) uvar,
dimension(nel), intent(out) eta )

Definition at line 127 of file fail_mullins_OR_s.F.

130C---------+---------+---+---+--------------------------------------------
131c---------+---------+---+---+--------------------------------------------
132C /FAIL/EMC - tabulated rupture criteria for solids
133C-----------------------------------------------
134C I m p l i c i t T y p e s
135C-----------------------------------------------
136#include "implicit_f.inc"
137C---------+---------+---+---+--------------------------------------------
138C VAR | SIZE |TYP| RW| DEFINITION
139C---------+---------+---+---+--------------------------------------------
140C NEL | 1 | I | R | SIZE OF THE ELEMENT GROUP NEL
141C NUPARAM | 1 | I | R | SIZE OF THE USER PARAMETER ARRAY
142C NUVAR | 1 | I | R | NUMBER OF FAILURE ELEMENT VARIABLES
143C---------+---------+---+---+--------------------------------------------
144C TIME | 1 | F | R | CURRENT TIME
145C TIMESTEP| 1 | F | R | CURRENT TIME STEP
146C UPARAM | NUPARAM | F | R | USER FAILURE PARAMETER ARRAY
147C---------+---------+---+---+--------------------------------------------
148C SIGNXX | NEL | F | W | NEW ELASTO PLASTIC STRESS XX
149C SIGNYY | NEL | F | W | NEW ELASTO PLASTIC STRESS YY
150C ... | | | |
151C ... | | | |
152C---------+---------+---+---+--------------------------------------------
153C UVAR |NEL*NUVAR| F |R/W| USER ELEMENT VARIABLE ARRAY
154C OFF | NEL | F |R/W| DELETED ELEMENT FLAG (=1. ON, =0. OFF)
155C---------+---------+---+---+--------------------------------------------
156C-----------------------------------------------
157C I N P U T A r g u m e n t s
158C-----------------------------------------------
159 INTEGER, INTENT(IN) :: NEL,NUVAR
160 my_real, INTENT(IN) :: coefr,betaf ,coefm
161 my_real, DIMENSION(NEL), INTENT(IN) :: ww
162C----------------------------------------------------------------
163C O U T P U T A R G U M E N T S
164C----------------------------------------------------------------
165 my_real, DIMENSION(NEL), INTENT(OUT) :: eta(nel)
166C-----------------------------------------------
167C I N P U T O U T P U T A r g u m e n t s
168C-----------------------------------------------
169 my_real, DIMENSION(NEL,NUVAR ), INTENT(INOUT) :: uvar
170C-----------------------------------------------
171C VARIABLES FOR FUNCTION INTERPOLATION
172C-----------------------------------------------
173C L o c a l V a r i a b l e s
174C-----------------------------------------------
175 INTEGER I,J,JJ,K,IR,IADBUF,NINDX,IFAIL
176 INTEGER, DIMENSION(NEL) ::
177 . INDX
178C
179 my_real, DIMENSION(NEL) :: wmax
180 my_real :: df12, df23, df13,term
181C=======================================================================
182 DO i = 1, nel
183 wmax(i) = max(uvar(i,1),ww(i))
184 uvar(i,1)= wmax(i)
185 ENDDO
186 DO i=1,nel !erf(x) computes the error function of x integral from 0 to x
187
188 term = erf((wmax(i) - ww(i))/(coefm + betaf *wmax(i)))
189
190 eta(i) = one - term/coefr
191 ENDDO
192
193C-----------------------------------------------
194
195
196c-----------
197 RETURN
#define max(a, b)
Definition macros.h:21