OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
upenr_crk.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!|| upenr_crk ../engine/source/elements/xfem/upenr_crk.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- uses -----------------------------------------------------
28!|| crackxfem_mod ../engine/share/modules/crackxfem_mod.F
29!||====================================================================
30 SUBROUTINE upenr_crk(ADDCNE_CRK ,INOD_CRK ,NODFT ,NODLT,
31 . NODENR ,ENRTAG ,NODLEVXF,PROCNE_CRK)
32C-----------------------------------------------
34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38C-----------------------------------------------
39C C o m m o n B l o c k s
40C-----------------------------------------------
41#include "com04_c.inc"
42#include "com_xfem1.inc"
43C-----------------------------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER ADDCNE_CRK(*),INOD_CRK(*),NODFT,NODLT,NODENR(*),
47 . enrtag(numnod,*),nodlevxf(*),procne_crk(*)
48C-----------------------------------------------
49C L o c a l V a r i a b l e s
50C-----------------------------------------------
51 INTEGER I,KK,N,NSX,NCT_CRK,NC_CRK,EN0,ENR,ILEV,NLEV,OK_UP,ENR_MAX
52 INTEGER, DIMENSION(:),ALLOCATABLE :: IFAC0
53C=======================================================================
54 ALLOCATE(ifac0(0:ienrnod))
55c
56 DO n = nodft,nodlt
57 nsx = inod_crk(n)
58 IF (nsx <= 0) cycle
59 ifac0 = 0
60 nct_crk = addcne_crk(nsx)-1
61 nc_crk = addcne_crk(nsx+1)-addcne_crk(nsx)
62 nlev = nodlevxf(nsx)
63 DO ilev=1,nlev
64 ok_up = 0
65 DO kk = nct_crk+1, nct_crk+nc_crk
66 en0 = abs(crklvset(ilev)%ENR0(1,kk))
67 IF (en0 > 0) THEN
68 enr_max = enrtag(n,en0)
69 IF (enr_max > 0) THEN ! il y a une fissure dans l'adresse sky
70 ifac0(en0) = enr_max
71 ok_up = 1
72 ENDIF
73 ENDIF
74 ENDDO
75c
76 IF (ok_up == 1) THEN
77 DO kk = nct_crk+1, nct_crk+nc_crk
78 en0 = abs(crklvset(ilev)%ENR0(1,kk))
79 enr = ifac0(en0)
80 IF (en0 > 0 .and. enr > 0) crklvset(ilev)%ENR0(1,kk) = enr
81 ENDDO
82 ENDIF
83 ENDDO ! ILEV=1,NLEV
84C
85 enrtag(n,1:ienrnod) = 0
86 ENDDO ! N = NODFT,NODLT
87c-----
88 DEALLOCATE(ifac0)
89C-----------
90 RETURN
91 END
type(xfem_lvset_), dimension(:), allocatable crklvset
subroutine upenr_crk(addcne_crk, inod_crk, nodft, nodlt, nodenr, enrtag, nodlevxf, procne_crk)
Definition upenr_crk.F:32