OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_preread_pload.F
Go to the documentation of this file.
1
Copyright> OpenRadioss
2
Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3
Copyright>
4
Copyright> This program is free software: you can redistribute it and/or modify
5
Copyright> it under the terms of the GNU Affero General Public License as published by
6
Copyright> the Free Software Foundation, either version 3 of the License, or
7
Copyright> (at your option) any later version.
8
Copyright>
9
Copyright> This program is distributed in the hope that it will be useful,
10
Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11
Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
Copyright> GNU Affero General Public License for more details.
13
Copyright>
14
Copyright> You should have received a copy of the GNU Affero General Public License
15
Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16
Copyright>
17
Copyright>
18
Copyright> Commercial Alternative: Altair Radioss Software
19
Copyright>
20
Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21
Copyright> software under a commercial license. Contact Altair to discuss further if the
22
Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23
!||====================================================================
24
!|| hm_preread_pload ../starter/source/loads/general/pload/hm_preread_pload.F
25
!||--- called by ------------------------------------------------------
26
!|| lectur ../starter/source/starter/lectur.F
27
!||--- calls -----------------------------------------------------
28
!|| hm_get_intv ../starter/source/devtools/hm_reader/hm_get_intv.F
29
!|| hm_option_read_key ../starter/source/devtools/hm_reader/hm_option_read_key.F
30
!|| hm_option_start ../starter/source/devtools/hm_reader/hm_option_start.F
31
!||--- uses -----------------------------------------------------
32
!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
33
!|| r2r_mod ../starter/share/modules1/r2r_mod.F
34
!|| submodel_mod ../starter/share/modules1/submodel_mod.F
35
!||====================================================================
36
SUBROUTINE
hm_preread_pload
(NUMPRES,IGRNOD ,IGRSURF ,LSUBMODEL)
37
C-----------------------------------------------
38
C M o d u l e s
39
C-----------------------------------------------
40
USE
r2r_mod
41
USE
groupdef_mod
42
USE
submodel_mod
43
USE
hm_option_read_mod
44
USE
names_and_titles_mod
,
ONLY
:
nchartitle
45
C-----------------------------------------------
46
C I m p l i c i t T y p e s
47
C-----------------------------------------------
48
#include "implicit_f.inc"
49
C-----------------------------------------------
50
C C o m m o n B l o c k s
51
C-----------------------------------------------
52
#include "com04_c.inc"
53
#include "r2r_c.inc"
54
C-----------------------------------------------
55
C D u m m y A r g u m e n t s
56
C-----------------------------------------------
57
INTEGER
NUMPRES
58
C-----------------------------------------------
59
TYPE
(GROUP_) ,
DIMENSION(NGRNOD)
:: IGRNOD
60
TYPE
(SURF_) ,
DIMENSION(NSURF)
:: IGRSURF
61
TYPE
(
submodel_data
),
INTENT(IN)
::LSUBMODEL(*)
62
C-----------------------------------------------
63
C L o c a l V a r i a b l e s
64
C-----------------------------------------------
65
INTEGER
I, J, NLD, ISU, ISS, NN, ID
66
CHARACTER(LEN=NCHARTITLE)
::TITR
67
C-----------------------------------------------
68
C E x t e r n a l F u n c t i o n s
69
C-----------------------------------------------
70
LOGICAL
IS_AVAILABLE
71
C=======================================================================
72
C Pressions PLOAD
73
C-------------------------
74
is_available = .false.
75
nld = numpres
76
numpres = 0
77
C--------------------------------------------------
78
C START BROWSING MODEL /PLOAD
79
C--------------------------------------------------
80
CALL
hm_option_start
(
'/PLOAD'
)
81
C--------------------------------------------------
82
C BROWSING MODEL Surface 1->NLD
83
C--------------------------------------------------
84
DO
i=1,nld
85
nn = 0
86
C--------------------------------------------------
87
C EXTRACT DATAS OF SURF
88
C--------------------------------------------------
89
CALL
hm_option_read_key
(lsubmodel,
90
. option_id = id,
91
. option_titr = titr)
92
C--------------------------------------------------
93
C EXTRACT DATAS (INTEGER VALUES)
94
C--------------------------------------------------
95
CALL
hm_get_intv
(
'entityid'
,isu,is_available,lsubmodel)
96
C--------------------------------------------------
97
IF
(isu > 0)
THEN
98
DO
j=1,nsurf
99
IF
(isu == igrsurf(j)%ID)
THEN
100
iss = j
101
nn = igrsurf(iss)%NSEG
102
EXIT
103
ENDIF
104
ENDDO
105
ENDIF
106
Cmultidomains -> shared segments are counted only once
107
IF
(nsubdom>0)
THEN
108
IF
(iddom>0) nn = nn-
isurf_r2r
(1,iss)
109
nncl
(nconld+i)=nn
110
ENDIF
111
C-----------
112
numpres = numpres + nn
113
ENDDO
114
C---
115
RETURN
116
END SUBROUTINE
hm_preread_pload
hm_get_intv
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
Definition
hm_get_intv.F:528
hm_option_start
subroutine hm_option_start(entity_type)
Definition
hm_option_start.F:253
hm_preread_pload
subroutine hm_preread_pload(numpres, igrnod, igrsurf, lsubmodel)
Definition
hm_preread_pload.F:37
hm_option_read_mod::hm_option_read_key
Definition
hm_option_read_mod.F:414
groupdef_mod
Definition
groupdef_mod.F:668
hm_option_read_mod
Definition
hm_option_read_mod.F:412
names_and_titles_mod
Definition
names_and_titles_mod.F:1002
names_and_titles_mod::nchartitle
integer, parameter nchartitle
Definition
names_and_titles_mod.F:1008
r2r_mod
Definition
r2r_mod.F:125
r2r_mod::nncl
integer, dimension(:), allocatable nncl
Definition
r2r_mod.F:131
r2r_mod::isurf_r2r
integer, dimension(:,:), allocatable isurf_r2r
Definition
r2r_mod.F:143
submodel_mod
Definition
submodel_mod.F:717
submodel_mod::submodel_data
Definition
submodel_mod.F:728
starter
source
loads
general
pload
hm_preread_pload.F
Generated by
1.15.0