OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
delnumbc_ply.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!|| delnumbc_ply ../engine/source/output/anim/generate/delnumbc_ply.F
25!||--- called by ------------------------------------------------------
26!|| genani ../engine/source/output/anim/generate/genani.F
27!||--- calls -----------------------------------------------------
28!|| get_ply_elem ../engine/source/output/anim/generate/anin_ply_init.F
29!|| spmd_iget_partn_ply ../engine/source/mpi/anim/spmd_iget_partn_ply.F
30!|| write_i_c ../common_source/tools/input_output/write_routines.c
31!||--- uses -----------------------------------------------------
32!|| element_mod ../common_source/modules/elements/element_mod.F90
33!|| plyxfem_mod ../engine/share/modules/plyxfem_mod.F
34!||====================================================================
35 SUBROUTINE delnumbc_ply(IPLY,NEL_PLY,IPARG,
36 2 IXC ,IXTG ,INVERT,
37 3 EL2FA,NBF ,INUM ,NELCUT,
38 4 DD_IAD ,IADD ,NBF_L,
39 5 NBPART,IADG,NODGLOB,IDCMAX,
40 6 NBF_PXFEMG)
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
153 END
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)
#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)