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 second side of Interface Type18.
25C Input for second 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
41 use element_mod , only : nixs
42C-----------------------------------------------
43C I m p l i c i t T y p e s
44C-----------------------------------------------
45#include "implicit_f.inc"
46C-----------------------------------------------
47C C o m m o n B l o c k s
48C-----------------------------------------------
49#include "units_c.inc"
50#include "com04_c.inc"
51#include "param_c.inc"
52#include "scr03_c.inc"
53#include "tabsiz_c.inc"
54C-----------------------------------------------
55C D u m m y A r g u m e n t s
56C-----------------------------------------------
57 INTEGER,INTENT(IN) :: NBRIC,S_MSV
58 INTEGER,INTENT(INOUT) :: MSN
59 INTEGER,INTENT(IN) :: IBUFSSG(NBRIC), ITAB(NUMNOD), IXS(NIXS,NUMELS)
60 INTEGER,INTENT(INOUT) :: MSV(1:S_MSV)
61 INTEGER,INTENT(IN) :: NALE(NUMNOD)
62 INTEGER,INTENT(IN) :: IPM(NPROPMI,NUMMAT)
63 my_real,INTENT(IN),TARGET :: bufmat(sbufmat)
64C-----------------------------------------------
65C L o c a l V a r a i b l e s
66C-----------------------------------------------
67 INTEGER :: I, J, TMP, INOD
68 INTEGER, DIMENSION(:),ALLOCATABLE,TARGET :: MSVTMP
69 my_real, DIMENSION(:), POINTER :: uparam
70 INTEGER NPAR, IADBUF, IFORM, IMAT, IELEM, ILAW
71 LOGICAL IS_ELEM_A_BOUNDARY_MAT
72C-----------------------------------------------
73C S o u r c e L i n e s
74C-----------------------------------------------
75 ALLOCATE(msvtmp(1:numnod))
76 msvtmp(1:numnod)=0
77
78 !TAG NODES - remove lagrangian nodes
79 DO i=1,nbric
80 ielem = ibufssg(i)
81 DO j=2,9
82 inod = ixs(j,ielem)
83 IF(nale(inod)/=0 .AND. inod>0)msvtmp(inod)=1 !NALE(node_i)==0 <=> lagrangian node_i
84 ENDDO
85 ENDDO
86 !TAG NODES - remove nodes from boundary materials (law11, & law51 iform=2,3,4,5,6)
87 ! (do not loop unnecessarily otherwise)
88 IF(ale%GLOBAL%IS_BOUNDARY_MATERIAL)THEN
89 DO i=1,nbric
90 ielem = ibufssg(i)
91 is_elem_a_boundary_mat = .false.
92 imat = ixs(1,ielem)
93 ilaw = ipm(2,imat)
94 iform = 0
95 IF(ilaw == 51)THEN
96 npar = ipm(9,imat)
97 iadbuf = ipm(7,imat)
98 iadbuf = max(1,iadbuf)
99 uparam => bufmat(iadbuf:iadbuf+npar-1)
100 iform = nint(uparam(31))
101 IF(iform>=2 .AND. iform<=6)is_elem_a_boundary_mat=.true.
102 ELSEIF(ilaw == 11)THEN
103 is_elem_a_boundary_mat=.true.
104 ENDIF
105 IF(is_elem_a_boundary_mat)THEN
106 DO j=2,9
107 inod = ixs(j,ielem)
108 msvtmp(inod)=0
109 ENDDO
110 ENDIF
111 END DO
112 ENDIF
113
114 !ORDERING
115 tmp=0
116 DO i=1,numnod
117 IF(msvtmp(i)==1)THEN
118 msvtmp(tmp+1)=i
119 tmp=tmp+1
120 ENDIF
121 END DO
122 msn = tmp ! size of ordered list
123
124 DO i=1,s_msv
125 msv(i)=msvtmp(i)
126 ENDDO
127 DEALLOCATE(msvtmp)
128
129 !PRINTOUT
130 IF(ipri >= 1) THEN
131 WRITE(iout,'(/,A,/)')' NODES EXTRACTED FROM SOLID ELEMENTS'
132 WRITE(iout,fmt=fmw_10i)(itab(msv(i)),i=1,msn)
133 ENDIF
134C------------------------------------------------------------
135 RETURN
136 END
137
#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:253