OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
ingrbric.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!|| ingrbric ../starter/source/interfaces/interf1/ingrbric.F
25!||--- called by ------------------------------------------------------
26!|| lecins ../starter/source/interfaces/interf1/lecins.F
27!|| lecint ../starter/source/interfaces/interf1/lecint.F
28!||--- uses -----------------------------------------------------
29!|| format_mod ../starter/share/modules1/format_mod.F90
30!||====================================================================
31 SUBROUTINE ingrbric(MSN,BRICS, MSV, IXS, NBRIC, PM,S_MSV ,IGEO)
32C-----------------------------------------------------------------------
33C This subroutine lists all brick in the /GRBRICK
34C (for example it is used with /inter/type22 which requires a grbrick_id)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE format_mod , ONLY : fmw_10i
39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43C-----------------------------------------------
44C C o m m o n B l o c k s
45C-----------------------------------------------
46#include "units_c.inc"
47#include "com04_c.inc"
48#include "param_c.inc"
49#include "scr03_c.inc"
50#include "inter22.inc"
51C-----------------------------------------------
52C D u m m y A r g u m e n t s
53C-----------------------------------------------
54 INTEGER , INTENT(IN) :: NBRIC,S_MSV
55 INTEGER , INTENT(IN) :: BRICS(NBRIC), IXS(NIXS,NUMELS), IGEO(NPROPGI,NUMGEO)
56 INTEGER , INTENT(INOUT) :: MSN, MSV(S_MSV)
57 my_real , INTENT(IN) :: pm(npropm,nummat)
58C-----------------------------------------------
59C L o c a l V a r i a b l e s
60C-----------------------------------------------
61 INTEGER :: I, IMAT, IPID, IALE_, IF_ALE, IF_EUL, JALE_FROM_MAT, JALE_FROM_PROP
62C-----------------------------------------------
63C S o u r c e L i n e s
64C-----------------------------------------------
65 msn = nbric
66 i22_aleul = 0
67 if_ale = 0
68 if_eul = 0
69 DO i=1,nbric
70 msv(i) = brics(i)
71 END DO
72
73 IF(int22/=0)THEN
74 DO i=1,nbric
75 imat = ixs(1,msv(i))
76 ipid = ixs(10,msv(i))
77 jale_from_mat = nint(pm(72,imat))
78 jale_from_prop = igeo(62,ipid)
79 iale_ = max(jale_from_mat, jale_from_prop) !if inconsistent, error message was displayed in PART reader
80 IF(iale_==1)if_ale=1
81 IF(iale_==2)if_eul=1
82 ENDDO
83 IF(if_ale==1)THEN
84 i22_aleul = 1
85 ELSEIF(if_eul==1)THEN
86 i22_aleul = 2
87 ELSE
88 i22_aleul = 0
89 ENDIF
90 ENDIF
91
92 IF(ipri >= 1) THEN
93 WRITE(iout,'(/,A,/)') ' BRICKS USED FOR FLUID DOMAIN DEFINITION'
94 IF (nbric>0)THEN
95 WRITE(iout,fmt=fmw_10i)(ixs(11,msv(i)),i=1,msn)
96 ELSE
97 WRITE(iout,fmt='(A)') ' empty !'
98 ENDIF
99 ENDIF
100C------------------------------------------------------------
101 RETURN
102 END
#define my_real
Definition cppsort.cpp:32
subroutine ingrbric(msn, brics, msv, ixs, nbric, pm, s_msv, igeo)
Definition ingrbric.F:32
#define max(a, b)
Definition macros.h:21