OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
lec_inistate_d00_brick-check.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!|| lec_inistate_d00_brick_check ../starter/source/elements/initia/lec_inistate_d00_brick-check.F
25!||--- called by ------------------------------------------------------
26!|| hm_read_inistate_d00 ../starter/source/elements/initia/hm_read_inistate_d00.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.F
29!||--- uses -----------------------------------------------------
30!|| message_mod ../starter/share/message_module/message_mod.F
31!||====================================================================
33 1 IXS ,IGEO ,ITRIS ,ISOLNODD00 ,IE ,
34 2 NPT ,NLAY ,ISOLNOD ,JJHBE ,IGTYP ,
35 3 ISROT ,KEYWORD )
36C---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----A----+----B----+----C----+----D--
37C-----------------------------------------------
38C M o d u l e s
39C-----------------------------------------------
40 USE message_mod
41C-----------------------------------------------
42C I m p l i c i t T y p e s
43C-----------------------------------------------
44#include "implicit_f.inc"
45C-----------------------------------------------
46C C o m m o n B l o c k s
47C-----------------------------------------------
48#include "param_c.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 INTEGER IXS(NIXS,*), IGEO(NPROPGI,*) ,ITRIS(*), ISOLNODD00(*)
53 INTEGER IE, NPT, ISOLNOD, JJHBE, IGTYP, ISROT, NLAY
54 CHARACTER*15,KEYWORD
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER IPIDD00, JJHBED00, NPTD00, NPTF, NPTR, NPTS, NPTT, ICSTR, IINT, NLY,NNOD
59C-----------------------------------------------
60C---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----A----+----B----+----C----+----D--
61C-----------------------------------------
62C INITIALE STRESS FILE D00
63C CHECK INPUT CONSISTENCY BETWEEN /INIBRI AND D00
64C Erreur if difference in data ( D00 & INIBRI)
65C-----------------------------------------
66 ipidd00 = ixs(10,ie)
67 jjhbed00 = igeo(10,ipidd00)
68 igtyp = igeo(11,ipidd00)
69 isrot = igeo(20,ipidd00)
70 icstr = igeo(14,ipidd00)
71 iint = igeo(15,ipidd00)
72C
73C Solid property ISOLID
74C
75 IF (jjhbed00 == 0) jjhbed00 = 1
76 IF (isolnod==4.OR.isolnod==10) jjhbed00=1
77 IF (isolnod==16.OR.isolnod==20) jjhbed00=16
78 IF ((isolnod==4.OR.isolnod==10).AND.jjhbe /= 1) jjhbe = 1
79 IF (jjhbe == 0) jjhbe = 1
80 IF (jjhbed00 == 1 .AND. iint == 3 .AND. isolnod==8) jjhbed00 = 5
81
82 IF ((jjhbed00 /=jjhbe) .AND.((jjhbed00 /= 2).AND.
83 . (jjhbe /= 0)) .AND. isolnod /= 4) THEN
84 CALL ancmsg(msgid=695,
85 . msgtype=msgerror,
86 . anmode=aninfo,
87 . i1=itris(ie),
88 . c1='FORMULATION',
89 . c2='SOLID PROPERTY',
90 . i2=igeo(1,ipidd00),
91 . c3=keyword)
92 ENDIF
93C
94C Number of nodes
95C
96 nnod = isolnod
97 IF (isolnod==10 .AND. isrot==1) nnod=4
98 IF (isolnodd00(ie) /=nnod) THEN
99 CALL ancmsg(msgid=695,
100 . msgtype=msgerror,
101 . anmode=aninfo,
102 . i1=itris(ie),
103 . c1='NUMBER OF NODES',
104 . c2='BRICK',
105 . i2=itris(ie),
106 . c3=keyword)
107 ENDIF
108C
109 nptd00 = 0
110 nptr = 0
111 npts = 0
112 nptt = 0
113 IF (jjhbed00 == 14 .OR.isolnod==16 .OR.isolnod==20 ) THEN
114 nptf = igeo(4,ipidd00)
115 IF (nptf<=8) nptf = 222
116 nptr=nptf/100
117 npts=mod(nptf/10,10)
118 nptt=mod(nptf,10)
119 END IF
120C
121 IF (jjhbed00 == 14 .AND.igtyp==22 ) THEN
122 SELECT CASE (icstr)
123 CASE(100)
124 nly = nptr
125 IF (nly ==0) nly =iint
126 nptd00 = nly*npts*nptt
127 CASE(10)
128 nly = npts
129 IF (nly ==0) nly =iint
130 nptd00 = nly*nptr*nptt
131 CASE(1)
132 nly = nptt
133 IF (nly ==0) nly =iint
134 nptd00 = nly*nptr*npts
135 CASE DEFAULT
136 nly = -huge(nly)
137 nptd00 = -huge(nptd00)
138 END SELECT
139C
140C Number of layers
141C
142 IF (keyword == '/INIBRI/ORTHO ' .AND. nly /= nlay) THEN
143 CALL ancmsg(msgid=695,
144 . msgtype=msgerror,
145 . anmode=aninfo,
146 . i1=itris(ie),
147 . c1='NUMBER OF LAYERS',
148 . c2='SOLID PROPERTY',
149 . i2=igeo(1,ipidd00),
150 . c3=keyword)
151 ENDIF
152C
153C
154 ELSEIF (jjhbed00 == 14 .OR.isolnod==16 .OR.isolnod==20 ) THEN
155 nptd00 = nptr*npts*nptt
156 ELSEIF (jjhbed00 == 12 .OR.jjhbed00==17.OR.jjhbed00==18) THEN
157 nptd00 = 8
158 ENDIF
159
160 IF (nptd00 == 0 .and. igtyp == 43) nptd00 = 4
161
162 IF (nptd00 == 0) nptd00 = 1
163 IF (isolnod == 10) nptd00 = 4
164 IF (isolnod == 4 .AND. (isrot == 0 .OR. isrot == 3)) THEN
165 nptd00 = 1
166 ELSEIF(isolnod == 4 )THEN
167 nptd00 = 4
168 ELSEIF(jjhbed00 == 15)THEN
169 nptd00 = igeo(4,ipidd00)
170 ENDIF
171
172 IF(keyword =='/INIBRI/ORTHO '.OR.keyword=='/INIBRI/EREF ')RETURN
173C
174C Number of integration points
175C
176 IF (nptd00 /=npt) THEN
177 CALL ancmsg(msgid=695,
178 . msgtype=msgerror,
179 . anmode=aninfo,
180 . i1=itris(ie),
181 . c1='NUMBER OF INTEGRATION POINTS',
182 . c2='SOLID PROPERTY',
183 . i2=igeo(1,ipidd00),
184 . c3=keyword)
185 ENDIF
186C
187 RETURN
188 END
189
subroutine lec_inistate_d00_brick_check(ixs, igeo, itris, isolnodd00, ie, npt, nlay, isolnod, jjhbe, igtyp, isrot, keyword)
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