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

Go to the source code of this file.

Functions/Subroutines

subroutine crk_tagxp4 (iparg, ixc, nft, jft, jlt, elcutc, iadc_crk, iel_crk, inod_crk, enrtag, nxlay, crkedge, xedge4n, itab)

Function/Subroutine Documentation

◆ crk_tagxp4()

subroutine crk_tagxp4 ( integer, dimension(nparg,*) iparg,
integer, dimension(nixc,*) ixc,
integer nft,
integer jft,
integer jlt,
integer, dimension(2,*) elcutc,
integer, dimension(4,*) iadc_crk,
integer, dimension(*) iel_crk,
integer, dimension(*) inod_crk,
integer, dimension(numnod,*) enrtag,
integer nxlay,
type (xfem_edge_), dimension(*) crkedge,
integer, dimension(4,*) xedge4n,
integer, dimension(*) itab )

Definition at line 32 of file crk_tagxp4.F.

35C-----------------------------------------------
37 use element_mod , only : nixc
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C G l o b a l P a r a m e t e r s
44C-----------------------------------------------
45#include "mvsiz_p.inc"
46#include "param_c.inc"
47C-----------------------------------------------
48C C o m m o n B l o c k s
49C-----------------------------------------------
50#include "com04_c.inc"
51#include "com_xfem1.inc"
52C-----------------------------------------------
53C D u m m y A r g u m e n t s
54C-----------------------------------------------
55 INTEGER NFT,JFT,JLT,NXLAY
56 INTEGER IPARG(NPARG,*),IXC(NIXC,*),ELCUTC(2,*),INOD_CRK(*),
57 . IADC_CRK(4,*),IEL_CRK(*),ENRTAG(NUMNOD,*),XEDGE4N(4,*),ITAB(*)
58 TYPE (XFEM_EDGE_) , DIMENSION(*) :: CRKEDGE
59C-----------------------------------------------
60C L o c a l V a r i a b l e s
61C-----------------------------------------------
62 INTEGER I,K,IR,IAD,NELCRK,ELCRK,ILEV,ILAY,IXEL,ELCUT,LAYCUT,
63 . ENR0,ENR,IBOUNDEDGE,EDGE,ITRI,NUMXEL,NSX,
64 . ISEND_NSX,ISEND_IAD
65 INTEGER JCT(MVSIZ),NS(4),IADC(4)
66C=======================================================================
67 nelcrk = 0
68 DO i=jft,jlt
69 jct(i) = 0
70 IF (elcutc(1,i+nft) /= 0) THEN
71 nelcrk = nelcrk + 1
72 jct(nelcrk) = i
73 ENDIF
74 ENDDO
75 IF (nelcrk == 0) RETURN
76c--------------------
77 DO ilay=1,nxlay
78 DO ir=1,nelcrk
79 i = jct(ir)
80 elcrk = iel_crk(i+nft)
81 elcut = xfem_phantom(ilay)%ELCUT(elcrk)
82 laycut = abs(crkedge(ilay)%LAYCUT(elcrk))
83 IF (elcut /= 0 .and. laycut == 1) THEN ! new advancing crack
84 itri = xfem_phantom(ilay)%ITRI(1,elcrk)
85 ns(1) = ixc(2,i+nft)
86 ns(2) = ixc(3,i+nft)
87 ns(3) = ixc(4,i+nft)
88 ns(4) = ixc(5,i+nft)
89 iadc(1) = iadc_crk(1,elcrk)
90 iadc(2) = iadc_crk(2,elcrk)
91 iadc(3) = iadc_crk(3,elcrk)
92 iadc(4) = iadc_crk(4,elcrk)
93 isend_nsx = 0
94 isend_iad = 0
95c Tag phantom nodes with new positive enrichment to copy the velocities
96 IF (itri /= 0) THEN
97 ixel = 3
98 ilev = nxel*(ilay-1) + ixel
99 ! sender = third phantom
100 DO k=1,4
101 iad = iadc(k)
102 enr0 = crklvset(ilev)%ENR0(2,iad)
103 enr = crklvset(ilev)%ENR0(1,iad)
104 edge = xedge4n(k,elcrk) ! global egdge N
105 iboundedge = crkedge(ilay)%IBORDEDGE(edge)
106 nsx = inod_crk(ns(k))
107 IF (enr > 0 .and. iboundedge /= 2) THEN
108 xfem_phantom(ilay)%TAGXP(1,nsx,enr) = iad
109 xfem_phantom(ilay)%TAGXP(2,nsx,enr) = ilev
110 xfem_phantom(ilay)%TAGXP(3,nsx,enr) = 2 ! counter
111 isend_nsx = nsx
112 isend_iad = iad
113 ENDIF
114 ENDDO
115 ENDIF
116c
117 numxel = 2 ! receiver : first or second phantom
118 DO ixel=1,numxel
119 ilev = nxel*(ilay-1) + ixel
120 DO k=1,4
121 iad = iadc(k)
122 enr0 = crklvset(ilev)%ENR0(2,iad)
123 enr = abs(crklvset(ilev)%ENR0(1,iad))
124 edge = xedge4n(k,elcrk) ! global egdge N
125 iboundedge = crkedge(ilay)%IBORDEDGE(edge)
126 nsx = inod_crk(ns(k))
127 IF (isend_nsx /= nsx .and. isend_iad /= iad) THEN
128 IF (enr > 0 .and. iboundedge /= 2) THEN
129 xfem_phantom(ilay)%TAGXP(4,nsx,enr) = iad
130 xfem_phantom(ilay)%TAGXP(5,nsx,enr) = ilev
131 xfem_phantom(ilay)%TAGXP(3,nsx,enr) = 2 ! counter
132 ENDIF
133 ENDIF
134 ENDDO
135 ENDDO ! DO IXEL=1,NUMXEL
136C--------------------------------------------------------------------------
137 ENDIF ! IF (ELCUT /= 0 .and. LAYCUT == 1)
138 ENDDO ! DO IR=1,NELCRK
139 ENDDO ! DO ILAY=1,NXLAY
140c-----------------------------------------------
141 RETURN
type(xfem_phantom_), dimension(:), allocatable xfem_phantom
type(xfem_lvset_), dimension(:), allocatable crklvset