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
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C C o m m o n B l o c k s
42C-----------------------------------------------
43#include "param_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER IXC(NIXC,*),NUMELC_L, NODLOCAL(*),
48 * numnod_l,cel(*),cep(*),proc
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 INTEGER I,K,P,ELEM,ND,NDSZ_L,ELSZ_L,ELPL,NCOUNT,EMPL
53 INTEGER, DIMENSION(:), ALLOCATABLE :: ELNUM,ELEMIPT,ELEMXFEMID,
54 * nodnum,nodextn,
55 . nodtag,elemtag,plysizng
56 INTEGER GET_PLY_NOD
57 EXTERNAL get_ply_nod
58C-----------------------------------------------
59! 1d array
60 ALLOCATE( nodtag(numnod_l),elemtag(numelc_l) )
61 ALLOCATE( plysizng(nplymax) )
62! ----------------------------------
63
64 CALL write_i_c(nplypart,1)
66
67 DO k=1,nplymax
68 nodtag=0
69 elemtag=0
70
71 plysizng(k)=plynod(k)%PLYNUMNODS
72C Premiere partie, sur 1 pli on tag les elements et
73C les noeuds du proc
74 DO i=1,plyshell(k)%PLYNUMSHELL
75 elem = plyshell(k)%SHID(i)
76 IF (cep(elem)==proc)THEN
77 elemtag(cel(elem))=i
78 nd = ixc(2,elem)
79 nodtag(nodlocal(nd))=nd
80 nd = ixc(3,elem)
81 nodtag(nodlocal(nd))=nd
82 nd = ixc(4,elem)
83 nodtag(nodlocal(nd))=nd
84 nd = ixc(5,elem)
85 nodtag(nodlocal(nd))=nd
86 ENDIF
87 ENDDO
88C On les compte pour preparer les tableaux a envoyer a
89C L engine
90 elsz_l=0
91 ndsz_l =0
92 DO i=1,numelc_l
93 IF (elemtag(i) > 0) elsz_l=elsz_l+1
94 ENDDO
95 DO i=1,numnod_l
96 IF (nodtag(i) > 0) ndsz_l=ndsz_l+1
97 ENDDO
98
99C on prepare les tableaux a envoyer
100 elpl = 0
101 ALLOCATE ( elnum(elsz_l),elemipt(elsz_l),elemxfemid(elsz_l) )
102
103C Tableaux locaux elements
104 DO i=1,numelc_l
105 IF (elemtag(i) > 0) THEN
106 elpl=elpl+1
107 nd = elemtag(i)
108C
109 elnum(elpl) = i
110 elemipt(elpl) = plyshell(k)%SHELLIPT(nd)
111 elemxfemid(elpl) = plyshell(k)%SHELLID(nd)
112 ENDIF
113 ENDDO
114C Tableaux locaux noeuds xfem
115 ncount = 0
116 ALLOCATE ( nodnum(ndsz_l), nodextn(ndsz_l) )
117 DO i=1,numnod_l
118 IF (nodtag(i) > 0) THEN
119 ncount = ncount + 1
120 nd=nodtag(i)
121C
122 empl = get_ply_nod(k,nd)
123 nodnum(ncount) = i
124 nodextn(ncount) = plynod(k)%PLYNODID(empl)
125 ENDIF
126 ENDDO
127C Ecriture par ply des tableaux
128C Coques ply
129 CALL write_i_c(elsz_l , 1 )
130 CALL write_i_c(elnum , elsz_l)
131 CALL write_i_c(elemipt , elsz_l)
132 CALL write_i_c(elemxfemid, elsz_l)
133C noeuds ply
134 CALL write_i_c(ndsz_l , 1 )
135 CALL write_i_c(nodnum , ndsz_l)
136 CALL write_i_c(nodextn , ndsz_l)
137
138C
139 DEALLOCATE ( nodextn,nodnum,elnum,elemipt,elemxfemid)
140 ENDDO
141
142 CALL write_i_c(plysizng,nplymax)
143C id ply pid
145! ----------------------------------
146! 1d array
147 DEALLOCATE( nodtag,elemtag )
148 DEALLOCATE( plysizng )
149! ----------------------------------
150 RETURN
151 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
integer function get_ply_nod(iply, nodid)
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)