OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
pretag_xfem.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| pretag_xfem ../starter/source/elements/xfem/pretag_xfem.F
25!||--- called by ------------------------------------------------------
26!|| lectur ../starter/source/starter/lectur.F
27!||--- calls -----------------------------------------------------
28!|| tag_sh ../starter/source/elements/xfem/pretag_xfem.F
29!||====================================================================
30 SUBROUTINE pretag_xfem(IPARG ,ITAGE ,IEL_CRKXFEM,ITAGN ,INOD_CRKXFEM)
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
112 END
113c
114!||====================================================================
115!|| tag_sh ../starter/source/elements/xfem/pretag_xfem.F
116!||--- called by ------------------------------------------------------
117!|| pretag_xfem ../starter/source/elements/xfem/pretag_xfem.F
118!||====================================================================
119 SUBROUTINE tag_sh(ITAGE,IEL_CRKXFEM,ECRKXFE,LFT,LLT,NFT)
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
141 END
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
subroutine pretag_xfem(iparg, itage, iel_crkxfem, itagn, inod_crkxfem)
Definition pretag_xfem.F:31
subroutine tag_sh(itage, iel_crkxfem, ecrkxfe, lft, llt, nft)