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

Go to the source code of this file.

Functions/Subroutines

subroutine w_anim_ply (ixc, numelc_l, nodlocal, numnod_l, cel, cep, proc)

Function/Subroutine Documentation

◆ w_anim_ply()

subroutine w_anim_ply ( integer, dimension(nixc,*) ixc,
integer numelc_l,
integer, dimension(*) nodlocal,
integer numnod_l,
integer, dimension(*) cel,
integer, dimension(*) cep,
integer proc )

Definition at line 33 of file w_anim_ply.F.

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
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)
void write_i_c(int *w, int *len)