OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
upxfem1.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!|| upxfem1 ../engine/source/elements/xfem/upxfem1.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- calls -----------------------------------------------------
28!|| startimeg ../engine/source/system/timer.F
29!|| stoptimeg ../engine/source/system/timer.F
30!|| upenric1_n3 ../engine/source/elements/xfem/upenric1_n3.F
31!|| upenric1_n4 ../engine/source/elements/xfem/upenric1_n4.F
32!|| upenric2_n3 ../engine/source/elements/xfem/upenric2_n3.F
33!|| upenric2_n4 ../engine/source/elements/xfem/upenric2_n4.F
34!||--- uses -----------------------------------------------------
35!|| crackxfem_mod ../engine/share/modules/crackxfem_mod.F
36!|| elbufdef_mod ../common_source/modules/mat_elem/elbufdef_mod.F90
37!||====================================================================
38 SUBROUTINE upxfem1(XFEM_TAB,
39 . IPARG ,IXC ,NGROUC ,IGROUC ,IXTG ,
40 . IADC_CRK ,IEL_CRK ,INOD_CRK,ELCUTC ,NODEDGE ,
41 . ENRTAG ,CRKEDGE ,XEDGE4N ,XEDGE3N )
42C-----------------------------------------------
43C M o d u l e s
44C-----------------------------------------------
46 USE elbufdef_mod
47C-----------------------------------------------
48C I m p l i c i t T y p e s
49C-----------------------------------------------
50#include "implicit_f.inc"
51C-----------------------------------------------
52C C o m m o n B l o c k s
53C-----------------------------------------------
54#include "param_c.inc"
55#include "com01_c.inc"
56#include "com04_c.inc"
57#include "com_xfem1.inc"
58#include "task_c.inc"
59#include "vect01_c.inc"
60C-----------------------------------------------
61C D u m m y A r g u m e n t s
62C-----------------------------------------------
63 INTEGER IPARG(NPARG,*),IXC(NIXC,*),NGROUC,IGROUC(*),IEL_CRK(*),
64 . ELCUTC(2,*),IADC_CRK(*),INOD_CRK(*),IXTG(NIXTG,*),
65 . NODEDGE(2,*),ENRTAG(NUMNOD,*),XEDGE4N(4,*),XEDGE3N(3,*)
66C
67 TYPE (ELBUF_STRUCT_), TARGET ,DIMENSION(NGROUP,NXEL) :: XFEM_TAB
68 TYPE (XFEM_EDGE_) , DIMENSION(*) :: CRKEDGE
69C-----------------------------------------------
70C L o c a l V a r i a b l e s
71C-----------------------------------------------
72 INTEGER IG,NG,JFT,JLT,NEL,NF1,ITG1,ITG2,NXLAY,OFF,IXFEM
73C=======================================================================
74C check cracks connections
75c---------------------------
76C Boucle parallele dynamique SMP
77!$OMP DO SCHEDULE(DYNAMIC,1)
78c---------------------------
79 DO ig = 1, ngrouc
80 ng = igrouc(ig)
81 off = iparg(8,ng)
82 ixfem = iparg(54,ng) * iparg(70,ng) ! IXFEM * ACTIVEXFEM
83 IF (off == 0 .and. ixfem > 0) THEN
84 IF (iddw > 0) CALL startimeg(ng)
85C---
86 ity = iparg(5,ng)
87 nel = iparg(2,ng)
88 nft = iparg(3,ng)
89 nxlay = iparg(59,ng)
90 lft = 1
91 llt = min(nvsiz,nel)
92 jft=lft
93 jlt=llt
94c
95C--- connection des fissures sur une arrete (enrichissements) : iecut=3
96 IF (ity == 3) THEN
97 CALL upenric1_n4(iparg ,ixc ,nft ,jft ,jlt ,
98 . elcutc ,iadc_crk,iel_crk,inod_crk ,nxlay ,
99 . nodedge,enrtag ,crkedge ,xedge4n )
100 ELSEIF (ity == 7) THEN
101 itg1 = 1+numelc
102 itg2 = 1+4*ecrkxfec
103 CALL upenric1_n3(
104 . iparg ,ixtg ,nft ,jft ,jlt ,
105 . elcutc(1,itg1),iadc_crk(itg2),iel_crk(itg1),inod_crk,nxlay,
106 . nodedge ,enrtag,crkedge ,xedge3n )
107 ENDIF
108C---
109 IF (iddw > 0) CALL stoptimeg(ng)
110 ENDIF
111 ENDDO
112!$OMP END DO
113C-----------------------------------------------
114C
115C Boucle parallele dynamique SMP
116C
117!$OMP DO SCHEDULE(DYNAMIC,1)
118 DO ig = 1, ngrouc
119 ng = igrouc(ig)
120 off = iparg(8,ng)
121 ixfem = iparg(54,ng) * iparg(70,ng) ! IXFEM * ACTIVEXFEM
122 IF (off == 0 .and. ixfem > 0) THEN
123 IF (iddw > 0) CALL startimeg(ng)
124C---
125 ity = iparg(5,ng)
126 nel = iparg(2,ng)
127 nft = iparg(3,ng)
128 nxlay = iparg(59,ng)
129 lft = 1
130 llt = min(nvsiz,nel)
131 jft=lft
132 jlt=llt
133C---
134 IF (ity == 3) THEN
135 CALL upenric2_n4(iparg ,ixc ,nft ,jft ,jlt ,
136 . elcutc ,iadc_crk,iel_crk,inod_crk,enrtag,
137 . nxlay ,crkedge ,xedge4n )
138 ELSEIF (ity == 7) THEN
139 itg1 = 1+numelc
140 itg2 = 1+4*ecrkxfec
141 CALL upenric2_n3(
142 . iparg ,ixtg ,nft ,jft ,jlt ,
143 . elcutc(1,itg1),iadc_crk(itg2),iel_crk(itg1),inod_crk,enrtag,
144 . nxlay ,crkedge ,xedge3n )
145 ENDIF
146C---
147 IF (iddw > 0) CALL stoptimeg(ng)
148 ENDIF
149 ENDDO
150!$omp END DO
151c-------------
152 RETURN
153 END
subroutine startimeg(ng)
Definition timer.F:1487
subroutine stoptimeg(ng)
Definition timer.F:1535
#define min(a, b)
Definition macros.h:20
subroutine upenric1_n3(iparg, ixtg, nft, jft, jlt, elcutc, iad_crktg, iel_crktg, inod_crk, nxlay, nodedge, enrtag, crkedge, xedge3n)
Definition upenric1_n3.F:34
subroutine upenric1_n4(iparg, ixc, nft, jft, jlt, elcutc, iadc_crk, iel_crk, inod_crk, nxlay, nodedge, enrtag, crkedge, xedge4n)
Definition upenric1_n4.F:33
subroutine upenric2_n3(iparg, ixtg, nft, jft, jlt, elcutc, iad_crktg, iel_crktg, inod_crk, enrtag, nxlay, crkedge, xedge3n)
Definition upenric2_n3.F:33
subroutine upenric2_n4(iparg, ixc, nft, jft, jlt, elcutc, iadc_crk, iel_crk, inod_crk, enrtag, nxlay, crkedge, xedge4n)
Definition upenric2_n4.F:33
subroutine upxfem1(xfem_tab, iparg, ixc, ngrouc, igrouc, ixtg, iadc_crk, iel_crk, inod_crk, elcutc, nodedge, enrtag, crkedge, xedge4n, xedge3n)
Definition upxfem1.F:42