OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_inter_lagmul_type16.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_inter_lagmul_type16 ../starter/source/interfaces/int16/hm_read_inter_lagmul_type16.F
25!||--- called by ------------------------------------------------------
26!|| hm_read_inter_lagmul ../starter/source/interfaces/reader/hm_read_inter_lagmul.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.F
29!|| hm_get_intv ../starter/source/devtools/hm_reader/hm_get_intv.f
30!|| ngr2usr ../starter/source/system/nintrr.F
31!||--- uses -----------------------------------------------------
32!|| message_mod ../starter/share/message_module/message_mod.f
33!|| submodel_mod ../starter/share/modules1/submodel_mod.F
34!||====================================================================
36 . IPARI ,STFAC ,FRIGAP ,NOINT ,
37 . IGRNOD ,IGRBRIC ,LSUBMODEL )
38C============================================================================
39C M o d u l e s
40C-----------------------------------------------
41 USE message_mod
42 USE groupdef_mod
43 USE submodel_mod
44C-----------------------------------------------
45C I m p l i c i t T y p e s
46C-----------------------------------------------
47#include "implicit_f.inc"
48C-----------------------------------------------
49C D u m m y A r g u m e n t s
50C-----------------------------------------------
51 INTEGER ISU1,ISU2,NOINT
52 INTEGER IPARI(*)
53 my_real frigap(*) , stfac
54 TYPE (GROUP_) ,TARGET ,DIMENSION(NGRNOD) :: IGRNOD
55 TYPE (GROUP_) ,TARGET, DIMENSION(NGRBRIC) :: IGRBRIC
56 TYPE(submodel_data) LSUBMODEL(*)
57C----------------------s-------------------------
58C C o m m o n B l o c k s
59C-----------------------------------------------
60#include "com01_c.inc"
61#include "com04_c.inc"
62#include "scr06_c.inc"
63#include "units_c.inc"
64C-----------------------------------------------
65C L o c a l V a r i a b l e s
66C-----------------------------------------------
67 INTEGER :: ISU10,ISU20,IDUM,MULTIMP,ITIED,NTYP,IS1,IS2
68 my_real :: STARTT,BUMULT,STOPT,GAP
69 INTEGER, DIMENSION(:), POINTER :: INGR2USR
70 LOGICAL IS_AVAILABLE
71C-----------------------------------------------
72C E x t e r n a l F u n c t i o n s
73C-----------------------------------------------
74 INTEGER NGR2USR
75C=======================================================================
76C reading /INTER/LAGMUL/TYPE16
77C=======================================================================
78
79C Initializations
80 ntyp = 16
81 startt = zero
82 stopt = ep20
83 stfac = one_fifth
84 gap = zero
85c------------------------------------------------------------
86c Card1
87 CALL hm_get_intv('secondaryentityids ',isu10,is_available,lsubmodel)
88 CALL hm_get_intv('mainentityids',isu20,is_available,lsubmodel)
89c
90c Card2
91 CALL hm_get_intv('Itied' ,itied,is_available,lsubmodel)
92c------------------------------------------------------------
93c CHECKS
94c------------------------------------------------------------
95 is1 = 0
96 is2 = 5
97 ingr2usr => igrnod(1:ngrnod)%ID
98 isu1 = ngr2usr(isu10,ingr2usr,ngrnod)
99 ingr2usr => igrbric(1:ngrbric)%ID
100 isu2 = ngr2usr(isu20,ingr2usr,ngrbric)
101c
102 bumult = bmul0
103 multimp=12
104c
105 IF (nspmd > 1) THEN
106 CALL ancmsg(msgid=755,msgtype=msgerror,anmode=aninfo,c1='TYPE 16 LAGRANGE INTERFACE')
107 END IF
108c------------------------------------------------------------
109c STORAGE
110c------------------------------------------------------------
111 ipari(7) = ntyp
112 ipari(13) = is1*10+is2
113 ipari(15) = noint
114 ipari(23) = multimp
115 ipari(30) = itied
116 ipari(45) = isu1
117 ipari(46) = isu2
118C
119 frigap(2) = gap
120 frigap(3) = startt
121 frigap(4) = bumult
122 frigap(5) = one
123 frigap(11)= stopt
124C------------------------------------------------------------
125C PRINTOUT
126C------------------------------------------------------------
127 WRITE(iout,1000)isu10,isu20,itied,startt,stopt
128C
129 IF(is1 == 0)THEN
130 WRITE(iout,'(6X,A)')'NO SECONDARY SURFACE INPUT'
131 ELSEIF(is1 == 1)THEN
132 WRITE(iout,'(6X,A)')'SECONDARY SURFACE INPUT BY SEGMENTS'
133 ELSEIF(is1 == 2)THEN
134 WRITE(iout,'(6X,A)')'SECONDARY SURFACE INPUT BY NODES'
135 ELSEIF(is1 == 3)THEN
136 WRITE(iout,'(6X,A)')'SECONDARY SURFACE INPUT BY SEGMENTS'
137 ELSEIF(is1 == 4 )THEN
138 WRITE(iout,'(6X,A)')'SECONDARY SIDE INPUT BY BRICKS'
139 ELSEIF(is1 == 5 )THEN
140 WRITE(iout,'(6X,A)')'SECONDARY SIDE INPUT BY SOLID ELEMENTS'
141 ENDIF
142 IF(is2 == 0)THEN
143 WRITE(iout,'(6X,A)')'NO MAIN SURFACE INPUT'
144 ELSEIF(is2 == 1)THEN
145 WRITE(iout,'(6X,A)')'MAIN SURFACE INPUT BY SEGMENTS'
146 ELSEIF(is2 == 2)THEN
147 WRITE(iout,'(6X,A)')'MAIN SURFACE INPUT BY NODES'
148 ELSEIF(is2 == 3)THEN
149 WRITE(iout,'(6X,A)')'MAIN SURFACE INPUT BY SEGMENTS'
150 ELSEIF(is2 == 4)THEN
151 WRITE(iout,'(6X,A)')'MAIN SURFACE REFERS ',
152 . 'TO HYPER-ELLIPSOIDAL SURFACE'
153 ENDIF
154 WRITE(iout,'(A)')' '
155c-----------
156 RETURN
157c--------------------------------------------------------------
158 1000 FORMAT(//
159 . ' TYPE 16 NODES TO 16 NODES THICK SHELL ' //,
160 . ' NODE GROUP . . . . . . . . . . . . . . . . ',i10/,
161 . ' SOLID ELEMENT GROUP. . . . . . . . . . . . ',i10/,
162 . ' ITIED . . . . . . . . . . . . . . . . . . . ',i10/,
163 . ' 0: SLIDING '/,
164 . ' 1: TIED (during contact)'/,
165 . ' 2: TIED (no rebound)'/,
166 . ' START TIME. . . . . . . . . . . . . . . . . ',1pg20.13/,
167 . ' STOP TIME . . . . . . . . . . . . . . . . . ',1pg20.13/)
168c--------------------------------------------------------------
169 END
#define my_real
Definition cppsort.cpp:32
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
subroutine hm_read_inter_lagmul_type16(ipari, stfac, frigap, noint, igrnod, igrbric, lsubmodel)
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
Definition message.F:889
program starter
Definition starter.F:39