OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
upenritg_last.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!|| upenritg_last ../engine/source/elements/xfem/upenritg_last.F
25!||--- called by ------------------------------------------------------
26!|| upxfem2 ../engine/source/elements/xfem/upxfem2.F
27!||--- uses -----------------------------------------------------
28!|| crackxfem_mod ../engine/share/modules/crackxfem_mod.F
29!||====================================================================
30 SUBROUTINE upenritg_last(
31 . IXTG ,NFT ,JFT ,JLT ,IAD_CRKTG,
32 . IEL_CRKTG,ELCUTC,NXLAY ,CRKEDGE )
33C-----------------------------------------------
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C C o m m o n B l o c k s
41C-----------------------------------------------
42#include "com_xfem1.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER NFT,JFT,JLT,NXLAY
47 INTEGER IXTG(NIXTG,*),IEL_CRKTG(*),IAD_CRKTG(3,*),ELCUTC(2,*)
48 TYPE (XFEM_EDGE_) , DIMENSION(*) :: CRKEDGE
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 INTEGER I,II,NS,ILEV,IXEL,ILAY,ICUT,LAYCUT,IADC1,IADC2,IADC3,
53 . ELCRK,ELCRKTG
54C=======================================================================
55 DO i=jft,jlt
56 ns = i+nft
57 icut = elcutc(1,ns)
58 IF (icut == 0) cycle
59 elcutc(2,ns) = icut
60 elcrktg = iel_crktg(ns)
61 elcrk = elcrktg + ecrkxfec
62 iadc1 = iad_crktg(1,elcrktg)
63 iadc2 = iad_crktg(2,elcrktg)
64 iadc3 = iad_crktg(3,elcrktg)
65 DO ilay = 1,nxlay
66 laycut = crkedge(ilay)%LAYCUT(elcrk)
67 IF (laycut == 0) cycle
68 ii = nxel*(ilay-1)
69 DO ixel=1,nxel
70 ilev = ii + ixel
71 crklvset(ilev)%ENR0(2,iadc1) = crklvset(ilev)%ENR0(1,iadc1)
72 crklvset(ilev)%ENR0(2,iadc2) = crklvset(ilev)%ENR0(1,iadc2)
73 crklvset(ilev)%ENR0(2,iadc3) = crklvset(ilev)%ENR0(1,iadc3)
74 ENDDO
75 ENDDO
76 ENDDO
77C-----------
78 RETURN
79 END
type(xfem_lvset_), dimension(:), allocatable crklvset
subroutine upenritg_last(ixtg, nft, jft, jlt, iad_crktg, iel_crktg, elcutc, nxlay, crkedge)