OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_fail_emc.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_emc ../starter/source/materials/fail/emc/hm_read_fail_emc.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_option_is_encrypted ../starter/source/devtools/hm_reader/hm_option_is_encrypted.f
30!||--- uses -----------------------------------------------------
31!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
32!|| submodel_mod ../starter/share/modules1/submodel_mod.F
33!||====================================================================
34 SUBROUTINE hm_read_fail_emc(
35 . FAIL ,MAT_ID ,FAIL_ID ,IRUPT ,
36 . LSUBMODEL,UNITAB )
37C-----------------------------------------------
38c ROUTINE DESCRIPTION :
39c Read EMC 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 type 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 my_real :: afrac,nfrac,bfrac,cfrac,gama,deps0
68C-----------------------------------------------
69 LOGICAL :: IS_AVAILABLE,IS_ENCRYPTED
70C=======================================================================
71 is_encrypted = .false.
72 is_available = .false.
73C--------------------------------------------------
74C EXTRACT DATA (IS OPTION CRYPTED)
75C--------------------------------------------------
76 CALL hm_option_is_encrypted(is_encrypted)
77C--------------------------------------------------
78C EXTRACT DATAS
79C--------------------------------------------------
80Card1
81 CALL hm_get_floatv ('a_EMC' ,afrac ,is_available,lsubmodel,unitab)
82 CALL hm_get_floatv ('n_EMC' ,nfrac ,is_available,lsubmodel,unitab)
83 CALL hm_get_floatv ('b0' ,bfrac ,is_available,lsubmodel,unitab)
84 CALL hm_get_floatv ('c' ,cfrac ,is_available,lsubmodel,unitab)
85Card2
86 CALL hm_get_floatv ('Gamma' ,gama ,is_available,lsubmodel,unitab)
87 CALL hm_get_floatv ('Epsilon_Dot_0',deps0 ,is_available,lsubmodel,unitab)
88c-----------------------------------------------------------------------
89 IF (afrac == zero) afrac = one
90 IF (bfrac == zero) bfrac = one
91 IF (deps0 == zero) deps0 = em20
92c-----------------------------------------------------------------------
93 fail%KEYWORD = 'EMC'
94 fail%IRUPT = irupt
95 fail%FAIL_ID = fail_id
96 fail%NUPARAM = 6
97 fail%NIPARAM = 0
98 fail%NUVAR = 2
99 fail%NFUNC = 0
100 fail%NTABLE = 0
101 fail%NMOD = 0
102c
103 ALLOCATE (fail%UPARAM(fail%NUPARAM))
104 ALLOCATE (fail%IPARAM(fail%NIPARAM))
105 ALLOCATE (fail%IFUNC (fail%NFUNC))
106 ALLOCATE (fail%TABLE (fail%NTABLE))
107c
108 fail%UPARAM(1) = afrac
109 fail%UPARAM(2) = bfrac
110 fail%UPARAM(3) = gama
111 fail%UPARAM(4) = cfrac
112 fail%UPARAM(5) = nfrac
113 fail%UPARAM(6) = deps0
114c-----------------------------------------------------------------------
115 IF(is_encrypted)THEN
116 WRITE(iout, 1300)
117 ELSE
118 WRITE(iout, 1100) afrac,nfrac,bfrac,cfrac,gama,deps0
119 ENDIF
120C-----------
121 RETURN
122C-----------
123 1300 FORMAT(
124 & 5x,40h crypted DATA in failure model /,
125 & 5x,40h ----------------------------- /)
126 1100 FORMAT(
127 & 5x,40h extended mohr coulomb rupture model /,
128 & 5x,40h ----------------------------------- /,
129 & 5x,'HOSFORD EXPONENT. . . . . . . . . . . . . . . . . =',e16.9/
130 & 5x,'STRESS STATE SENSITIVITY. . . . . . . . . . . . . =',e16.9/
131 & 5x,'STRAIN TO FRACTURE FOR UNIAXIAL TENSION. . . . . . =',e16.9/
132 & 5x,'FRICTION COEFFICIENT FOR TRIAXIALITY . . . . . . . =',e16.9/
133 & 5x,'STRAIN RATE SENSITIVITY . . . . . . . . . . . . . =',e16.9/
134 & 5x,'REFERENCE STRAIN RATE. . . . . . . . . . . . . . . =',e16.9)
135C-----------
136 RETURN
137 END
138
139
140
141
142
143
144
145
146
#define my_real
Definition cppsort.cpp:32
subroutine hm_get_floatv(name, rval, is_available, lsubmodel, unitab)
subroutine hm_option_is_encrypted(is_encrypted)
subroutine hm_read_fail_emc(fail, mat_id, fail_id, irupt, lsubmodel, unitab)
program starter
Definition starter.F:39