OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
xyznod_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!|| xyznod_crk0 ../engine/source/output/anim/generate/xyznod_crk.F
25!||--- called by ------------------------------------------------------
26!|| genani ../engine/source/output/anim/generate/genani.F
27!||--- uses -----------------------------------------------------
28!|| crackxfem_mod ../engine/share/modules/crackxfem_mod.F
29!||====================================================================
30 SUBROUTINE xyznod_crk0(ILEV)
31C-----------------------------------------------
32 USE crackxfem_mod
33C-----------------------------------------------
34C I m p l i c i t T y p e s
35C-----------------------------------------------
36#include "implicit_f.inc"
37C-----------------------------------------------
38C D u m m y A r g u m e n t s
39C-----------------------------------------------
40 INTEGER ILEV
41C-----------------------------------------------
42C L O C A L V A R I A B L E S
43C-----------------------------------------------
44 INTEGER ND,IAD
45C=======================================================================
46c Copy phantom node coordinates to work table for crack intersections
47C-----------------------------------------------
48 DO nd=1,crknod(ilev)%CRKNUMNODS
49 iad = crknod(ilev)%NOD2IAD(nd)
50 crkavx(ilev)%XX(1,nd) = crkavx(ilev)%X(1,iad)
51 crkavx(ilev)%XX(2,nd) = crkavx(ilev)%X(2,iad)
52 crkavx(ilev)%XX(3,nd) = crkavx(ilev)%X(3,iad)
53 END DO
54C-----------
55 RETURN
56 END
57c
58!||====================================================================
59!|| xyznod_crk ../engine/source/output/anim/generate/xyznod_crk.F
60!||--- called by ------------------------------------------------------
61!|| genani ../engine/source/output/anim/generate/genani.F
62!||--- calls -----------------------------------------------------
63!|| spmd_wrt_crk_xyznod ../engine/source/mpi/anim/spmd_wrt_crk_xyznod.F
64!|| write_r_c ../common_source/tools/input_output/write_routtines.c
65!||--- uses -----------------------------------------------------
66!|| crackxfem_mod ../engine/share/modules/crackxfem_mod.F
67!||====================================================================
68 SUBROUTINE xyznod_crk(ICRK,NFNOD_CRKXFEMG,NODGLOBXFE)
69C-----------------------------------------------
70 USE crackxfem_mod
71C-----------------------------------------------
72C I m p l i c i t T y p e s
73C-----------------------------------------------
74#include "implicit_f.inc"
75C-----------------------------------------------
76C C o m m o n B l o c k s
77C-----------------------------------------------
78#include "com01_c.inc"
79#include "task_c.inc"
80C-----------------------------------------------
81C D u m m y A r g u m e n t s
82C-----------------------------------------------
83 INTEGER ICRK,NFNOD_CRKXFEMG,NODGLOBXFE(*)
84C-----------------------------------------------
85C L O C A L V A R I A B L E S
86C-----------------------------------------------
87 INTEGER ND,NNODE
88 REAL, DIMENSION(:,:), ALLOCATABLE :: XNODARRAY
89C=======================================================================
90c Write phantom node coordinates to ANIM file
91C-----------------------------------------------
92 IF (nspmd == 1) THEN
93 nnode = crknod(icrk)%CRKNUMNODS
94 ALLOCATE (xnodarray(3,nnode))
95 DO nd=1,nnode
96 xnodarray(1,nd) = crkavx(icrk)%XX(1,nd)
97 xnodarray(2,nd) = crkavx(icrk)%XX(2,nd)
98 xnodarray(3,nd) = crkavx(icrk)%XX(3,nd)
99 END DO
100 CALL write_r_c(xnodarray,3*nnode)
101 DEALLOCATE(xnodarray)
102 ELSE
103 IF (ispmd == 0) THEN
104 CALL spmd_wrt_crk_xyznod(icrk,nfnod_crkxfemg,nodglobxfe)
105 ELSE
106 CALL spmd_wrt_crk_xyznod(icrk,1,nodglobxfe)
107 ENDIF
108 ENDIF
109C-----------
110 RETURN
111 END
type(xfem_nodes_), dimension(:), allocatable crknod
type(xfem_avx_), dimension(:), allocatable crkavx
subroutine spmd_wrt_crk_xyznod(icrk, num, nodglobxfe)
void write_r_c(float *w, int *len)
subroutine xyznod_crk(icrk, nfnod_crkxfemg, nodglobxfe)
Definition xyznod_crk.F:69
subroutine xyznod_crk0(ilev)
Definition xyznod_crk.F:31