OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
read_ale_mat.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!|| read_ale_mat ../starter/source/materials/ale/read_ale_mat.F
25!||--- called by ------------------------------------------------------
26!|| read_material_models ../starter/source/materials/read_material_models.F
27!||--- calls -----------------------------------------------------
28!|| hm_get_floatv ../starter/source/devtools/hm_reader/hm_get_floatv.F
29!|| hm_option_count ../starter/source/devtools/hm_reader/hm_option_count.F
30!|| hm_option_is_encrypted ../starter/source/devtools/hm_reader/hm_option_is_encrypted.F
31!|| hm_option_read_key ../starter/source/devtools/hm_reader/hm_option_read_key.F
32!|| hm_option_start ../starter/source/devtools/hm_reader/hm_option_start.F
33!||--- uses -----------------------------------------------------
34!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
35!|| message_mod ../starter/share/message_module/message_mod.f
36!|| submodel_mod ../starter/share/modules1/submodel_mod.F
37!||====================================================================
38 SUBROUTINE read_ale_mat(LSUBMODEL,UNITAB,IPM,PM)
39C-----------------------------------------------
40C D e s c r i p t i o n
41C-----------------------------------------------
42C This subroutine is reading keyword /ALE/MAT
43C and setting corresponding parameters in material buffer (PM array)
44C-----------------------------------------------
45C M o d u l e s
46C-----------------------------------------------
47 USE unitab_mod
48 USE message_mod
49 USE submodel_mod
51 USE alefvm_mod , only:alefvm_param
53C============================================================================
54C I m p l i c i t T y p e s
55C-----------------------------------------------
56#include "implicit_f.inc"
57C-----------------------------------------------
58C C o m m o n B l o c k s
59C-----------------------------------------------
60#include "com04_c.inc"
61#include "param_c.inc"
62#include "units_c.inc"
63C-----------------------------------------------
64C D u m m y A r g u m e n t s
65C-----------------------------------------------
66 INTEGER ,DIMENSION(NPROPMI,NUMMAT), INTENT(INOUT) :: IPM
67 my_real ,DIMENSION(NPROPM ,NUMMAT), INTENT(INOUT) :: pm
68 TYPE (UNIT_TYPE_) ,INTENT(IN) :: UNITAB
69 TYPE(submodel_data) ,DIMENSION(NSUBMOD) , INTENT(IN) :: LSUBMODEL
70C-----------------------------------------------
71C L o c a l V a r i a b l e s
72C-----------------------------------------------
73 my_real flrd
74 INTEGER II,KK,NB_ALEMAT,ILAW,ID
75 CHARACTER(LEN=NCHARTITLE) :: TITR
76 CHARACTER :: KEY*80
77 LOGICAL IS_AVAILABLE,IS_ENCRYPTED
78C-----------------------------------------------
79C S o u r c e L i n e s
80C-----------------------------------------------
81 CALL hm_option_count('/ALE/MAT',nb_alemat)
82 CALL hm_option_start('/ALE/MAT')
83
84 DO kk=1,nb_alemat
85 CALL hm_option_read_key(lsubmodel, option_id=id)
86 CALL hm_option_is_encrypted(is_encrypted)
87 CALL hm_get_floatv('ALE_FLRD',flrd,is_available,lsubmodel,unitab)
88 DO ii=1,nummat-1
89 IF(ipm(1,ii) == id) THEN
90 ilaw = ipm(2,ii)
91 IF(ilaw == 11)THEN
92 IF(flrd == zero) flrd=one
93 ELSE
94 flrd=max(zero,flrd)
95 flrd=min(one,flrd)
96 ENDIF
97 pm(72,ii) =onep1
98 pm(92,ii) =flrd
99 WRITE(iout,2010)id,flrd
100 ENDIF
101 ENDDO
102 ENDDO
103
104 2010 FORMAT(
105 & 5x,' ALE MATERIAL ',/,
106 & 5x,' ------------ ',/,
107 & 5x,'MATERIAL NUMBER . . . . . . . . . . . .=',i10/,
108 & 5x,'REDUCTION FACTOR ON BOUNDARY FLUXES . .=',1pg20.13//)
109
110 RETURN
111 END SUBROUTINE read_ale_mat
#define my_real
Definition cppsort.cpp:32
subroutine hm_get_floatv(name, rval, is_available, lsubmodel, unitab)
subroutine hm_option_count(entity_type, hm_option_number)
subroutine hm_option_is_encrypted(is_encrypted)
subroutine hm_option_start(entity_type)
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
type(alefvm_param_), target alefvm_param
Definition alefvm_mod.F:121
integer, parameter nchartitle
subroutine read_ale_mat(lsubmodel, unitab, ipm, pm)
program starter
Definition starter.F:39