OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
xyznor_crk.F
Go to the documentation of this file.
1
Copyright> OpenRadioss
2
Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3
Copyright>
4
Copyright> This program is free software: you can redistribute it and/or modify
5
Copyright> it under the terms of the GNU Affero General Public License as published by
6
Copyright> the Free Software Foundation, either version 3 of the License, or
7
Copyright> (at your option) any later version.
8
Copyright>
9
Copyright> This program is distributed in the hope that it will be useful,
10
Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11
Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
Copyright> GNU Affero General Public License for more details.
13
Copyright>
14
Copyright> You should have received a copy of the GNU Affero General Public License
15
Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16
Copyright>
17
Copyright>
18
Copyright> Commercial Alternative: Altair Radioss Software
19
Copyright>
20
Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21
Copyright> software under a commercial license. Contact Altair to discuss further if the
22
Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23
!||====================================================================
24
!|| xyznor_crk ../engine/source/output/anim/generate/xyznor_crk.F
25
!||--- called by ------------------------------------------------------
26
!|| genani ../engine/source/output/anim/generate/genani.F
27
!||--- calls -----------------------------------------------------
28
!|| spmd_wrt_crk_xyznor ../engine/source/mpi/anim/spmd_wrt_crk_xyznor.F
29
!|| write_s_c ../common_source/tools/input_output/write_routtines.c
30
!||--- uses -----------------------------------------------------
31
!|| crackxfem_mod ../engine/share/modules/crackxfem_mod.F
32
!||====================================================================
33
SUBROUTINE
xyznor_crk
(ICRK,XNORM,NFNOD_CRKXFEMG)
34
C-----------------------------------------------
35
USE
crackxfem_mod
36
C-----------------------------------------------
37
C I m p l i c i t T y p e s
38
C-----------------------------------------------
39
#include "implicit_f.inc"
40
C-----------------------------------------------
41
C C o m m o n B l o c k s
42
C-----------------------------------------------
43
#include "com01_c.inc"
44
#include "scr14_c.inc"
45
#include "task_c.inc"
46
C-----------------------------------------------
47
C D u m m y A r g u m e n t s
48
C-----------------------------------------------
49
INTEGER
ICRK
50
C REAL
51
my_real
52
. xnorm(3,*)
53
C-----------------------------------------------
54
C L O C A L V A R I A B L E S
55
C-----------------------------------------------
56
INTEGER
I,INORM(3),K,P,IXNN,ND,ARSZ,EMPL,NFNOD_CRKXFEMG
57
INTEGER
,
DIMENSION(:,:)
,
ALLOCATABLE
:: INORMAR
58
C REAL
59
my_real
60
. s3000,s
61
C=======================================================================
62
s3000 = three1000
63
ixnn = s3000
64
IF
(fmt_ani == 4) ixnn=0
65
C
66
IF
(nspmd == 1)
THEN
67
arsz =
crknod
(icrk)%CRKNUMNODS
68
ALLOCATE
(inormar(3,arsz))
69
DO
nd=1,arsz
70
C EMPL = ND
71
C S = SQRT(XNORM(1,ND)**2 + XNORM(2,ND)**2 + XNORM(3,ND)**2)
72
s = zero
73
IF
(s /= zero)
THEN
74
C S = S3000 / S
75
c INORMAR(1,EMPL) = XNORM(1,I) * S
76
c INORMAR(2,EMPL) = XNORM(2,I) * S
77
c INORMAR(3,EMPL) = XNORM(3,I) * S
78
ELSE
79
inormar(1,nd) = 0
80
inormar(2,nd) = 0
81
inormar(3,nd) = ixnn
82
END IF
83
END DO
84
CALL
write_s_c
(inormar,3*arsz)
85
DEALLOCATE
(inormar)
86
ELSE
87
IF
(ispmd==0)
THEN
88
CALL
spmd_wrt_crk_xyznor
(icrk,xnorm,nfnod_crkxfemg)
89
ELSE
90
CALL
spmd_wrt_crk_xyznor
(icrk,xnorm,1)
91
ENDIF
92
END IF
93
C-----------------------------------------------
94
RETURN
95
END
my_real
#define my_real
Definition
cppsort.cpp:32
crackxfem_mod
Definition
crackxfem_mod.F:121
crackxfem_mod::crknod
type(xfem_nodes_), dimension(:), allocatable crknod
Definition
crackxfem_mod.F:218
spmd_wrt_crk_xyznor
subroutine spmd_wrt_crk_xyznor(icrk, xnorm, num)
Definition
spmd_wrt_crk_xyznor.F:34
write_s_c
void write_s_c(int *w, int *len)
Definition
write_routtines.c:687
xyznor_crk
subroutine xyznor_crk(icrk, xnorm, nfnod_crkxfemg)
Definition
xyznor_crk.F:34
engine
source
output
anim
generate
xyznor_crk.F
Generated by
1.15.0