OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
lcgeo19.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!|| lcgeo19 ../starter/source/elements/shell/coque/lcgeo19.F
25!||--- called by ------------------------------------------------------
26!|| lecstack_ply ../starter/source/properties/composite_options/stack/lecstack_ply.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.F
29!|| fretitl2 ../starter/source/starter/freform.F
30!|| hm_get_floatv ../starter/source/devtools/hm_reader/hm_get_floatv.f
31!|| hm_get_intv ../starter/source/devtools/hm_reader/hm_get_intv.F
32!|| hm_option_is_encrypted ../starter/source/devtools/hm_reader/hm_option_is_encrypted.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 lcgeo19(GEO ,IGEO ,PM ,IPM ,UNITAB,IUNIT,
38 . ISTACK,IDRAPEID,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 C o m m o n B l o c k s
49C-----------------------------------------------
50#include "units_c.inc"
51#include "com04_c.inc"
52#include "param_c.inc"
53#include "scr17_c.inc"
54#include "drape_c.inc"
55C-----------------------------------------------
56C D u m m y A r g u m e n t s
57C-----------------------------------------------
58 TYPE (UNIT_TYPE_),INTENT(IN) ::UNITAB
59 INTEGER IGEO(NPROPGI),IPM(NPROPMI,*),ISTACK,IDRAPEID(*),IUNIT
61 . geo(npropg), pm(npropm,*)
62 TYPE(submodel_data), DIMENSION(NSUBMOD), INTENT(IN) :: LSUBMODEL
63C-----------------------------------------------
64C L o c a l V a r i a b l e s
65C-----------------------------------------------
66 CHARACTER ISS*3
67 INTEGER IMID, IG, J
69 . thickt
70 INTEGER ISH3N,DRAPE_ID
71 CHARACTER(LEN=NCHARTITLE)::TITR,TITR1
72 LOGICAL :: IS_AVAILABLE, IS_ENCRYPTED
73 LOGICAL :: FOUND
74
75
76 is_encrypted = .false.
77 is_available = .false.
78
79 CALL hm_option_is_encrypted(is_encrypted)
80
81 ish3n = igeo(18)
82 CALL hm_get_intv('mat_ID', imid, is_available, lsubmodel)
83 CALL hm_get_floatv('t', geo(1), is_available, lsubmodel, unitab)
84 CALL hm_get_floatv('delta_phi', geo(2), is_available, lsubmodel, unitab)
85 CALL hm_get_intv('grsh4n_ID', igeo(40), is_available, lsubmodel)
86 CALL hm_get_intv('grsh3n_ID', igeo(41), is_available, lsubmodel)
87 CALL hm_get_intv('Npt_ply', igeo(4), is_available, lsubmodel)
88 CALL hm_get_floatv('alpha_i', geo(212), is_available, lsubmodel, unitab)
89
90 CALL hm_get_intv('drape_ID', drape_id, is_available, lsubmodel)
91 CALL hm_get_intv('def_orth', igeo(49), is_available, lsubmodel)
92
93 ig = igeo(1)
94 IF (igeo(4) <= 0) igeo(4) = 1
95 IF (geo(212) == zero) geo(212) = ninety
96 IF (is_encrypted) THEN
97 WRITE(iout,1000)ig
98 1000 FORMAT(
99 & 5x,' LAYER SHELL PROPERTY SET'/,
100 & 5x,'------------------------------------'/,
101 & 5x,'PROPERTY SET NUMBER . . . . . . . . . .=',i10/,
102 & 5x,'CONFIDENTIAL DATA'//)
103 ELSE
104 WRITE(iout,2000)ig,imid,geo(1),geo(2),igeo(40),igeo(41),igeo(4),
105 . geo(212),drape_id,igeo(49)
106 ENDIF
107 geo(2)=geo(2)*pi/hundred80
108 geo(212)=geo(212)*pi/hundred80
109 igeo(48) = 0 ! keeped for DRAPE IDENTIFICATION NUMBER
110C ------------------------------------
111C
112C check for layer materials compatibility moved to "lecgeo"
113C
114 found = .false.
115 IF(imid > 0) THEN
116 DO j=1,nummat
117 IF (ipm(1,j) == imid) THEN
118 igeo(101) = j
119 found = .true.
120 EXIT
121 ENDIF
122 ENDDO
123 ENDIF
124 IF (.NOT. found) THEN
125 CALL fretitl2(titr,igeo(npropgi-ltitr+1),ltitr)
126 IF(istack == 0) THEN
127 CALL ancmsg(msgid=31,
128 . msgtype=msgerror,
129 . anmode=aninfo_blind_2,
130 . i1=ig,
131 . c1=titr,
132 . i2=imid)
133 ELSE
134 CALL ancmsg(msgid=1151,
135 . msgtype=msgerror,
136 . anmode=aninfo_blind_2,
137 . i1=ig,
138 . c1=titr,
139 . i2=imid)
140
141 ENDIF
142 igeo(101) = 1
143 ENDIF
144C
145C check for wright drape id definition
146C
147 IF (ndrape > 0 .OR. drape_id > 0) THEN
148 found = .false.
149 DO j=1,ndrape
150 IF (drape_id > 0 .AND. drape_id == idrapeid(j)) THEN
151 igeo(48) = drape_id
152 found = .true.
153 EXIT
154 ENDIF
155 ENDDO
156 IF (.NOT. found) THEN
157 IF (drape_id > 0)THEN
158 CALL fretitl2(titr,igeo(npropgi-ltitr+1),ltitr)
159 CALL ancmsg(msgid=1153,
160 . msgtype=msgerror,
161 . anmode=aninfo,
162 . i1=ig,
163 . c1=titr,
164 . i2=drape_id)
165 ENDIF
166 ENDIF
167 ENDIF ! IF (NDRAPE > 0)
168c-----------
169 RETURN
170c-----------
171 2000 FORMAT(/,
172 & 5x,'PLY PROPERTY SET ',/,
173 & 5x,'PROPERTY SET NUMBER . . . . . . . . . . . . . .=',i10/,
174 & 5x,'MATERIAL NUMBER . . . . . . . . . . . . . . . .=',i10/,
175 & 5x,'LAYER THICKNESS . . . . . . . . . . . . . . . .=',1pg20.13/,
176 & 5x,'INCREMENTAL ANGLE (DIR 1,PROJ(DIR 1 / SHELL). . .=',1pg20.13/,
177 & 5x,'SHELL 4-nodes GROUP IDENTIFIER. . . . . . . . .=',i10/,
178 & 5x,'SHELL 3-nodes GROUP IDENTIFIER. . . . . . . . .=',i10/,
179 & 5x,'NUMBER OF INTEGRATION POINTS THROUGH LAYER. . .=',i10/,
180 & 5x,'ORTHOTROPY ANGLE BETWEEN (DIR 1,DIR 2). . . . . =',1pg20.13/,
181 & 5x,'DRAPE IDENTIFIER . . . . . . . . . . . . . . .=',i10/,
182 & 5x,'DEF_ORTH FLAG . . . . . . . . . . . . . . . . . =',i10/)
183 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_option_is_encrypted(is_encrypted)
subroutine lcgeo19(geo, igeo, pm, ipm, unitab, iunit, istack, idrapeid, lsubmodel)
Definition lcgeo19.F:39
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:895
subroutine fretitl2(titr, iasc, l)
Definition freform.F:799
program starter
Definition starter.F:39