OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_ale_close.F File Reference
#include "implicit_f.inc"
#include "param_c.inc"
#include "com01_c.inc"
#include "units_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine hm_read_ale_close (unitab, lsubmodel, geo)

Function/Subroutine Documentation

◆ hm_read_ale_close()

subroutine hm_read_ale_close ( type(unit_type_), intent(in) unitab,
type(submodel_data), dimension(nsubmod), intent(in) lsubmodel,
intent(inout) geo )

Definition at line 34 of file hm_read_ale_close.F.

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-----------------------------------------------
#define my_real
Definition cppsort.cpp:32
subroutine hm_get_floatv(name, rval, is_available, lsubmodel, unitab)
#define min(a, b)
Definition macros.h:20