OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_fail_wierzbicki.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!|| hm_read_fail_wierzbicki ../starter/source/materials/fail/wierzbicki/hm_read_fail_wierzbicki.F
25!||--- called by ------------------------------------------------------
26!|| hm_read_fail ../starter/source/materials/fail/hm_read_fail.F
27!||--- calls -----------------------------------------------------
28!|| hm_get_floatv ../starter/source/devtools/hm_reader/hm_get_floatv.F
29!|| hm_get_intv ../starter/source/devtools/hm_reader/hm_get_intv.F
30!|| hm_option_is_encrypted ../starter/source/devtools/hm_reader/hm_option_is_encrypted.F
31!||--- uses -----------------------------------------------------
32!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
33!|| submodel_mod ../starter/share/modules1/submodel_mod.F
34!||====================================================================
35 SUBROUTINE hm_read_fail_wierzbicki(FAIL ,
36 . MAT_ID ,FAIL_ID ,IRUPT ,LSUBMODEL,UNITAB )
37C-----------------------------------------------
38c ROUTINE DESCRIPTION :
39c Read Wierzbicki-Xue failure model parameters
40C-----------------------------------------------
41C M o d u l e s
42C-----------------------------------------------
43 USE fail_param_mod
44 USE unitab_mod
45 USE submodel_mod
47C-----------------------------------------------
48C I m p l i c i t T y p e s
49C-----------------------------------------------
50#include "implicit_f.inc"
51C-----------------------------------------------
52C C o m m o n B l o c k s
53C-----------------------------------------------
54#include "units_c.inc"
55C-----------------------------------------------
56C D u m m y A r g u m e n t s
57C-----------------------------------------------
58 INTEGER ,INTENT(IN) :: FAIL_ID ! failure model ID
59 INTEGER ,INTENT(IN) :: MAT_ID ! material law ID
60 INTEGER ,INTENT(IN) :: IRUPT ! failure model number
61 TYPE (UNIT_TYPE_) ,INTENT(IN) :: UNITAB ! table of input units
62 TYPE (SUBMODEL_DATA),INTENT(IN) :: LSUBMODEL(*) ! submodel table
63 TYPE (FAIL_PARAM_) ,INTENT(INOUT) :: FAIL ! failure model data structure
64C-----------------------------------------------
65C L o c a l V a r i a b l e s
66C-----------------------------------------------
67 INTEGER IFAIL_SH, IFAIL_SO,IMOY
68 my_real c1,c2,c3,c4,cm,cn,pthkf
69 LOGICAL :: IS_AVAILABLE,IS_ENCRYPTED
70C-----------------------------------------------
71C S o u r c e L i n e s
72C-----------------------------------------------
73 is_encrypted = .false.
74 is_available = .false.
75
76 CALL hm_option_is_encrypted(is_encrypted)
77C--------------------------------------------------
78C EXTRACT DATAS (REAL VALUES)
79C--------------------------------------------------
80 CALL hm_get_floatv ('C1_WIERZBICKI',c1 ,is_available,lsubmodel,unitab)
81 CALL hm_get_floatv ('C2_WIERZBICKI',c2 ,is_available,lsubmodel,unitab)
82 CALL hm_get_floatv ('C3_WIERZBICKI',c3 ,is_available,lsubmodel,unitab)
83 CALL hm_get_floatv ('C4_WIERZBICKI',c4 ,is_available,lsubmodel,unitab)
84 CALL hm_get_floatv ('m' ,cm ,is_available,lsubmodel,unitab)
85
86 CALL hm_get_floatv ('n_WIERZBICKI' ,cn ,is_available,lsubmodel,unitab)
87 CALL hm_get_intv ('Ifail_sh' ,ifail_sh ,is_available,lsubmodel)
88 CALL hm_get_intv ('Ifail_so' ,ifail_so ,is_available,lsubmodel)
89 CALL hm_get_intv ('Imoy' ,imoy ,is_available,lsubmodel)
90C--------------------------------------------------
91 IF (ifail_sh==0) ifail_sh=1
92 IF (ifail_so==0) ifail_so=1
93c
94 IF (ifail_sh == 1) THEN
95 pthkf = em06
96 ELSEIF (ifail_sh == 2) THEN
97 pthkf = one
98 ENDIF
99c
100 fail%KEYWORD = 'WIERZBICKI'
101 fail%IRUPT = irupt
102 fail%FAIL_ID = fail_id
103 fail%NUPARAM = 9
104 fail%NIPARAM = 0
105 fail%NUVAR = 2
106 fail%NFUNC = 0
107 fail%NTABLE = 0
108 fail%NMOD = 0
109 fail%PTHK = pthkf
110c
111 ALLOCATE (fail%UPARAM(fail%NUPARAM))
112 ALLOCATE (fail%IPARAM(fail%NIPARAM))
113 ALLOCATE (fail%IFUNC (fail%NFUNC))
114 ALLOCATE (fail%TABLE (fail%NTABLE))
115c
116 fail%UPARAM(1) = c1
117 fail%UPARAM(2) = c2
118 fail%UPARAM(3) = c3
119 fail%UPARAM(4) = c4
120 fail%UPARAM(5) = cm
121 fail%UPARAM(6) = cn
122 fail%UPARAM(7) = ifail_sh
123 fail%UPARAM(8) = ifail_so
124 fail%UPARAM(9) = imoy
125c--------------------------------------------------
126 IF(is_encrypted)THEN
127 WRITE(iout,'(5X,A,//)')'CONFIDENTIAL DATA'
128 ELSE
129 WRITE(iout, 1000)c1,c2,c3,c4,cm,cn,imoy
130 IF(ifail_sh==1)THEN
131 WRITE(iout, 1100)
132 ELSEIF(ifail_sh==2)THEN
133 WRITE(iout, 1200)
134 ENDIF
135 IF(ifail_so==1)THEN
136 WRITE(iout, 2100)
137 ELSEIF(ifail_so==2)THEN
138 WRITE(iout, 2200)
139 ENDIF
140 ENDIF
141c--------------------------------------------------
142 1000 FORMAT(
143 & 5x,40h xue-wierzbicki failure model ,/,
144 & 5x,40h ----------------------------- ,/,
145 & 5x,' PARAMETER (C1).. . . . . . . =',e12.4/
146 & 5x,' PARAMETER (C2). . . . . . . .=',e12.4/
147 & 5x,' PARAMETER (C3). . . . . . . .=',e12.4/
148 & 5x,' PARAMETER (C4). . . . . . . .=',e12.4/
149 & 5x,' PARAMETER (M ). . . . . . .=',e12.4/
150 & 5x,' HARDENING EXPONENT. . . . .=',e12.4/
151 & 5x,' FLAG FOR 3D FAILURE MODEL (BRICK) =',i10//)
152 1100 FORMAT(
153 & 5x,' SHELL ELEMENT DELETION ')
154 2100 FORMAT(
155 & 5x,' SOLID ELEMENT DELETION ')
156 1200 FORMAT(
157 & 5x,' SHELL TENSOR STRESS OF LAYER WILL BE VANISHED ')
158 2200 FORMAT(
159 & 5x,' DEVIATORIC STRESS WILL BE VANISHED ')
160c-----------
161 RETURN
162 END
#define my_real
Definition cppsort.cpp:32
subroutine hm_get_floatv(name, rval, is_available, lsubmodel, unitab)
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
subroutine hm_option_is_encrypted(is_encrypted)
subroutine hm_read_fail_wierzbicki(fail, mat_id, fail_id, irupt, lsubmodel, unitab)