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

Go to the source code of this file.

Functions/Subroutines

subroutine pretag_xfem (iparg, itage, iel_crkxfem, itagn, inod_crkxfem)
subroutine tag_sh (itage, iel_crkxfem, ecrkxfe, lft, llt, nft)

Function/Subroutine Documentation

◆ pretag_xfem()

subroutine pretag_xfem ( integer, dimension(nparg,ngroup) iparg,
integer, dimension(numelc+numeltg) itage,
integer, dimension(numelc+numeltg) iel_crkxfem,
integer, dimension(numnod) itagn,
integer, dimension(numnod) inod_crkxfem )

Definition at line 30 of file pretag_xfem.F.

31C-----------------------------------------------
32c numerotation locale des noeuds et elems fantomes des parts xfem
33C-----------------------------------------------
34C I m p l i c i t T y p e s
35C-----------------------------------------------
36#include "implicit_f.inc"
37C-----------------------------------------------
38C C o m m o n B l o c K s
39C-----------------------------------------------
40#include "com01_c.inc"
41#include "com04_c.inc"
42#include "com_xfem1.inc"
43#include "param_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER IPARG(NPARG,NGROUP)
48 INTEGER , DIMENSION(NUMNOD) :: ITAGN, INOD_CRKXFEM
49 INTEGER , DIMENSION(NUMELC+NUMELTG) :: ITAGE, IEL_CRKXFEM
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53 INTEGER I,K,NG,NEL,IXFEM,NFT,ITY,LFT,LLT,ITG,IGTYP,ICRK_ALL(2)
54C=======================================================================
55 itg = 1 + numelc
56C
57 ncrkxfe = 0 ! local par proc
58 DO i=1,numnod
59 IF(itagn(i) > 0)THEN
60 ncrkxfe = ncrkxfe + 1
61 inod_crkxfem(i) = ncrkxfe
62 ENDIF
63 ENDDO
64C
65 icrk_all(1:2) = 0
66 ecrkxfe = 0 ! local par proc, toutes les coques
67c
68 DO ng=1,ngroup
69 ixfem=iparg(54,ng)
70 IF (ixfem == 0) cycle
71c
72 nel =iparg(2,ng)
73 nft =iparg(3,ng)
74 ity =iparg(5,ng)
75 igtyp=iparg(38,ng)
76 lft =1
77 llt =min(nvsiz,nel)
78 nxlaymax = max(nxlaymax, iparg(59,ng)) ! Max Xfem layers, for alloc
79c
80c--- Fill xfem elements table : IEL_CRKXFEM(NUMELC+NUMELTG) = sys numbers
81c
82 IF (ity==3) THEN
83 CALL tag_sh(itage ,iel_crkxfem ,ecrkxfe,
84 . lft ,llt ,nft )
85 ELSE IF (ity==7) THEN
86 CALL tag_sh(itage(itg),iel_crkxfem(itg),ecrkxfe,
87 . lft ,llt ,nft )
88 END IF
89C
90 IF (igtyp == 11 .AND. ixfem == 1) THEN
91 icrk_all(1) = icrk_all(1) + 1
92 ELSEIF (igtyp == 1 .AND. ixfem == 2) THEN
93 icrk_all(2) = icrk_all(2) + 1
94 END IF
95 ENDDO
96C
97 IF (icrk_all(2) > 0) THEN
98 icrack3d = icrack3d + 1
99 IF (icrk_all(1) > 0) icrack3d = icrack3d + 1
100 ENDIF
101C--- Count Xfem elements
102 ecrkxfec = 0 ! local par proc, coques 4N
103 ecrkxfetg= 0 ! local par proc, coques 3N
104 DO i=1,numelc
105 IF (iel_crkxfem(i) > 0) ecrkxfec = ecrkxfec + 1
106 END DO
107 DO i=1,numeltg
108 IF (iel_crkxfem(i+numelc) > 0) ecrkxfetg = ecrkxfetg + 1
109 END DO
110C-----------
111 RETURN
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
subroutine tag_sh(itage, iel_crkxfem, ecrkxfe, lft, llt, nft)

◆ tag_sh()

subroutine tag_sh ( integer, dimension(*) itage,
integer, dimension(*) iel_crkxfem,
integer ecrkxfe,
integer lft,
integer llt,
integer nft )

Definition at line 119 of file pretag_xfem.F.

120C-----------------------------------------------
121C I m p l i c i t T y p e s
122C-----------------------------------------------
123#include "implicit_f.inc"
124C-----------------------------------------------
125C D u m m y A r g u m e n t s
126C-----------------------------------------------
127 INTEGER ITAGE(*),IEL_CRKXFEM(*),ECRKXFE,LFT,LLT,NFT
128C-----------------------------------------------
129C L o c a l V a r i a b l e s
130C-----------------------------------------------
131 INTEGER I
132C=======================================================================
133 DO i=lft,llt
134 IF (itage(i+nft) > 0) THEN
135 ecrkxfe = ecrkxfe + 1
136 iel_crkxfem(i+nft) = ecrkxfe
137 ENDIF
138 ENDDO
139C-----------
140 RETURN