OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_friction_models.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_friction_models ../starter/source/interfaces/friction/reader/hm_read_friction_models.F
25!||--- called by ------------------------------------------------------
26!|| lectur ../starter/source/starter/lectur.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.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!|| hm_read_friction ../starter/source/interfaces/friction/reader/hm_read_friction.F
32!||--- uses -----------------------------------------------------
33!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
34!|| message_mod ../starter/share/message_module/message_mod.F
35!|| r2r_mod ../starter/share/modules1/r2r_mod.F
36!|| reader_old_mod ../starter/share/modules1/reader_old_mod.F90
37!|| submodel_mod ../starter/share/modules1/submodel_mod.F
38!||====================================================================
40 1 NOM_OPT ,UNITAB ,IGRPART ,IPART ,TAGPRT_FRIC,
41 2 TABCOUPLEPARTS_FRIC_TMP,TABCOEF_FRIC_TMP,INTBUF_FRIC_TAB ,
42 . NSETFRICTOT ,
43 3 IFLAG ,COEFSLEN ,IORTHFRICMAX ,IFRICORTH_TMP ,NGRPF ,
44 4 LENGRPF ,LENG ,NSETMAX ,LSUBMODEL )
45C============================================================================
46C M o d u l e s
47C-----------------------------------------------
48 USE unitab_mod
49 USE r2r_mod
50 USE message_mod
51 USE intbuf_fric_mod
52 USE groupdef_mod
53 USE submodel_mod
56 USE reader_old_mod , ONLY : irec
57C-----------------------------------------------
58C I m p l i c i t T y p e s
59C-----------------------------------------------
60#include "implicit_f.inc"
61C-----------------------------------------------
62C C o m m o n B l o c k s
63C-----------------------------------------------
64#include "com04_c.inc"
65#include "units_c.inc"
66#include "scr17_c.inc"
67C-----------------------------------------------
68C D u m m y A r g u m e n t s
69C-----------------------------------------------
70 TYPE (UNIT_TYPE_),INTENT(IN) ::UNITAB
71 INTEGER NOM_OPT(LNOPT1,*)
72 INTEGER IFLAG ,NSETFRICTOT ,COEFSLEN ,IORTHFRICMAX ,NGRPF ,LENG ,NSETMAX
73 INTEGER IPART(LIPART1,*) ,TAGPRT_FRIC(*),
74 . TABCOUPLEPARTS_FRIC_TMP(NINTERFRIC,*),IFRICORTH_TMP(NINTERFRIC,*),
75 . lengrpf
76
77 my_real tabcoef_fric_tmp(ninterfric,*)
78
79 TYPE(intbuf_fric_struct_) INTBUF_FRIC_TAB(*)
80 TYPE (SUBMODEL_DATA), DIMENSION(*),INTENT(IN) :: LSUBMODEL
81C-----------------------------------------------
82 TYPE (GROUP_) , DIMENSION(NGRPART) :: IGRPART
83C-----------------------------------------------
84C L o c a l V a r i a b l e s
85C-----------------------------------------------
86 INTEGER NIF ,NIN , NSET ,NGRPF0 ,NOINTF ,SUB_ID ,UID ,IFLAGUNIT ,J
87 CHARACTER(LEN=NCHARTITLE) :: TITR
88C
89C=======================================================================
90C READING FRICTION Model /FRICTION
91C=======================================================================
92C
93 nif=0
94C--------------------------------------------------
95C WRITE TITLE IN OUT FILE
96C--------------------------------------------------
97 IF(iflag==1) WRITE(iout,1000)
98C
99
100C--------------------------------------------------
101C START BROWSING MODEL FRICTIONS
102C--------------------------------------------------
103 CALL hm_option_start('/FRICTION')
104C--------------------------------------------------
105C BROWSING FRICTION MODELS 1->NINTERFRIC
106C--------------------------------------------------
107 DO nin=1,ninterfric
108c
109C--------------------------------------------------
110C EXTRACT DATAS OF /FRICTION
111C--------------------------------------------------
112 CALL hm_option_read_key(lsubmodel,
113 . option_id = nointf,
114 . unit_id = uid,
115 . submodel_id = sub_id,
116 . option_titr = titr)
117C--------------------------------------------------
118C CHECK IF UID IS EXISTING
119C--------------------------------------------------
120 iflagunit = 0
121 DO j=1,unitab%NUNITS
122 IF (unitab%UNIT_ID(j) == uid) THEN
123 iflagunit = 1
124 EXIT
125 ENDIF
126 ENDDO
127 IF (uid/=0.AND.iflagunit==0) THEN
128 CALL ancmsg(msgid=659,anmode=aninfo,msgtype=msgerror,
129 . i2=uid,i1=nointf,c1='FRITION',
130 . c2='FRICTION',
131 . c3=titr)
132 ENDIF
133
134C--------------------------------
135C Friction model defining
136C-------------------------
137
138 nif=nif+1
139c
140 nset = 0
141 ngrpf0 = ngrpf
142C
143 CALL hm_read_friction(
144 1 nif ,nom_opt ,titr ,unitab ,igrpart ,
145 2 ipart ,nset ,tagprt_fric ,tabcoupleparts_fric_tmp,tabcoef_fric_tmp,
146 3 intbuf_fric_tab(nif)%FRICMOD,intbuf_fric_tab(nif)%IFFILTER ,
147 . intbuf_fric_tab(nif)%XFILTR_FRIC,intbuf_fric_tab(nif)%FRICFORM ,
148 4 iflag ,intbuf_fric_tab(nif)%IORTHFRIC,ifricorth_tmp ,ngrpf ,
149 5 lengrpf ,leng ,nointf , lsubmodel )
150
151 IF(iflag == 0) THEN
152 nset = ngrpf - ngrpf0
153 nset = nset * nset
154 nsetfrictot = nsetfrictot + nset
155 nsetmax =max(nsetmax,nset)
156 intbuf_fric_tab(nif)%NSETPRTS = nset
157 iorthfricmax = max(iorthfricmax,intbuf_fric_tab(nif)%IORTHFRIC)
158 ELSE
159 nsetfrictot = nsetfrictot + nset
160 intbuf_fric_tab(nif)%NSETPRTS = nset
161 nsetmax =max(nsetmax,nset)
162 iorthfricmax = max(iorthfricmax,intbuf_fric_tab(nif)%IORTHFRIC)
163 ENDIF
164 irec=irec+1
165
166 ENDDO
167C
168C=======================================================================
169 RETURN
170C-----
171 1000 FORMAT( /1x,' FRICTION INTERFACES ' /
172 . 1x,' -------------------- '// )
173
174 END SUBROUTINE hm_read_friction_models
#define my_real
Definition cppsort.cpp:32
subroutine hm_option_read_key(lsubmodel, option_id, unit_id, submodel_index, submodel_id, option_titr, keyword1, keyword2, keyword3, keyword4, opt_pos)
subroutine hm_option_start(entity_type)
subroutine hm_read_friction(nif, nom_opt, titr, unitab, igrpart, ipart, nset, tagprt_fric, tabcoupleparts_fric_tmp, tabcoef_fric_tmp, mfrot, ifq, xfiltr, fricform, iflag, orthfric, ifricorth_tmp, ngrpf, lengrpf, leng, nointf, lsubmodel)
subroutine hm_read_friction_models(nom_opt, unitab, igrpart, ipart, tagprt_fric, tabcoupleparts_fric_tmp, tabcoef_fric_tmp, intbuf_fric_tab, nsetfrictot, iflag, coefslen, iorthfricmax, ifricorth_tmp, ngrpf, lengrpf, leng, nsetmax, lsubmodel)
#define max(a, b)
Definition macros.h:21
integer, parameter nchartitle
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