OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
prelecsec4bolt.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!|| prelecsec4bolt ../starter/source/tools/sect/prelecsec4bolt.F
25!||--- called by ------------------------------------------------------
26!|| lectur ../starter/source/starter/lectur.F
27!||--- calls -----------------------------------------------------
28!|| fretitl ../starter/source/starter/freform.F
29!|| grsize_ele ../starter/source/system/nintrr.F
30!|| grsize_r2r ../starter/source/coupling/rad2rad/routines_r2r.F
31!|| grsizen ../starter/source/system/nintrr.F
32!|| hm_get_intv ../starter/source/devtools/hm_reader/hm_get_intv.F
33!|| hm_option_read_key ../starter/source/devtools/hm_reader/hm_option_read_key.F
34!|| hm_option_start ../starter/source/devtools/hm_reader/hm_option_start.F
35!|| usr2sys ../starter/source/system/sysfus.F
36!||--- uses -----------------------------------------------------
37!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
38!|| message_mod ../starter/share/message_module/message_mod.F
39!|| r2r_mod ../starter/share/modules1/r2r_mod.F
40!|| submodel_mod ../starter/share/modules1/submodel_mod.F
41!||====================================================================
42 SUBROUTINE prelecsec4bolt(SNSTRF ,SSECBUF ,IGRNOD,ITABM1,FLAG_R2R,
43 . NOM_OPT,IGRBRIC,LSUBMODEL)
44C-----------------------------------------------
45C M o d u l e s
46C-----------------------------------------------
47 USE r2r_mod
48 USE message_mod
49 USE groupdef_mod
50 USE submodel_mod
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 "scr17_c.inc"
61#include "com04_c.inc"
62C-----------------------------------------------
63C D u m m y A r g u m e n t s
64C-----------------------------------------------
65 INTEGER ,INTENT(INOUT) :: SNSTRF,SSECBUF
66 INTEGER ,INTENT(IN) :: ITABM1(*)
67 INTEGER NOM_OPT(LNOPT1,*)
68C-----------------------------------------------
69 TYPE (GROUP_) ,DIMENSION(NGRNOD) :: IGRNOD
70 TYPE (GROUP_) ,DIMENSION(NGRBRIC) :: IGRBRIC
71C-----------------------------------------------
72 TYPE(submodel_data),INTENT(IN) :: LSUBMODEL(NSUBMOD)
73C-----------------------------------------------
74C L o c a l V a r i a b l e s
75C-----------------------------------------------
76 INTEGER I,KK,IBID,ISAV,IGU,IGUS,IGUQ,IGUC,IGUT,IGUP,IGUR,IGUTG,
77 . nnod,nbinter,nsegq,nsegs,nsegc,nsegt,nsegp,nsegr,nsegtg,nfram,
78 . id,uid,flag_fmt,flag_fmt_tmp,ifix_tmp,l,istyp,
79 . flag_r2r,n1,n2,n3,pos_sec_r2r,nseg0,nseg,
80 . compt,ng
81 CHARACTER(LEN=NCHARTITLE)::TITR
82 CHARACTER(LEN=NCHARKEY)::KEY2
83 CHARACTER MESS*40
84 LOGICAL IS_AVAILABLE
85C-----------------------------------------------
86C E x t e r n a l F u n c t i o n s
87C-----------------------------------------------
88 INTEGER GRSIZEN,USR2SYS,GRSIZE_R2R,GRSIZE_ELE
89 EXTERNAL grsizen,usr2sys,grsize_r2r,grsize_ele
90C=======================================================================
91 flag_fmt = 0
92 nfram = 0
93 snstrf = 30
94 ssecbuf = 20
95 l = 7
96 compt = 0
97 ng = 0
98 igu = 0
99
100 CALL hm_option_start('/SECT')
101
102 DO i=1,nsect
103
104 ng=ng+1
105
106 CALL hm_option_read_key(lsubmodel, option_id=id, option_titr=titr, unit_id=uid, keyword2=key2)
107 nom_opt(1,i)=id
108 CALL fretitl(titr,nom_opt(lnopt1-ltitr+1,i),ltitr)
109
110 CALL hm_get_intv('Axis_Origin_Node_N1', n1, is_available, lsubmodel)
111 CALL hm_get_intv('Axis_Node_N2', n2, is_available, lsubmodel)
112 CALL hm_get_intv('Axis_Node_N3', n3, is_available, lsubmodel)
113 CALL hm_get_intv('ISAVE', isav, is_available, lsubmodel)
114
115 IF(key2(1:5) == 'PARAL' .OR. key2(1:6) == 'CIRCLE') THEN
116 istyp = 1
117 ELSE
118 istyp = 0
119 CALL hm_get_intv('Grnod_ID', igu, is_available, lsubmodel)
120 CALL hm_get_intv('System_Id', nfram, is_available, lsubmodel)
121 ENDIF
122
123 CALL hm_get_intv('grbrick_id', igus, is_available, lsubmodel)
124
125 IF (nfram == 0 .AND. istyp == 0) THEN
126 nnod = grsizen(igu,igrnod,ngrnod)
127 ELSE
128 nnod = 20 * grsize_ele(igus,igrbric,ngrbric)
129 ENDIF
130 nsegs = grsize_ele(igus,igrbric,ngrbric)
131 snstrf = snstrf +30 + nnod !+ NBINTER
132 . + 2*(nsegs) !+NSEGQ+NSEGC+NSEGT+NSEGP+NSEGR+NSEGTG)
133 ssecbuf=ssecbuf+10
134
135 ENDDO
136
137C-----------
138 RETURN
139C-----------
140 END
141C-----------
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
subroutine hm_option_start(entity_type)
initmumps id
integer, parameter nchartitle
integer, parameter ncharkey
subroutine prelecsec4bolt(snstrf, ssecbuf, igrnod, itabm1, flag_r2r, nom_opt, igrbric, lsubmodel)
subroutine fretitl(titr, iasc, l)
Definition freform.F:620