OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
ingrbric_nodes.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/.
23C
24C Node definition for secnd side of Interface Type18.
25C Input for secnd side is a GRBRIC. Nodes are extracted
26C from it into a sorted list
27!||====================================================================
28!|| ingrbric_nodes ../starter/source/interfaces/interf1/ingrbric_nodes.F
29!||--- called by ------------------------------------------------------
30!|| lecins ../starter/source/interfaces/interf1/lecins.F
31!|| lecint ../starter/source/interfaces/interf1/lecint.F
32!||--- uses -----------------------------------------------------
33!|| format_mod ../starter/share/modules1/format_mod.F90
34!||====================================================================
35 SUBROUTINE ingrbric_nodes(MSN,IBUFSSG,ITAB,MSV, IXS, NBRIC, NALE, IPM, BUFMAT, S_MSV)
36C-----------------------------------------------
37C M o d u l e s
38C-----------------------------------------------
39 USE ale_mod
40 USE format_mod , ONLY : fmw_10i
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 "units_c.inc"
49#include "com04_c.inc"
50#include "param_c.inc"
51#include "scr03_c.inc"
52#include "tabsiz_c.inc"
53C-----------------------------------------------
54C D u m m y A r g u m e n t s
55C-----------------------------------------------
56 INTEGER,INTENT(IN) :: NBRIC,S_MSV
57 INTEGER,INTENT(INOUT) :: MSN
58 INTEGER,INTENT(IN) :: IBUFSSG(NBRIC), ITAB(NUMNOD), IXS(NIXS,NUMELS)
59 INTEGER,INTENT(INOUT) :: MSV(1:S_MSV)
60 INTEGER,INTENT(IN) :: NALE(NUMNOD)
61 INTEGER,INTENT(IN) :: IPM(NPROPMI,NUMMAT)
62 my_real,INTENT(IN),TARGET :: bufmat(sbufmat)
63C-----------------------------------------------
64C L o c a l V a r a i b l e s
65C-----------------------------------------------
66 INTEGER :: I, J, TMP, INOD
67 INTEGER, DIMENSION(:),ALLOCATABLE,TARGET :: MSVTMP
68 my_real, DIMENSION(:), POINTER :: uparam
69 INTEGER NPAR, IADBUF, IFORM, IMAT, IELEM, ILAW
70 LOGICAL IS_ELEM_A_BOUNDARY_MAT
71C-----------------------------------------------
72C S o u r c e L i n e s
73C-----------------------------------------------
74 ALLOCATE(msvtmp(1:numnod))
75 msvtmp(1:numnod)=0
76
77 !TAG NODES - remove lagrangian nodes
78 DO i=1,nbric
79 ielem = ibufssg(i)
80 DO j=2,9
81 inod = ixs(j,ielem)
82 IF(nale(inod)/=0 .AND. inod>0)msvtmp(inod)=1 !NALE(node_i)==0 <=> lagrangian node_i
83 ENDDO
84 ENDDO
85 !TAG NODES - remove nodes from boundary materials (law11, & law51 iform=2,3,4,5,6)
86 ! (do not loop unnecessarily otherwise)
87 IF(ale%GLOBAL%IS_BOUNDARY_MATERIAL)THEN
88 DO i=1,nbric
89 ielem = ibufssg(i)
90 is_elem_a_boundary_mat = .false.
91 imat = ixs(1,ielem)
92 ilaw = ipm(2,imat)
93 iform = 0
94 IF(ilaw == 51)THEN
95 npar = ipm(9,imat)
96 iadbuf = ipm(7,imat)
97 iadbuf = max(1,iadbuf)
98 uparam => bufmat(iadbuf:iadbuf+npar)
99 iform = nint(uparam(31))
100 IF(iform>=2 .AND. iform<=6)is_elem_a_boundary_mat=.true.
101 ELSEIF(ilaw == 11)THEN
102 is_elem_a_boundary_mat=.true.
103 ENDIF
104 IF(is_elem_a_boundary_mat)THEN
105 DO j=2,9
106 inod = ixs(j,ielem)
107 msvtmp(inod)=0
108 ENDDO
109 ENDIF
110 END DO
111 ENDIF
112
113 !ORDERING
114 tmp=0
115 DO i=1,numnod
116 IF(msvtmp(i)==1)THEN
117 msvtmp(tmp+1)=i
118 tmp=tmp+1
119 ENDIF
120 END DO
121 msn = tmp ! size of ordered list
122
123 DO i=1,s_msv
124 msv(i)=msvtmp(i)
125 ENDDO
126 DEALLOCATE(msvtmp)
127
128 !PRINTOUT
129 IF(ipri >= 1) THEN
130 WRITE(iout,'(/,A,/)')' NODES EXTRACTED FROM SOLID ELEMENTS'
131 WRITE(iout,fmt=fmw_10i)(itab(msv(i)),i=1,msn)
132 ENDIF
133C------------------------------------------------------------
134 RETURN
135 END
136
#define my_real
Definition cppsort.cpp:32
subroutine ingrbric_nodes(msn, ibufssg, itab, msv, ixs, nbric, nale, ipm, bufmat, s_msv)
#define max(a, b)
Definition macros.h:21
type(ale_) ale
Definition ale_mod.F:249