OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
shell_surface_buffer_remesh.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!|| shell_surface_buffer_remesh ../starter/source/model/sets/shell_surface_buffer_remesh.F
25!||--- called by ------------------------------------------------------
26!|| surface_buffer ../starter/source/model/sets/surface_buffer.F
27!||--- uses -----------------------------------------------------
28!||====================================================================
30 . IX ,NIX ,NIX1 ,NIX2 ,IELTYP ,
31 . NSEG ,IAD_SURF ,BUFTMPSURF,CLAUSE ,IPARTE ,
32 . IPART ,KSHTREE ,SHTREE )
33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36 USE setdef_mod
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C C o m m o n B l o c k s
43C-----------------------------------------------
44#include "scr17_c.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER NIX,NIX1,NIX2,IELTYP,NSEG,IAD_SURF
49 INTEGER IX(NIX,*),BUFTMPSURF(*),IPARTE(*),
50 . IPART(LIPART1,*),KSHTREE,SHTREE(KSHTREE,*)
51!
52 TYPE (SET_) :: CLAUSE
53C-----------------------------------------------
54C L o c a l V a r i a b l e s
55C-----------------------------------------------
56 INTEGER J,JJ,K,IP,NLEV,MY_LEV,INV4(4),INV3(3),NELEM
57 DATA INV4/4,3,2,1/
58 DATA INV3/3,2,1/
59C-----------------------------------------------
60!
61 nelem = 0
62 IF (ieltyp == 3) nelem = clause%NB_SH4N
63 IF (ieltyp == 7) nelem = clause%NB_SH3N
64!
65 DO j=1,nelem
66 jj= -huge(jj)
67 IF(ieltyp==3) jj = clause%SH4N(j)
68 IF(ieltyp==7) jj = clause%SH3N(j)
69!
70 ip=iparte(jj)
71 nlev =ipart(10,ip)
72 my_lev=shtree(3,jj)
73 IF (my_lev < 0) my_lev=-(my_lev+1)
74 IF (my_lev==nlev) THEN
75 nseg=nseg+1
76 DO k=nix1,nix2
77 buftmpsurf(iad_surf) = ix(k,jj)
78 iad_surf=iad_surf+1
79 ENDDO
80!
81 IF (nix2-nix1 == 2) THEN
82 buftmpsurf(iad_surf) = buftmpsurf(iad_surf-1) ! SH3N (NOD4 == NOD3)
83 iad_surf=iad_surf+1
84 ENDIF
85!
86 buftmpsurf(iad_surf) = ieltyp
87 iad_surf=iad_surf+1
88 buftmpsurf(iad_surf) = jj
89 iad_surf=iad_surf+1
90 ENDIF ! IF (MY_LEV==NLEV)
91 ENDDO ! DO J=1,NELEM
92C------------
93 RETURN
94 END
subroutine shell_surface_buffer_remesh(ix, nix, nix1, nix2, ieltyp, nseg, iad_surf, buftmpsurf, clause, iparte, ipart, kshtree, shtree)