OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
m27crak.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/.
23C _clean SUBROUTINE M27CRAK(JFT,JLT,PM,DAMT,DIR,MATLY,ILAYER,OFF)
24!||====================================================================
25!|| m27crak ../engine/source/materials/mat/mat027/m27crak.F
26!||--- called by ------------------------------------------------------
27!|| sigeps27c ../engine/source/materials/mat/mat027/sigeps27c.F
28!||====================================================================
29 SUBROUTINE m27crak(JFT ,JLT ,PM ,DAMT ,DIR ,
30 2 IMAT ,ILAYER ,OFF ,NGL ,NEL ,
31 3 STRN1 ,STRN2 ,STRN3 )
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36#include "comlock.inc"
37C-----------------------------------------------
38C G l o b a l P a r a m e t e r s
39C-----------------------------------------------
40#include "mvsiz_p.inc"
41C-----------------------------------------------
42C C o m m o n B l o c k s
43C-----------------------------------------------
44#include "units_c.inc"
45#include "param_c.inc"
46#include "scr17_c.inc"
47C-----------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
50 INTEGER JFT,JLT,ILAYER,NEL
51 INTEGER NGL(MVSIZ),IMAT
52C REAL
54 . pm(npropm,*),damt(nel,2),dir(nel,2),off(*),
55 . strn1(mvsiz),strn2(mvsiz),strn3(mvsiz)
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER I,J,NINDX,IDIR
60 INTEGER INDX(MVSIZ)
61C REAL
63 . cc,bb,cr,norm,
64 . epst1(mvsiz),epst2(mvsiz),epsm1(mvsiz),epsm2(mvsiz),
65 . strp1(mvsiz),strp2(mvsiz),dmax1(mvsiz),dmax2(mvsiz),
66 . epsf1(mvsiz),epsf2(mvsiz)
67C-----------------------------------------------
68 DO i=jft,jlt
69 epst1(i) = pm(60,imat)
70 epst2(i) = pm(61,imat)
71 epsm1(i) = pm(62,imat)
72 epsm2(i) = pm(63,imat)
73 dmax1(i) = pm(64,imat)
74 dmax2(i) = pm(65,imat)
75 epsf1(i) = pm(66,imat)
76 epsf2(i) = pm(67,imat)
77 ENDDO
78C
79 DO i=jft,jlt
80 cc = (strn1(i)+strn2(i))*half
81 bb = (strn1(i)-strn2(i))*half
82 cr = sqrt(bb**2+strn3(i)**2)
83 strp1(i) = cc + cr
84 strp2(i) = cc - cr
85 ENDDO
86C
87C.....GATHER DIRECTION 1
88C
89 nindx=0
90 DO i=jft,jlt
91 IF (strp1(i) < epst1(i) .OR. damt(i,1) > zero
92 . .OR. off(i) == zero) cycle
93 nindx=nindx+1
94 indx(nindx)=i
95 ENDDO
96C
97 DO i=jft,jlt
98 IF (epsf1(i) > zero .AND. strp1(i) > epsf1(i)
99 . .AND. off(i) == one) THEN
100 off(i) = zero
101#include "lockon.inc"
102 WRITE(iout, *)
103 + ' TOTAL ELEMENT TENSION FAILURE, ELEMENT #',ngl(i)
104#include "lockoff.inc"
105 ENDIF
106 ENDDO
107C
108C.....1.FIRST FAILURE DIRECTION 1
109C
110 IF (nindx > 0) THEN
111 idir = 1
112 DO j=1,nindx
113 i = indx(j)
114 dir(i,1) = strn3(i)
115 dir(i,2) = strp1(i) - strn1(i)
116 norm = sqrt(dir(i,1)*dir(i,1)+dir(i,2)*dir(i,2))
117 IF (norm < em8) THEN
118 dir(i,1) = one
119 dir(i,2) = zero
120 ELSE
121 dir(i,1) = dir(i,1)/norm
122 dir(i,2) = dir(i,2)/norm
123 ENDIF
124 damt(i,1) = (strp1(i)-epst1(i))/(epsm1(i)-epst1(i))
125 damt(i,1) = min(damt(i,1),dmax1(i))
126#include "lockon.inc"
127 WRITE(iout, '(A,I1,A,I10,5X,A,I3)')
128 + ' FAILURE-',idir,' ELEMENT #',ngl(i),
129 + ' LAYER #',ilayer
130#include "lockoff.inc"
131 ENDDO
132 ENDIF
133C
134 RETURN
135 END
#define my_real
Definition cppsort.cpp:32
norm(diag(diag(diag(inv(mat))) -id.SOL), 2) % destroy mumps instance id.JOB
subroutine m27crak(jft, jlt, pm, damt, dir, imat, ilayer, off, ngl, nel, strn1, strn2, strn3)
Definition m27crak.F:32
#define min(a, b)
Definition macros.h:20