OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
tag_node_from_solid.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!|| tag_node_from_solid ../starter/source/model/sets/tag_node_from_solid.F
25!||--- called by ------------------------------------------------------
26!|| create_node_from_element ../starter/source/model/sets/create_node_from_element.F
27!||--- uses -----------------------------------------------------
28!|| message_mod ../starter/share/message_module/message_mod.F
29!||====================================================================
31 . IXS ,IXS10 ,IXS20 ,IXS16 ,NUMEL,
32 . ELEM ,TAGNOD ,CLAUSE_NODE,IND)
33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36 USE message_mod
37 use element_mod , only : nixs
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C C o m m o n B l o c k s
44C-----------------------------------------------
45#include "com04_c.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 INTEGER NUMEL,IND
50 INTEGER IXS(NIXS,*),IXS10(6,*),IXS16(8,*),IXS20(12,*),TAGNOD(*),
51 . elem(*),clause_node(*)
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER J,JJ,L,JJ10,JJ20,JJ16
56C=======================================================================
57!
58 DO j=1,numel
59 jj = elem(j)
60
61 DO l=2,9
62 IF (ixs(l,jj) == 0) cycle
63 IF(tagnod(ixs(l,jj)) == 0)THEN
64 tagnod(ixs(l,jj)) = 1
65 ind = ind+1
66 clause_node(ind) = ixs(l,jj)
67 ENDIF
68 ENDDO
69
70 IF (jj > numels8 .AND. jj <= (numels8+numels10) )THEN
71
72 jj10 = jj - numels8
73 DO l=1,6
74 IF (ixs10(l,jj10) /= 0) THEN
75 IF(tagnod(ixs10(l,jj10)) == 0)THEN
76 tagnod(ixs10(l,jj10)) = 1
77 ind = ind+1
78 clause_node(ind) = ixs10(l,jj10)
79 ENDIF
80 ENDIF
81 ENDDO
82
83 ELSEIF (jj > (numels8+numels10).AND. jj <= (numels8+numels10+numels20) ) THEN
84 jj20 = jj - numels8 - numels10
85 DO l=1,12
86 IF (ixs20(l,jj20) /= 0) THEN
87 IF(tagnod(ixs20(l,jj20)) == 0)THEN
88 tagnod(ixs20(l,jj20)) = 1
89 ind = ind+1
90 clause_node(ind) = ixs20(l,jj20)
91 ENDIF
92 ENDIF
93 ENDDO
94
95 ELSEIF (jj > (numels8+numels10+numels20).AND. jj <= (numels8+numels10+numels20+numels16) ) THEN
96 jj16 = jj - numels8 - numels10 - numels20
97 DO l=1,8
98 IF (ixs16(l,jj16) /= 0) THEN
99 IF(tagnod(ixs16(l,jj16)) == 0)THEN
100 tagnod(ixs16(l,jj16)) = 1
101 ind = ind+1
102 clause_node(ind) = ixs16(l,jj16)
103 ENDIF
104 ENDIF
105 ENDDO
106
107 ELSE
108 ENDIF
109
110
111 ENDDO ! DO J=1,NUMEL
112
113 RETURN
114 END
subroutine tag_node_from_solid(ixs, ixs10, ixs20, ixs16, numel, elem, tagnod, clause_node, ind)