OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
anim_crk_init.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!|| anim_xfe_init ../engine/source/output/anim/generate/anim_crk_init.F
25!||--- called by ------------------------------------------------------
26!|| resol_init ../engine/source/engine/resol_init.F
27!||--- uses -----------------------------------------------------
28!|| crackxfem_mod ../engine/share/modules/crackxfem_mod.F
29!||====================================================================
30 SUBROUTINE anim_xfe_init(IXC,IXTG,INOD_CRK,IEL_CRK,
31 . IADC_CRK,IADTG_CRK)
32C-----------------------------------------------
33C M o d u l e s
34C-----------------------------------------------
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C C o m m o n B l o c k s
42C-----------------------------------------------
43#include "com04_c.inc"
44#include "com_xfem1.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER IXC(NIXC,*),IXTG(NIXTG,*),INOD_CRK(*),
49 . iel_crk(*),iadc_crk(4,*),iadtg_crk(3,*)
50C-----------------------------------------------
51C L O C A L V A R I A B L E S
52C-----------------------------------------------
53 INTEGER N,NN,I,II,J,ILEV,NCOUNT,IADC(4)
54C=======================================================================
55 DO ilev=1,nlevmax
56 ncount = 0
57c
58 DO i=1,numelc
59 ii = iel_crk(i) ! n systeme xfem
60 IF (ii > 0) THEN
61 DO j=1,4
62 n = ixc(j+1,i)
63 nn = inod_crk(n) ! n systeme xfem
64 IF (nn > 0) THEN
65 ncount = ncount + 1
66 iadc(j) = iadc_crk(j,ii) ! adresse sky nodal xfem
67 crknod(ilev)%NOD2IAD(ncount) = iadc(j)
68 ENDIF
69 ENDDO
70 ENDIF
71 ENDDO
72c
73 DO i=1,numeltg
74 ii = iel_crk(i+numelc)
75 IF (ii > 0) THEN
76 DO j=1,3
77 n = ixtg(j+1,i)
78 nn = inod_crk(n)
79 iadc(j) = iadtg_crk(j,ii)
80 IF (nn > 0) THEN
81 ncount = ncount + 1
82 crknod(ilev)%NOD2IAD(ncount) = iadc(j)
83 ENDIF
84 ENDDO
85c ! need one more additional node to reconstruct triangle cut elem
86 ncount = ncount + 1
87 crknod(ilev)%NOD2IAD(ncount) = iadc(3)
88 ENDIF
89 ENDDO
90 ENDDO ! DO ILEV=1,NLEVMAX
91c-----------
92 RETURN
93 END
94c
subroutine anim_xfe_init(ixc, ixtg, inod_crk, iel_crk, iadc_crk, iadtg_crk)
type(xfem_nodes_), dimension(:), allocatable crknod