OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
delnumbc_ply.F File Reference
#include "implicit_f.inc"
#include "com01_c.inc"
#include "com04_c.inc"
#include "param_c.inc"
#include "task_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine delnumbc_ply (iply, nel_ply, iparg, ixc, ixtg, invert, el2fa, nbf, inum, nelcut, dd_iad, iadd, nbf_l, nbpart, iadg, nodglob, idcmax, nbf_pxfemg)

Function/Subroutine Documentation

◆ delnumbc_ply()

subroutine delnumbc_ply ( integer iply,
integer nel_ply,
integer, dimension(nparg,*) iparg,
integer, dimension(nixc,*) ixc,
integer, dimension(nixtg,*) ixtg,
integer, dimension(*) invert,
integer, dimension(*) el2fa,
integer nbf,
integer, dimension(*) inum,
integer nelcut,
integer, dimension(nspmd+1,*) dd_iad,
integer, dimension(*) iadd,
integer nbf_l,
integer nbpart,
integer, dimension(nspmd,*) iadg,
integer, dimension(*) nodglob,
integer idcmax,
integer nbf_pxfemg )

Definition at line 35 of file delnumbc_ply.F.

41 USE plyxfem_mod
42 use element_mod , only : nixc,nixtg
43C-----------------------------------------------
44C I m p l i c i t T y p e s
45C-----------------------------------------------
46#include "implicit_f.inc"
47C-----------------------------------------------
48C C o m m o n B l o c k s
49#include "com01_c.inc"
50#include "com04_c.inc"
51#include "param_c.inc"
52#include "task_c.inc"
53C-----------------------------------------------
54C D u m m y A r g u m e n t s
55C-----------------------------------------------
56 INTEGER IXC(NIXC,*),IXTG(NIXTG,*),IPARG(NPARG,*),
57 . EL2FA(*),INUM(*),
58 . INVERT(*), NBF,NELCUT,NBPART,IADG(NSPMD,*)
59 INTEGER DD_IAD(NSPMD+1,*), IADD(*), NBF_L,IPLY,
60 . NEL_PLY,NBF_PXFEMG,NODGLOB(*)
61C-----------------------------------------------
62C REAL
63 INTEGER II, NG, ITY, LFT, LLT, N, I,
64 . NEL, IAD, NFT,
65 . IDCMAX,ISHPLYXFEM,IDPLY,
66 . IPT,ELC,PLYELEMS(NUMELC),PLYS,RBUF,NELCOUNT,ELEM
67 INTEGER GET_PLY_ELEM
68 EXTERNAL get_ply_elem
69C-----------------------------------------------
70 nelcount = 0
71 DO plys = 1,nplypart
72 iply = indx_ply(plys)
73
74 plyelems=0
75 DO i=1,plyshell(iply)%PLYNUMSHELL
76 ipt = plyshell(iply)%SHELLIPT(i)
77 elc = plyshell(iply)%SHID(i)
78 plyelems(elc)=ipt
79 ENDDO
80C
81 idply = idcmax + nel_ply
82 ii = 0
83 DO 490 ng=1,ngroup
84 nel =iparg(2,ng)
85 nft =iparg(3,ng)
86 iad =iparg(4,ng)
87 ity =iparg(5,ng)
88 ishplyxfem = iparg(50,ng)
89 lft=1
90 llt=nel
91C-----------------------------------------------
92C QUAD
93C-----------------------------------------------
94 IF(ishplyxfem > 0) THEN
95C-----------------------------------------------
96C SHELLS
97C-----------------------------------------------
98 IF(ity==3)THEN
99 DO i=lft,llt
100 n = i + nft
101 IF(plyelems(n) > 0) THEN
102 ii = ii + 1
103 elem = get_ply_elem(iply,n)
104 inum(el2fa(nel_ply + ii)) =
105 * plyshell(iply)%SHELLID(elem)
106 ENDIF
107 ENDDO
108C-----------------------------------------------
109C 3-NODE SHELLS
110C-----------------------------------------------
111 ELSEIF(ity==7)THEN
112 DO i=lft,llt
113cc N = I + NFT
114cc INUM(EL2FA(NN5+N)) = IXTG(NIXTG,N)
115 ENDDO
116C-----------------------------------------------
117C RNUR
118C-----------------------------------------------
119 ENDIF
120 ENDIF
121 490 CONTINUE
122C-----------------------------------------------
123 nel_ply = nel_ply + plyshell(iply)%PLYNUMSHELL
124 ENDDO
125
126 IF (nspmd == 1) THEN
127 DO i=1,nbf
128 inum(i) = inum(i) + idcmax
129 ENDDO
130 CALL write_i_c(inum,nbf)
131
132 idcmax=0
133 DO i=1,nbf
134 idcmax=max(idcmax,inum(i))
135 ENDDO
136
137 ELSE
138C
139 IF (ispmd==0) THEN
140 rbuf = nbf_pxfemg
141 CALL spmd_iget_partn_ply(1,nbf_l,inum,nplypart,iadg,rbuf,1,
142 * idcmax)
143 ELSE
144 rbuf = 1
145 CALL spmd_iget_partn_ply(1,nbf_l,inum,nplypart,iadg,rbuf,1,
146 * idcmax)
147 END IF
148 ENDIF
149
150C-----------------------------------------------
151C
152 RETURN
integer function get_ply_elem(iply, elemid)
#define max(a, b)
Definition macros.h:21
integer, dimension(:), allocatable indx_ply
Definition plyxfem_mod.F:60
integer nplypart
Definition plyxfem_mod.F:59
type(plyshells), dimension(:), allocatable plyshell
Definition plyxfem_mod.F:56
subroutine spmd_iget_partn_ply(size, nbf_l, np, nbpart, iadg, srbuf, iflag, idply)
void write_i_c(int *w, int *len)