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

Go to the source code of this file.

Functions/Subroutines

subroutine hm_read_fail_tsaihill (fail, mat_id, fail_id, irupt, lsubmodel, unitab, fail_tag)

Function/Subroutine Documentation

◆ hm_read_fail_tsaihill()

subroutine hm_read_fail_tsaihill ( type (fail_param_), intent(inout) fail,
integer, intent(in) mat_id,
integer, intent(in) fail_id,
integer, intent(in) irupt,
type (submodel_data), dimension(*), intent(in) lsubmodel,
type (unit_type_), intent(in) unitab,
type (fail_tag_), intent(inout) fail_tag )
Parameters
[in]fail_idfailure model ID
[in]mat_idmaterial law ID
[in]iruptfailure model number
[in]unitabtable of input units
[in]lsubmodelsubmodel table
[in,out]failfailure model data structure
[in,out]fail_tagfailure model tag for buffer allocation

Definition at line 37 of file hm_read_fail_tsaihill.F.

40C-----------------------------------------------
41c ROUTINE DESCRIPTION :
42c Read Tsai-Hill failure model parameters
43C-----------------------------------------------
44C M o d u l e s
45C-----------------------------------------------
46 USE fail_param_mod
47 USE unitab_mod
48 USE message_mod
49 USE submodel_mod
51 USE elbuftag_mod
52C-----------------------------------------------
53C I m p l i c i t T y p e s
54C-----------------------------------------------
55#include "implicit_f.inc"
56C-----------------------------------------------
57C C o m m o n B l o c k s
58C-----------------------------------------------
59#include "units_c.inc"
60C-----------------------------------------------
61C D u m m y A r g u m e n t s
62C-----------------------------------------------
63 INTEGER ,INTENT(IN) :: FAIL_ID !< failure model ID
64 INTEGER ,INTENT(IN) :: MAT_ID !< material law ID
65 INTEGER ,INTENT(IN) :: IRUPT !< failure model number
66 TYPE (UNIT_TYPE_) ,INTENT(IN) :: UNITAB !< table of input units
67 TYPE (SUBMODEL_DATA),INTENT(IN) :: LSUBMODEL(*) !< submodel table
68 TYPE (FAIL_PARAM_) ,INTENT(INOUT) :: FAIL !< failure model data structure
69 TYPE (FAIL_TAG_) ,INTENT(INOUT) :: FAIL_TAG !< failure model tag for buffer allocation
70C-----------------------------------------------
71C L o c a l V a r i a b l e s
72C-----------------------------------------------
73 INTEGER :: IFAIL_SH,IFAIL_SO,NUVAR
74 my_real :: x11,x22,s12,tmax,fcut,pthkf
75 LOGICAL :: IS_AVAILABLE,IS_ENCRYPTED
76C--------------------------------------------------
77C S o u r c e L i n e s
78C--------------------------------------------------
79 is_encrypted = .false.
80 is_available = .false.
81
82 CALL hm_option_is_encrypted(is_encrypted)
83
84 ! 1st line of the card
85 CALL hm_get_floatv('X11' ,x11 ,is_available,lsubmodel,unitab)
86 CALL hm_get_floatv('X22' ,x22 ,is_available,lsubmodel,unitab)
87 CALL hm_get_floatv('S12' ,s12 ,is_available,lsubmodel,unitab)
88 CALL hm_get_intv ('ifail_sh' ,IFAIL_SH ,IS_AVAILABLE,LSUBMODEL)
89 CALL HM_GET_INTV ('ifail_so' ,IFAIL_SO ,IS_AVAILABLE,LSUBMODEL)
90
91 ! 2nd line of the card
92 CALL HM_GET_FLOATV('tau_max' ,TMAX ,IS_AVAILABLE,LSUBMODEL,UNITAB)
93 CALL HM_GET_FLOATV('fcut' ,FCUT ,IS_AVAILABLE,LSUBMODEL,UNITAB)
94
95 ! Check parameters and set defaults value
96 IF (X11 == ZERO) X11 = INFINITY
97 IF (X22 == ZERO) X22 = INFINITY
98 IF (S12 == ZERO) S12 = INFINITY
99 IF (TMAX == ZERO) TMAX = INFINITY
100 IFAIL_SH = MIN(IFAIL_SH,2)
101 IFAIL_SH = MAX(0,IFAIL_SH)
102 IFAIL_SO = MIN(IFAIL_SO,2)
103 IFAIL_SO = MAX(0,IFAIL_SO)
104 FCUT = MAX(ZERO,FCUT)
105c
106 ! Shell element deletion flag
107 IF (IFAIL_SH == 1) THEN
108 PTHKF = EM06
109 ELSEIF (IFAIL_SH == 2) THEN
110 PTHKF = ONE
111 ENDIF
112c---------------------------
113 IF (FCUT > ZERO) THEN
114 NUVAR = 7
115 ELSE
116 NUVAR = 1
117 ENDIF
118c---------------------------
119 FAIL%KEYWORD = 'tsai-hill'
120 FAIL%IRUPT = IRUPT
121 FAIL%FAIL_ID = FAIL_ID
122 FAIL%NUPARAM = 7
123 FAIL%NIPARAM = 0
124 FAIL%NUVAR = NUVAR
125 FAIL%NFUNC = 0
126 FAIL%NTABLE = 0
127 FAIL%NMOD = 1
128 FAIL%PTHK = PTHKF
129c
130 ALLOCATE (FAIL%UPARAM(FAIL%NUPARAM))
131 ALLOCATE (FAIL%IPARAM(FAIL%NIPARAM))
132 ALLOCATE (FAIL%IFUNC (FAIL%NFUNC))
133 ALLOCATE (FAIL%TABLE (FAIL%NTABLE))
134c
135 ! Modes of failure
136 FAIL_TAG%LF_DAMMX = FAIL_TAG%LF_DAMMX + FAIL%NMOD
137 ALLOCATE (FAIL%MODE(FAIL%NMOD))
138 FAIL%MODE(1) = "Reserve factor"
139c
140 FAIL%NUPARAM = 7
141 FAIL%UPARAM(1) = X11
142 FAIL%UPARAM(2) = X22
143 FAIL%UPARAM(3) = S12
144 FAIL%UPARAM(4) = TMAX
145 FAIL%UPARAM(5) = FCUT
146 FAIL%UPARAM(6) = IFAIL_SH
147 FAIL%UPARAM(7) = IFAIL_SO
148c---------------------------
149C
150 ! Print parameter in 0.out file
151 IF (IS_ENCRYPTED) THEN
152 WRITE(IOUT,'(5x,a,//)')'confidential data'
153 ELSE
154 WRITE(IOUT,1000)
155 WRITE(IOUT,1100) X11,X22,S12
156.OR. IF (IFAIL_SH > 0 IFAIL_SO > 0) THEN
157 WRITE(IOUT,1200) TMAX
158 ENDIF
159 IF (FCUT > ZERO) THEN
160 WRITE(IOUT,1300) FCUT
161 ENDIF
162 WRITE(IOUT,1400) IFAIL_SH
163 WRITE(IOUT,1500) IFAIL_SO
164 ENDIF
165c-----------
166 1000 FORMAT(
167 & 5X,' ---------------------------------------------------- ',/
168 & 5X,' failure criterion : tsai-hill ',/,
169 & 5X,' ---------------------------------------------------- ',/)
170 1100 FORMAT(
171 & 5X,'critical strength in direction 1 x11 . . . . . . . . . =',1PG20.13/
172 & 5X,'critical strength in direction 2 x22 . . . . . . . . . =',1PG20.13/
173 & 5X,'critical shear strength s12 . . . . . . . . . . . . . . =',1PG20.13/)
174 1200 FORMAT(
175 & 5X,'stress softening activated: ',/,
176 & 5X,'relaxation time tau_max . . . . . . . . . . . . . . . . =',1PG20.13/)
177 1300 FORMAT(
178 & 5X,'stress tensor filtering activated: ',/,
179 & 5X,'filtering frequency fcut . . . . . . . . . . . . . . . =',1PG20.13/)
180 1400 FORMAT(
181 & 5X,'shell deletion flag ifail_sh . . . . . . . . . . . . . =',I10,/
182 & 5X,' = 0: shell never deleted and no stress softening ',/,
183 & 5X,' = 1: shell deleted IF damage is reached for one layer ',/,
184 & 5X,' = 2: shell deleted IF damage is reached for all layers',/)
185 1500 FORMAT(
186 & 5X,'solid deletion flag ifail_so . . . . . . . . . . . . . =',I10,/
187 & 5X,' = 0: solid never deleted and no stress softening ',/,
188 & 5X,' = 1: solid deleted IF damage is reached for one integration point ',/,
189 & 5X,' = 2: solid deleted IF damage is reached for all integration points',/)
190c-----------
191 RETURN
#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)
for(i8=*sizetab-1;i8 >=0;i8--)