OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c_ncrkxfem.F File Reference
#include "implicit_f.inc"
#include "com_xfem1.inc"
#include "com04_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine c_ncrkxfem (nodglob, inod_crkxfem, inod_l, numnod_l, numnodcrkxfe_l, index, proc, ixc, ixtg, cep_xfe, nodlocal, nodlevxf_l, nodlevxf, nodglobxfe, nod_xfe_l, crkshell)

Function/Subroutine Documentation

◆ c_ncrkxfem()

subroutine c_ncrkxfem ( integer, dimension(*) nodglob,
integer, dimension(*) inod_crkxfem,
integer, dimension(*) inod_l,
integer numnod_l,
integer numnodcrkxfe_l,
integer, dimension(*) index,
integer proc,
integer, dimension(nixc,*) ixc,
integer, dimension(nixtg,*) ixtg,
integer, dimension(*) cep_xfe,
integer, dimension(*) nodlocal,
integer, dimension(*) nodlevxf_l,
integer, dimension(*) nodlevxf,
integer, dimension(*) nodglobxfe,
integer nod_xfe_l,
type (xfem_shell_), dimension(nlevmax) crkshell )

Definition at line 29 of file c_ncrkxfem.F.

33C-----------------------------------------------
34 USE xfem2def_mod
35 use element_mod , only : nixc,nixtg
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 "com_xfem1.inc"
44#include "com04_c.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER NODGLOB(*),INOD_CRKXFEM(*),INOD_L(*),
49 . NUMNOD_L,NUMNODCRKXFE_L,INDEX(*),PROC,
50 . IXC(NIXC,*),IXTG(NIXTG,*),CEP_XFE(*),
51 . NODLOCAL(*),NODLEVXF_L(*),NODLEVXF(*),
52 . NODGLOBXFE(*),NOD_XFE_L
53 TYPE (XFEM_SHELL_) , DIMENSION(NLEVMAX) :: CRKSHELL
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57 INTEGER I,NL_L,J,K,NOD,ELTYP,ELEM,
58 . INOD_CRK,NOD_XFE_G,NELCRK
59 INTEGER, DIMENSION(:), ALLOCATABLE :: NODTAG
60C=======================================================================
61! 1d array
62 ALLOCATE( nodtag(0:numnod_l+1) )
63! ----------------------------------
64c Phantoma nodes each ply
65C-----------------------------------------------
66 nelcrk = 0
67 DO k=1,nlevmax
68 DO i=1,crkshell(k)%CRKNUMSHELL
69 elem = crkshell(k)%PHANTOML(i)
70 eltyp = crkshell(k)%ELTYPE(i)
71 IF (cep_xfe(i) == proc) THEN
72 IF(eltyp == 4) THEN
73 DO j=1,eltyp
74 nod = ixc(j+1,elem)
75 IF (nod > 0) THEN
76 IF (inod_crkxfem(nod) > 0) THEN ! N noeud local xfem
77 nod_xfe_g = crkshell(k)%XNODEG(j,i) ! ID GLOB NODE PHANTOME SUR PLY
78 nod_xfe_l = nod_xfe_l + 1 ! Local ID Node Phantome Sur Ply
79 nodglobxfe(nod_xfe_l) = nod_xfe_g ! Id local -> Id global (phant)
80 ENDIF
81 ENDIF
82 ENDDO
83 ELSEIF (eltyp == 3) THEN
84 DO j=1,eltyp
85 nod = ixtg(j+1,elem)
86 IF (nod > 0) THEN
87 IF(inod_crkxfem(nod) > 0)THEN
88 nod_xfe_g = crkshell(k)%XNODEG(j,i)
89 nod_xfe_l = nod_xfe_l + 1
90 nodglobxfe(nod_xfe_l) = nod_xfe_g
91 ENDIF
92 ENDIF
93 ENDDO
94C
95c add one more node (as sh4) for animation files (3N -> 4N)
96C
97 nod_xfe_g = crkshell(k)%XNODEG(4,i)
98 nod_xfe_l = nod_xfe_l + 1
99 nodglobxfe(nod_xfe_l) = nod_xfe_g
100 END IF
101 ENDIF
102 ENDDO
103 nelcrk = nelcrk + crkshell(k)%CRKNUMSHELL ! Nb elements total sur nlevmax
104 ENDDO
105 numnodxfe = nod_xfe_l ! Nb noeuds total sur nlevmax
106C
107 nodtag(1:numnod_l) = 0
108 k = 1 ! the same as K=1,NLEVMAX
109 DO i=1,crkshell(k)%CRKNUMSHELL
110 eltyp = crkshell(k)%ELTYPE(i)
111 elem = crkshell(k)%PHANTOML(i)
112 IF (cep_xfe(i) == proc) THEN
113 IF (eltyp == 4) THEN
114 DO j=1,eltyp
115 nod = ixc(j+1,elem)
116 nodtag(nodlocal(nod))=nod
117 ENDDO
118 ELSEIF (eltyp == 3) THEN
119 DO j=1,eltyp
120 nod = ixtg(j+1,elem)
121 nodtag(nodlocal(nod))=nod
122 ENDDO
123 END IF
124 END IF
125 END DO
126C---
127 nl_l = 0
128 DO i=1,numnod_l
129 nod = nodtag(i)
130 IF (nod > 0) THEN
131 IF (inod_crkxfem(nod) > 0) THEN
132 nl_l = nl_l + 1
133 inod_l(i) = nl_l
134 index(nl_l) = inod_crkxfem(nod)
135 inod_crk = inod_crkxfem(nod)
136 nodlevxf_l(nl_l) = nodlevxf(inod_crk) ! number of copies of a standard xfem node
137 ENDIF
138 ENDIF
139 ENDDO
140C---
141 numnodcrkxfe_l = nl_l
142C---
143! ----------------------------------
144! 1d array
145 DEALLOCATE( nodtag )
146! ----------------------------------
147 RETURN