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