OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
upenric_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!|| upenric_last ../engine/source/elements/xfem/upenric_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!|| element_mod ../common_source/modules/elements/element_mod.f90
30!||====================================================================
31 SUBROUTINE upenric_last(
32 . IXC ,NFT ,JFT ,JLT ,IADC_CRK,
33 . IEL_CRK ,ELCUTC ,NXLAY ,CRKEDGE)
34C-----------------------------------------------
36 use element_mod , only : nixc
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C C o m m o n B l o c k s
43C-----------------------------------------------
44#include "com_xfem1.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER NFT,JFT,JLT,NXLAY
49 INTEGER IXC(NIXC,*),IADC_CRK(4,*),IEL_CRK(*),ELCUTC(2,*)
50 TYPE (XFEM_EDGE_) , DIMENSION(*) :: CRKEDGE
51C-----------------------------------------------
52C L o c a l V a r i a b l e s
53C-----------------------------------------------
54 INTEGER I,II,NS,ILEV,ILAY,IXEL,ICUT,LAYCUT,ELCRK,IADC1,IADC2,IADC3,IADC4
55C=======================================================================
56 DO i=jft,jlt
57 ns = i+nft
58 icut = elcutc(1,ns)
59 IF (icut == 0) cycle
60 elcutc(2,ns) = icut
61 elcrk = iel_crk(ns)
62 iadc1 = iadc_crk(1,elcrk)
63 iadc2 = iadc_crk(2,elcrk)
64 iadc3 = iadc_crk(3,elcrk)
65 iadc4 = iadc_crk(4,elcrk)
66 DO ilay = 1,nxlay
67 laycut = crkedge(ilay)%LAYCUT(elcrk)
68 IF (laycut == 0) cycle
69 ii = nxel*(ilay-1)
70 DO ixel=1,nxel
71 ilev = ii + ixel
72 crklvset(ilev)%ENR0(2,iadc1) = crklvset(ilev)%ENR0(1,iadc1)
73 crklvset(ilev)%ENR0(2,iadc2) = crklvset(ilev)%ENR0(1,iadc2)
74 crklvset(ilev)%ENR0(2,iadc3) = crklvset(ilev)%ENR0(1,iadc3)
75 crklvset(ilev)%ENR0(2,iadc4) = crklvset(ilev)%ENR0(1,iadc4)
76 ENDDO
77 ENDDO
78 ENDDO
79C-------------
80 RETURN
81 END
type(xfem_lvset_), dimension(:), allocatable crklvset
subroutine upenric_last(ixc, nft, jft, jlt, iadc_crk, iel_crk, elcutc, nxlay, crkedge)