OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_preread_pload.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_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)
37C-----------------------------------------------
38C M o d u l e s
39C-----------------------------------------------
40 USE r2r_mod
41 USE groupdef_mod
42 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 "com04_c.inc"
53#include "r2r_c.inc"
54C-----------------------------------------------
55C D u m m y A r g u m e n t s
56C-----------------------------------------------
57 INTEGER NUMPRES
58C-----------------------------------------------
59 TYPE (GROUP_) ,DIMENSION(NGRNOD) :: IGRNOD
60 TYPE (SURF_) ,DIMENSION(NSURF) :: IGRSURF
61 TYPE(submodel_data),INTENT(IN)::LSUBMODEL(*)
62C-----------------------------------------------
63C L o c a l V a r i a b l e s
64C-----------------------------------------------
65 INTEGER I, J, NLD, ISU, ISS, NN, ID
66 CHARACTER(LEN=NCHARTITLE)::TITR
67C-----------------------------------------------
68C E x t e r n a l F u n c t i o n s
69C-----------------------------------------------
70 LOGICAL IS_AVAILABLE
71C=======================================================================
72C Pressions PLOAD
73C-------------------------
74 is_available = .false.
75 nld = numpres
76 numpres = 0
77C--------------------------------------------------
78C START BROWSING MODEL /PLOAD
79C--------------------------------------------------
80 CALL hm_option_start('/PLOAD')
81C--------------------------------------------------
82C BROWSING MODEL Surface 1->NLD
83C--------------------------------------------------
84 DO i=1,nld
85 nn = 0
86C--------------------------------------------------
87C EXTRACT DATAS OF SURF
88C--------------------------------------------------
89 CALL hm_option_read_key(lsubmodel,
90 . option_id = id,
91 . option_titr = titr)
92C--------------------------------------------------
93C EXTRACT DATAS (INTEGER VALUES)
94C--------------------------------------------------
95 CALL hm_get_intv ('entityid',isu,is_available,lsubmodel)
96C--------------------------------------------------
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
106Cmultidomains -> 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
111C-----------
112 numpres = numpres + nn
113 ENDDO
114C---
115 RETURN
116 END SUBROUTINE hm_preread_pload
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
subroutine hm_option_start(entity_type)
subroutine hm_preread_pload(numpres, igrnod, igrsurf, lsubmodel)
integer, parameter nchartitle
integer, dimension(:), allocatable nncl
Definition r2r_mod.F:131
integer, dimension(:,:), allocatable isurf_r2r
Definition r2r_mod.F:143