OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_prop33_fix_jnt.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_prop33_fix_jnt ../starter/source/properties/spring/hm_read_prop33_fix_jnt.F
25!||--- called by ------------------------------------------------------
26!|| hm_read_prop33 ../starter/source/properties/spring/hm_read_prop33.f
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.F
29!|| hm_get_floatv ../starter/source/devtools/hm_reader/hm_get_floatv.F
30!|| hm_get_intv ../starter/source/devtools/hm_reader/hm_get_intv.f
31!|| set_u_geo ../starter/source/user_interface/uaccess.F
32!|| set_u_pnu ../starter/source/user_interface/uaccess.F
33!||--- uses -----------------------------------------------------
34!|| message_mod ../starter/share/message_module/message_mod.F
35!|| submodel_mod ../starter/share/modules1/submodel_mod.F
36!||====================================================================
37 SUBROUTINE hm_read_prop33_fix_jnt(IOUT, ITYP, SKFLAG, PARGEO,IS_ENCRYPTED,
38 . UNITAB,IUNIT,ID,TITR,LSUBMODEL)
39 USE unitab_mod
40 USE message_mod
41 USE submodel_mod
43C-----------------------------------------------
44C I m p l i c i t T y p e s
45C-----------------------------------------------
46#include "implicit_f.inc"
47C-----------------------------------------------
48C A n a l y s e M o d u l e
49C-----------------------------------------------
50C----------+---------+---+---+--------------------------------------------
51C VAR | SIZE |TYP| RW| DEFINITION
52C----------+---------+---+---+--------------------------------------------
53C IOUT | 1 | I | R | OUTPUT FILE UNIT (L00 file)
54C----------+---------+---+---+--------------------------------------------
55C PARGEO | * | F | W | 1)SKEW NUMBER
56C | | | | 2)STIFNESS FOR INTERFACE
57C | | | | 3)FRONT WAVE OPTION
58C | | | | 4)... not yet used
59C----------+---------+---+---+------------------------------------------|
60C D u m m y A r g u m e n t s
61C-----------------------------------------------
62 TYPE (UNIT_TYPE_),INTENT(IN) ::UNITAB
63 INTEGER IOUT, ITYP, SKFLAG,IUNIT
64 my_real pargeo(*)
65 INTEGER ID
66 CHARACTER(LEN=NCHARTITLE) :: TITR
67 LOGICAL IS_ENCRYPTED
68 TYPE(submodel_data),INTENT(IN)::LSUBMODEL(*)
69C=======================================================================
70C L o c a l V a r i a b l e s
71C-----------------------------------------------
72 INTEGER IERROR,IDSK1,IDSK2,ZEROI
74 . xk,xtyp,xflg,xsk1,xsk2,knn,krx,cr,mass,iner,
75 . fac_m,fac_l,fac_t,fac_c,fac_kt,fac_ctx,fac_crx,fac_ct
76C-----------------------------------------------
77 INTEGER SET_U_PNU,SET_U_GEO,KFUNC
78 EXTERNAL set_u_pnu,set_u_geo
79 parameter(kfunc=29)
80 DATA zeroi/0/
81 LOGICAL IS_AVAILABLE
82C=======================================================================
83C---- FIXED JOINT
84C
85 fac_m = unitab%FAC_M(iunit)
86 fac_l = unitab%FAC_L(iunit)
87 fac_t = unitab%FAC_T(iunit)
88 fac_ct = fac_m / fac_t
89 fac_kt = fac_ct / fac_t
90 fac_ctx = fac_t / fac_l
91 fac_crx = fac_t
92C
93C--------------------------------------------------
94C EXTRACT DATAS (INTEGER VALUES)
95C--------------------------------------------------
96 CALL hm_get_intv('Idsk1',idsk1,is_available,lsubmodel)
97 CALL hm_get_intv('Idsk2',idsk2,is_available,lsubmodel)
98C--------------------------------------------------
99C EXTRACT DATAS (REAL VALUES)
100C--------------------------------------------------
101 CALL hm_get_floatv('Xk',xk,is_available,lsubmodel,unitab)
102 CALL hm_get_floatv('Cr',cr,is_available,lsubmodel,unitab)
103 CALL hm_get_floatv('Kn',knn,is_available,lsubmodel,unitab)
104C-----------------------
105 IF (idsk1<=0.OR.idsk1<=0) THEN
106 CALL ancmsg(msgid=386,
107 . msgtype=msgerror,
108 . anmode=aninfo_blind_1,
109 . i1=id,
110 . c1=titr)
111 ENDIF
112 IF (knn==0.) THEN
113 CALL ancmsg(msgid=387,
114 . msgtype=msgerror,
115 . anmode=aninfo_blind_1,
116 . i1=id,
117 . c1=titr)
118 ENDIF
119 IF (cr<zero.OR.cr>1.) THEN
120 CALL ancmsg(msgid=388,
121 . msgtype=msgerror,
122 . anmode=aninfo_blind_1,
123 . i1=id,
124 . c1=titr)
125 ENDIF
126 IF (cr==zero) cr = fiveem2
127C
128 xtyp = ityp
129 xflg = skflag
130 xsk1 = idsk1
131 xsk2 = idsk2
132 mass = zero
133 iner = zero
134C
135 pargeo(1) = 0
136 pargeo(2) = xk
137 pargeo(3) = 0
138C
139 WRITE(iout,500)
140 IF(is_encrypted)THEN
141 WRITE(iout,'(5X,A,//)')'CONFIDENTIAL DATA'
142 ELSE
143 WRITE(iout,1000) idsk1,idsk2,xk,cr,knn
144 ENDIF
145C
146 ierror = set_u_geo(1,xtyp)
147 ierror = set_u_geo(2,xsk1)
148 ierror = set_u_geo(3,xsk2)
149 ierror = set_u_geo(4,knn)
150 ierror = set_u_geo(5,knn)
151 ierror = set_u_geo(6,knn)
152 ierror = set_u_geo(7,knn)
153 ierror = set_u_geo(8,knn)
154 ierror = set_u_geo(9,knn)
155 ierror = set_u_geo(10,knn)
156 ierror = set_u_geo(11,zero)
157 ierror = set_u_geo(12,mass)
158 ierror = set_u_geo(13,iner)
159 ierror = set_u_geo(14,xflg)
160 ierror = set_u_geo(15,cr)
161 ierror = set_u_geo(16,cr)
162 ierror = set_u_geo(17,cr)
163 ierror = set_u_geo(18,cr)
164 ierror = set_u_geo(19,cr)
165 ierror = set_u_geo(20,cr)
166 ierror = set_u_geo(21,zero)
167 ierror = set_u_geo(22,zero)
168 ierror = set_u_geo(23,zero)
169 ierror = set_u_geo(24,zero)
170 ierror = set_u_geo(25,zero)
171 ierror = set_u_geo(26,zero)
172 ierror = set_u_geo(27,fac_ctx)
173 ierror = set_u_geo(28,fac_crx)
174 ierror = set_u_pnu(1,zeroi,kfunc)
175 ierror = set_u_pnu(2,zeroi,kfunc)
176 ierror = set_u_pnu(3,zeroi,kfunc)
177 ierror = set_u_pnu(4,zeroi,kfunc)
178 ierror = set_u_pnu(5,zeroi,kfunc)
179 ierror = set_u_pnu(6,zeroi,kfunc)
180 ierror = set_u_pnu(7,zeroi,kfunc)
181 ierror = set_u_pnu(8,zeroi,kfunc)
182 ierror = set_u_pnu(9,zeroi,kfunc)
183 ierror = set_u_pnu(10,zeroi,kfunc)
184 ierror = set_u_pnu(11,zeroi,kfunc)
185 ierror = set_u_pnu(12,zeroi,kfunc)
186C
187 RETURN
188 500 FORMAT(
189 & 5x,'JOINT TYPE . . . . . . . . . . . . . FIXED JOINT'//)
190 1000 FORMAT(
191 & 5x,'SKEW 1 FRAME ID. . . . . . . . . . . . =',i10/,
192 & 5x,'SKEW 2 FRAME ID. . . . . . . . . . . . =',i10/,
193 & 5x,'STIFFNESS FOR INTERFACE K=E*A/L. . . . =',1pg20.13/,
194 & 5x,'CRITICAL DAMPING COEFFICIENT . . . . . =',1pg20.13/,
195 & 5x,'BLOCKING STIFFNESS KNN . . . . . . . . =',1pg20.13//)
196 RETURN
197 END
#define my_real
Definition cppsort.cpp:32
subroutine hm_get_floatv(name, rval, is_available, lsubmodel, unitab)
subroutine hm_get_intv(name, ival, is_available, lsubmodel)
subroutine hm_read_prop33(iout, nuvar, pargeo, unitab, iunit, id, titr, prop_tag, igtyp, lsubmodel)
subroutine hm_read_prop33_fix_jnt(iout, ityp, skflag, pargeo, is_encrypted, unitab, iunit, id, titr, lsubmodel)
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