OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_fail_cockcroft.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_cockcroft ../starter/source/materials/fail/cockroft_latham/hm_read_fail_cockcroft.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!|| submodel_mod ../starter/share/modules1/submodel_mod.F
33!||====================================================================
35 . FAIL ,MAT_ID ,FAIL_ID ,IRUPT ,
36 . LSUBMODEL,UNITAB )
37C-----------------------------------------------
38c ROUTINE DESCRIPTION :
39c Read Cockroft-Latham 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
46C---------------------------------------------------------------------
47C I m p l i c i t T y p e s
48C---------------------------------------------------------------------
49#include "implicit_f.inc"
50C-----------------------------------------------
51C C o m m o n B l o c k s
52C-----------------------------------------------
53#include "units_c.inc"
54C-----------------------------------------------
55C D u m m y A r g u m e n t s
56C-----------------------------------------------
57 INTEGER ,INTENT(IN) :: FAIL_ID ! failure model ID
58 INTEGER ,INTENT(IN) :: MAT_ID ! material law ID
59 INTEGER ,INTENT(IN) :: IRUPT ! failure model type number
60 TYPE(unit_type_) ,INTENT(IN) :: UNITAB ! table of input units
61 TYPE(submodel_data),INTENT(IN) :: LSUBMODEL(*) ! submodel table
62 TYPE(FAIL_PARAM_) ,INTENT(INOUT) :: FAIL ! failure model data structure
63C-----------------------------------------------
64C L o c a l V a r i a b l e s
65C-----------------------------------------------
66 my_real :: c0, ema
67 LOGICAL :: IS_ENCRYPTED, IS_AVAILABLE
68 integer :: FAILIP
69c=======================================================================
70 is_encrypted = .false.
71 is_available = .false.
72! Initializations
73
74 c0 = zero
75! Encryption flag
76 CALL hm_option_is_encrypted(is_encrypted)
77
78! Line 1
79 CALL hm_get_floatv('C0', c0, is_available, lsubmodel, unitab)
80 CALL hm_get_floatv('ALPHA', ema, is_available, lsubmodel, unitab)
81 CALL hm_get_intv ('FAILIP' ,failip ,is_available,lsubmodel)
82 IF (failip == 0) failip = 1
83! Default values
84 IF (ema == zero) ema = one
85c----------------------------------
86 fail%KEYWORD = 'COCKROFT-LATHAM'
87 fail%IRUPT = irupt
88 fail%FAIL_ID = fail_id
89 fail%NUPARAM = 3
90 fail%NIPARAM = 0
91 fail%NUVAR = 3
92 fail%NFUNC = 0
93 fail%NTABLE = 0
94 fail%NMOD = 0
95c
96 ALLOCATE (fail%UPARAM(fail%NUPARAM))
97 ALLOCATE (fail%IPARAM(fail%NIPARAM))
98 ALLOCATE (fail%IFUNC (fail%NFUNC))
99 ALLOCATE (fail%TABLE (fail%NTABLE))
100c
101 fail%UPARAM(1) = c0
102 fail%UPARAM(2) = ema
103 fail%UPARAM(3)= failip
104c----------------------------------
105 IF (is_encrypted) THEN
106 WRITE(iout,'(5X,A,//)')'CONFIDENTIAL DATA'
107 ELSE
108 WRITE(iout, 1000) abs(c0), ema,failip
109 IF(c0 < zero) THEN
110 WRITE(iout, 1100)
111 ELSE
112 WRITE(iout, 1200)
113 ENDIF
114 ENDIF
115c-----------------------------------------------------------
116 1000 FORMAT(
117 & 5x,40h cockroft-latham failure criteria /,
118 & 5x,40h -------------------------------- /,
119 & 5x,' COEFFICIENT C0. . . . . . . . . . . . .=',e12.4,/,
120 & 5x,' FILTER COEFFICIENT EMA. . . . . . . . .=',e12.4,/,
121 & 5x,' ( EMA = 1.0: NO FILTERING )',/,
122 & 5x,'NUMBER OF FAILED INTG. POINTS PRIOR TO ELEM DELETION .=',i10/)
123 1100 FORMAT(
124 & 5x,' TOTAL STRAIN INCTEMENT USED',/
125 & 5x,' --------------------------------------------------------- ',//)
126 1200 FORMAT(
127 & 5x,' PLASTIC STRAIN INCTEMENT USED',/
128 & 5x,' --------------------------------------------------------- ',//)
129C-----------
130 RETURN
131 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_cockcroft(fail, mat_id, fail_id, irupt, lsubmodel, unitab)
program starter
Definition starter.F:39