OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_ale_close.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_ale_close ../starter/source/ale/hm_read_ale_close.F
25!||--- called by ------------------------------------------------------
26!|| hm_read_prop14 ../starter/source/properties/solid/hm_read_prop14.F
27!|| hm_read_prop14f ../starter/source/properties/solid/hm_read_prop14.F
28!|| hm_read_prop15 ../starter/source/properties/solid/hm_read_prop15.F
29!||--- calls -----------------------------------------------------
30!|| hm_get_floatv ../starter/source/devtools/hm_reader/hm_get_floatv.F
31!||--- uses -----------------------------------------------------
32!|| submodel_mod ../starter/share/modules1/submodel_mod.F
33!||====================================================================
34 SUBROUTINE hm_read_ale_close(UNITAB, LSUBMODEL, GEO)
35C-----------------------------------------------
36C Description
37C-----------------------------------------------
38C This subroutine is reading option /ALE/CLOSE
39C in Starter input file
40C-----------------------------------------------
41C M o d u l e s
42C-----------------------------------------------
43 USE unitab_mod
44 USE submodel_mod
45C-----------------------------------------------
46C I m p l i c i t T y p e s
47C-----------------------------------------------
48#include "implicit_f.inc"
49C-----------------------------------------------
50C C o m m o n B l o c k s
51C-----------------------------------------------
52#include "param_c.inc"
53#include "com01_c.inc"
54#include "units_c.inc"
55C-----------------------------------------------
56C D u m m y A r g u m e n t s
57C-----------------------------------------------
58 TYPE(unit_type_), INTENT(IN) :: UNITAB
59 TYPE(submodel_data), DIMENSION(NSUBMOD), INTENT(IN) :: LSUBMODEL
60 my_real, DIMENSION(NPROPG), INTENT(INOUT) :: geo
61C-----------------------------------------------
62C L o c a l V a r i a b l e s
63C-----------------------------------------------
64 my_real :: htest, hclose
65 LOGICAL :: IS_AVAILABLE1, IS_AVAILABLE2
66C-----------------------------------------------
67C S o u r c e L i n e s
68C-----------------------------------------------
69 iclose = 0
70 CALL hm_get_floatv('htest', htest, is_available1, lsubmodel, unitab)
71 CALL hm_get_floatv('hclose', hclose, is_available2, lsubmodel, unitab)
72 IF (is_available1 .OR. is_available2) THEN
73 iclose = 1
74 IF (htest == zero) htest = em20
75 IF (hclose == zero) hclose = htest * em01
76 hclose = min(htest, hclose)
77 geo(129) = hclose
78 geo(130) = htest
79 WRITE(iout, 2010) htest, hclose
80 ENDIF
81 RETURN
82C-----------------------------------------------
83 2010 FORMAT(
84 & 5x,' ALE ELEMENT CLOSURE ',/,
85 & 5x,' ------------------- ',/,
86 & 5x,'MAXIMUM LENGTH FOR ACTIVATION . . . . .=',1pg20.13/,
87 & 5x,'MAXIMUM LENGTH FOR RESISTANCE . . . . .=',1pg20.13/)
88C-----------------------------------------------
89 END SUBROUTINE hm_read_ale_close
#define my_real
Definition cppsort.cpp:32
subroutine hm_get_floatv(name, rval, is_available, lsubmodel, unitab)
subroutine hm_read_ale_close(unitab, lsubmodel, geo)
#define min(a, b)
Definition macros.h:20