OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
ingrbric.F File Reference
#include "implicit_f.inc"
#include "units_c.inc"
#include "com04_c.inc"
#include "param_c.inc"
#include "scr03_c.inc"
#include "inter22.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine ingrbric (msn, brics, msv, ixs, nbric, pm, s_msv, igeo)

Function/Subroutine Documentation

◆ ingrbric()

subroutine ingrbric ( integer, intent(inout) msn,
integer, dimension(nbric), intent(in) brics,
integer, dimension(s_msv), intent(inout) msv,
integer, dimension(nixs,numels), intent(in) ixs,
integer, intent(in) nbric,
dimension(npropm,nummat), intent(in) pm,
integer, intent(in) s_msv,
integer, dimension(npropgi,numgeo), intent(in) igeo )

Definition at line 31 of file ingrbric.F.

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
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21