OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_fail_mullins_or.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_mullins_or ../starter/source/materials/fail/mullins_or/hm_read_fail_mullins_or.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!||====================================================================
35 . FAIL ,MAT_ID ,FAIL_ID ,IRUPT ,
36 . LSUBMODEL,UNITAB )
37C-----------------------------------------------
38c ROUTINE DESCRIPTION :
39c Read Mullins (Ogden-Roxburgh formulation) 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 :: coefr, beta, coefm
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 DATA
79C--------------------------------------------------
80Card1--------------------------------------------------
81 CALL hm_get_floatv ('COEFR' ,coefr ,is_available,lsubmodel,unitab)
82 CALL hm_get_floatv ('BETA' ,beta ,is_available,lsubmodel,unitab)
83 CALL hm_get_floatv ('COEFM' ,coefm ,is_available,lsubmodel,unitab)
84C--------------------------------------------------
85 IF (coefr == zero) coefr = one
86C--------------------------------------------------
87 fail%KEYWORD = 'MULLINS_OR'
88 fail%IRUPT = irupt
89 fail%FAIL_ID = fail_id
90 fail%NUPARAM = 3
91 fail%NIPARAM = 0
92 fail%NUVAR = 3
93 fail%NFUNC = 0
94 fail%NTABLE = 0
95 fail%NMOD = 0
96c
97 ALLOCATE (fail%UPARAM(fail%NUPARAM))
98 ALLOCATE (fail%IPARAM(fail%NIPARAM))
99 ALLOCATE (fail%IFUNC (fail%NFUNC))
100 ALLOCATE (fail%TABLE (fail%NTABLE))
101c
102 fail%UPARAM(1) = coefr
103 fail%UPARAM(2) = beta
104 fail%UPARAM(3) = coefm
105C--------------------------------------------------
106 IF(is_encrypted)THEN
107 WRITE(iout,'(5X,A,//)')'CONFIDENTIAL DATA'
108 ELSE
109 WRITE(iout, 1100) coefr, beta, coefm
110 ENDIF
111C--------------------------------------------------
112 RETURN
113C-----------
114 1100 FORMAT(
115 & 5x,40h mullins ogden-roxburghr model /,
116 & 5x,40h --------------------------------- /,
117 & 5x,'PARAMETER R. . . . . . . . . . . . . . . . . . . . =',e16.9/
118 & 5x,'PARAMETER BETA . . . . . . . . . . . . . . . . . . =',e16.9/
119 & 5x,'PARAMETER M. . . . . . . . . . . . . . . . . . . . =',e16.9/)
120C-----------
121 RETURN
122 END
#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_mullins_or(fail, mat_id, fail_id, irupt, lsubmodel, unitab)