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
39 use element_mod , only : nixs
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47#include "units_c.inc"
48#include "com04_c.inc"
49#include "param_c.inc"
50#include "scr03_c.inc"
51#include "inter22.inc"
52C-----------------------------------------------
53C D u m m y A r g u m e n t s
54C-----------------------------------------------
55 INTEGER , INTENT(IN) :: NBRIC,S_MSV
56 INTEGER , INTENT(IN) :: BRICS(NBRIC), IXS(NIXS,NUMELS), IGEO(NPROPGI,NUMGEO)
57 INTEGER , INTENT(INOUT) :: MSN, MSV(S_MSV)
58 my_real , INTENT(IN) :: pm(npropm,nummat)
59C-----------------------------------------------
60C L o c a l V a r i a b l e s
61C-----------------------------------------------
62 INTEGER :: I, IMAT, IPID, IALE_, IF_ALE, IF_EUL, JALE_FROM_MAT, JALE_FROM_PROP
63C-----------------------------------------------
64C S o u r c e L i n e s
65C-----------------------------------------------
66 msn = nbric
67 i22_aleul = 0
68 if_ale = 0
69 if_eul = 0
70 DO i=1,nbric
71 msv(i) = brics(i)
72 END DO
73
74 IF(int22/=0)THEN
75 DO i=1,nbric
76 imat = ixs(1,msv(i))
77 ipid = ixs(10,msv(i))
78 jale_from_mat = nint(pm(72,imat))
79 jale_from_prop = igeo(62,ipid)
80 iale_ = max(jale_from_mat, jale_from_prop) !if inconsistent, error message was displayed in PART reader
81 IF(iale_==1)if_ale=1
82 IF(iale_==2)if_eul=1
83 ENDDO
84 IF(if_ale==1)THEN
85 i22_aleul = 1
86 ELSEIF(if_eul==1)THEN
87 i22_aleul = 2
88 ELSE
89 i22_aleul = 0
90 ENDIF
91 ENDIF
92
93 IF(ipri >= 1) THEN
94 WRITE(iout,'(/,A,/)') ' BRICKS USED FOR FLUID DOMAIN DEFINITION'
95 IF (nbric>0)THEN
96 WRITE(iout,fmt=fmw_10i)(ixs(11,msv(i)),i=1,msn)
97 ELSE
98 WRITE(iout,fmt='(A)') ' empty !'
99 ENDIF
100 ENDIF
101C------------------------------------------------------------
102 RETURN
103 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