OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
shell_surface_buffer_remesh.F File Reference
#include "implicit_f.inc"
#include "scr17_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine shell_surface_buffer_remesh (ix, nix, nix1, nix2, ieltyp, nseg, iad_surf, buftmpsurf, clause, iparte, ipart, kshtree, shtree)

Function/Subroutine Documentation

◆ shell_surface_buffer_remesh()

subroutine shell_surface_buffer_remesh ( integer, dimension(nix,*) ix,
integer nix,
integer nix1,
integer nix2,
integer ieltyp,
integer nseg,
integer iad_surf,
integer, dimension(*) buftmpsurf,
type (set_) clause,
integer, dimension(*) iparte,
integer, dimension(lipart1,*) ipart,
integer kshtree,
integer, dimension(kshtree,*) shtree )

Definition at line 29 of file shell_surface_buffer_remesh.F.

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
subroutine inv3(a, b)
Definition inv3.F:29