OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_anim_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/.
23C
24!||====================================================================
25!|| w_anim_ply ../starter/source/restart/ddsplit/w_anim_ply.F
26!||--- called by ------------------------------------------------------
27!|| ddsplit ../starter/source/restart/ddsplit/ddsplit.F
28!||--- calls -----------------------------------------------------
29!|| get_ply_nod ../starter/source/spmd/spmd_anim_ply_init.F
30!||--- uses -----------------------------------------------------
31!|| plyxfem_mod ../starter/share/modules1/plyxfem_mod.F
32!||====================================================================
33 SUBROUTINE w_anim_ply(IXC,NUMELC_L,NODLOCAL,
34 * NUMNOD_L,CEL,CEP,PROC)
35 USE plyxfem_mod
36 use element_mod , only : nixc
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 "param_c.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER IXC(NIXC,*),NUMELC_L, NODLOCAL(*),
49 * numnod_l,cel(*),cep(*),proc
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53 INTEGER I, K, ELEM, ND, NDSZ_L, ELSZ_L, ELPL, NCOUNT, EMPL
54 INTEGER, DIMENSION(:), ALLOCATABLE :: ELNUM,ELEMIPT,ELEMXFEMID,
55 * nodnum,nodextn,
56 . nodtag,elemtag,plysizng
57 INTEGER GET_PLY_NOD
58 EXTERNAL get_ply_nod
59C-----------------------------------------------
60! 1d array
61 ALLOCATE( nodtag(numnod_l),elemtag(numelc_l) )
62 ALLOCATE( plysizng(nplymax) )
63! ----------------------------------
64
65 CALL write_i_c(nplypart,1)
67
68 DO k=1,nplymax
69 nodtag=0
70 elemtag=0
71
72 plysizng(k)=plynod(k)%PLYNUMNODS
73C First part, on 1 fold we tag the elements and
74C the nodes of the proc
75 DO i=1,plyshell(k)%PLYNUMSHELL
76 elem = plyshell(k)%SHID(i)
77 IF (cep(elem)==proc)THEN
78 elemtag(cel(elem))=i
79 nd = ixc(2,elem)
80 nodtag(nodlocal(nd))=nd
81 nd = ixc(3,elem)
82 nodtag(nodlocal(nd))=nd
83 nd = ixc(4,elem)
84 nodtag(nodlocal(nd))=nd
85 nd = ixc(5,elem)
86 nodtag(nodlocal(nd))=nd
87 ENDIF
88 ENDDO
89C They are counted to prepare the tables to be sent to
90C L engine
91 elsz_l=0
92 ndsz_l =0
93 DO i=1,numelc_l
94 IF (elemtag(i) > 0) elsz_l=elsz_l+1
95 ENDDO
96 DO i=1,numnod_l
97 IF (nodtag(i) > 0) ndsz_l=ndsz_l+1
98 ENDDO
99
100C we prepare the tables to send
101 elpl = 0
102 ALLOCATE ( elnum(elsz_l),elemipt(elsz_l),elemxfemid(elsz_l) )
103
104C Local tables elements
105 DO i=1,numelc_l
106 IF (elemtag(i) > 0) THEN
107 elpl=elpl+1
108 nd = elemtag(i)
109C
110 elnum(elpl) = i
111 elemipt(elpl) = plyshell(k)%SHELLIPT(nd)
112 elemxfemid(elpl) = plyshell(k)%SHELLID(nd)
113 ENDIF
114 ENDDO
115C XFEM local node paintings
116 ncount = 0
117 ALLOCATE ( nodnum(ndsz_l), nodextn(ndsz_l) )
118 DO i=1,numnod_l
119 IF (nodtag(i) > 0) THEN
120 ncount = ncount + 1
121 nd=nodtag(i)
122C
123 empl = get_ply_nod(k,nd)
124 nodnum(ncount) = i
125 nodextn(ncount) = plynod(k)%PLYNODID(empl)
126 ENDIF
127 ENDDO
128C Writing by fold of the tables
129C Ply shells
130 CALL write_i_c(elsz_l , 1 )
131 CALL write_i_c(elnum , elsz_l)
132 CALL write_i_c(elemipt , elsz_l)
133 CALL write_i_c(elemxfemid, elsz_l)
134C ply nodes
135 CALL write_i_c(ndsz_l , 1 )
136 CALL write_i_c(nodnum , ndsz_l)
137 CALL write_i_c(nodextn , ndsz_l)
138
139C
140 DEALLOCATE ( nodextn,nodnum,elnum,elemipt,elemxfemid)
141 ENDDO
142
143 CALL write_i_c(plysizng,nplymax)
144C id ply pid
146! ----------------------------------
147! 1d array
148 DEALLOCATE( nodtag,elemtag )
149 DEALLOCATE( plysizng )
150! ----------------------------------
151 RETURN
152 END
type(plynods), dimension(:), allocatable plynod
Definition plyxfem_mod.F:44
integer, dimension(:), allocatable indx_ply
Definition plyxfem_mod.F:60
integer nplypart
Definition plyxfem_mod.F:59
integer, dimension(:), allocatable idpid_ply
Definition plyxfem_mod.F:61
type(plyshells), dimension(:), allocatable plyshell
Definition plyxfem_mod.F:56
subroutine w_anim_ply(ixc, numelc_l, nodlocal, numnod_l, cel, cep, proc)
Definition w_anim_ply.F:35
void write_i_c(int *w, int *len)