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

Go to the source code of this file.

Functions/Subroutines

subroutine crk_tagxp3 (iparg, ixtg, nft, jft, jlt, elcutc, iad_crktg, iel_crktg, inod_crk, enrtag, nxlay, crkedge, xedge3n, itab)

Function/Subroutine Documentation

◆ crk_tagxp3()

subroutine crk_tagxp3 ( integer, dimension(nparg,*) iparg,
integer, dimension(nixtg,*) ixtg,
integer nft,
integer jft,
integer jlt,
integer, dimension(2,*) elcutc,
integer, dimension(3,*) iad_crktg,
integer, dimension(*) iel_crktg,
integer, dimension(*) inod_crk,
integer, dimension(numnod,*) enrtag,
integer nxlay,
type (xfem_edge_), dimension(*) crkedge,
integer, dimension(3,*) xedge3n,
integer, dimension(numnod) itab )

Definition at line 32 of file crk_tagxp3.F.

35C-----------------------------------------------
37 use element_mod , only : nixtg
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"
46C-----------------------------------------------
47C C o m m o n B l o c k s
48C-----------------------------------------------
49#include "com04_c.inc"
50#include "com_xfem1.inc"
51#include "param_c.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,*),IXTG(NIXTG,*),ELCUTC(2,*),INOD_CRK(*),
57 . IAD_CRKTG(3,*),XEDGE3N(3,*),IEL_CRKTG(*),ENRTAG(NUMNOD,*),ITAB(NUMNOD)
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,ELCRK,ELCRKTG,ILEV,ILAY,IXEL,ELCUT,NELCRK,NSX,
63 . EDGE,IBOUNDEDGE,LAYCUT,ENR0,ENR,ITRI,IAD
64 INTEGER JCT(MVSIZ),IADC(3),NS(3)
65C=======================================================================
66 nelcrk = 0
67 DO i=jft,jlt
68 jct(i) = 0
69 IF (elcutc(1,i+nft) /= 0) THEN
70 nelcrk = nelcrk + 1
71 jct(nelcrk) = i
72 ENDIF
73 ENDDO
74 IF (nelcrk == 0) RETURN
75C
76 DO ilay=1,nxlay
77 DO ixel=1,nxel
78 ilev = nxel*(ilay-1) + ixel
79 DO ir=1,nelcrk
80 i = jct(ir)
81 elcrktg = iel_crktg(i+nft)
82 elcrk = elcrktg + ecrkxfec
83 elcut = xfem_phantom(ilay)%ELCUT(elcrk)
84 IF (elcut /= 0) THEN
85 ns(1) = ixtg(2,i+nft)
86 ns(2) = ixtg(3,i+nft)
87 ns(3) = ixtg(4,i+nft)
88 iadc(1) = iad_crktg(1,elcrktg)
89 iadc(2) = iad_crktg(2,elcrktg)
90 iadc(3) = iad_crktg(3,elcrktg)
91 itri = xfem_phantom(ilay)%ITRI(1,elcrk)
92 laycut = crkedge(ilay)%LAYCUT(elcrk)
93c---------------------------------------
94 IF (abs(laycut) == 1) THEN
95c new advancing crack
96c Tag phantom nodes with positive enrichment to copy the velocities
97c---------------------------------------
98 IF (ixel == 3) THEN ! sender
99 DO k=1,3
100 iad = iadc(k)
101 enr0 = crklvset(ilev)%ENR0(2,iad)
102 enr = crklvset(ilev)%ENR0(1,iad)
103 edge = xedge3n(k,elcrktg) ! global egdge N
104 iboundedge = crkedge(ilay)%IBORDEDGE(edge)
105 nsx = inod_crk(ns(k))
106 IF (enr > 0 .and. iboundedge /= 2) THEN
107 xfem_phantom(ilay)%TAGXP(1,nsx,enr) = iad
108 xfem_phantom(ilay)%TAGXP(2,nsx,enr) = ilev
109 xfem_phantom(ilay)%TAGXP(3,nsx,enr) = 2 ! counter
110 ENDIF
111 ENDDO
112 ELSE ! receiver
113 DO k=1,3
114 iad = iadc(k)
115 enr0 = crklvset(ilev)%ENR0(2,iad)
116 enr = abs(crklvset(ilev)%ENR0(1,iad))
117 edge = xedge3n(k,elcrktg) ! global egdge N
118 iboundedge = crkedge(ilay)%IBORDEDGE(edge)
119 nsx = inod_crk(ns(k))
120 IF (enr > 0 .and. iboundedge /= 2) THEN
121 xfem_phantom(ilay)%TAGXP(4,nsx,enr) = iad
122 xfem_phantom(ilay)%TAGXP(5,nsx,enr) = ilev
123 xfem_phantom(ilay)%TAGXP(3,nsx,enr) = 2 ! counter
124 ENDIF
125 ENDDO
126 ENDIF
127 ENDIF ! LAYCUT = 1
128C--------------------------------------------------------------------------
129 ENDIF ! IF(ELCUT /= 0)THEN
130 ENDDO ! DO IR=1,NELCRK
131 ENDDO ! DO IXEL=1,NXEL
132 ENDDO ! DO ILAY=1,NXLAY
133C-----------------------------------------------
134 RETURN
type(xfem_phantom_), dimension(:), allocatable xfem_phantom
type(xfem_lvset_), dimension(:), allocatable crklvset