OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
asspar_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!|| asspar_crk ../engine/source/elements/xfem/asspar_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 asspar_crk(
31 . ADDCNE_CRK,INOD_CRK ,CRKSKY ,NODFT ,NODLT ,
32 . NODENR ,NODLEVXF ,ITAB )
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 "com04_c.inc"
43#include "com_xfem1.inc"
44C-----------------------------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER NODFT,NODLT
48 INTEGER ADDCNE_CRK(*),INOD_CRK(*),NODENR(*),NODLEVXF(*),ITAB(NUMNOD)
49 TYPE(xfem_sky_), DIMENSION(*) :: CRKSKY
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53 INTEGER I,KK,NSX,NC_CRK,NCT_CRK,EN0,ILEV,NLEV
54 my_real, DIMENSION(:,:),ALLOCATABLE :: XFAC0
55C=======================================================================
56 ALLOCATE(xfac0(6,ienrnod))
57c
58 DO i = nodft,nodlt
59 nsx = inod_crk(i)
60 IF (nsx <= 0) cycle
61 xfac0 = zero
62 nct_crk = addcne_crk(nsx)-1
63 nc_crk = addcne_crk(nsx+1)-addcne_crk(nsx)
64 nlev = nodlevxf(nsx)
65c
66 DO ilev=1,nlev
67 DO kk = nct_crk+1, nct_crk+nc_crk
68 en0 = crklvset(ilev)%ENR0(2,kk)
69 IF (en0 > 0) THEN
70 xfac0(1,en0) = xfac0(1,en0) + crksky(ilev)%FSKY(1,kk)
71 xfac0(2,en0) = xfac0(2,en0) + crksky(ilev)%FSKY(2,kk)
72 xfac0(3,en0) = xfac0(3,en0) + crksky(ilev)%FSKY(3,kk)
73 xfac0(4,en0) = xfac0(4,en0) + crksky(ilev)%FSKY(4,kk)
74 xfac0(5,en0) = xfac0(5,en0) + crksky(ilev)%FSKY(5,kk)
75 xfac0(6,en0) = xfac0(6,en0) + crksky(ilev)%FSKY(6,kk)
76 END IF
77C---
78 END DO
79 END DO
80C---
81 DO ilev=1,nlev
82 DO kk = nct_crk+1, nct_crk+nc_crk
83 en0 = crklvset(ilev)%ENR0(2,kk)
84 IF (en0 > 0) THEN
85 crksky(ilev)%FSKY(1,kk) = xfac0(1,en0)
86 crksky(ilev)%FSKY(2,kk) = xfac0(2,en0)
87 crksky(ilev)%FSKY(3,kk) = xfac0(3,en0)
88 crksky(ilev)%FSKY(4,kk) = xfac0(4,en0)
89 crksky(ilev)%FSKY(5,kk) = xfac0(5,en0)
90 crksky(ilev)%FSKY(6,kk) = xfac0(6,en0)
91 END IF
92 END DO
93 END DO
94C---
95 END DO
96C---
97 DEALLOCATE(xfac0)
98C-----------
99 RETURN
100 END
subroutine asspar_crk(addcne_crk, inod_crk, crksky, nodft, nodlt, nodenr, nodlevxf, itab)
Definition asspar_crk.F:33
type(xfem_lvset_), dimension(:), allocatable crklvset