OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
xyznor_ply.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!|| xyznor_ply ../engine/source/output/anim/generate/xyznor_ply.F
25!||--- called by ------------------------------------------------------
26!|| genani ../engine/source/output/anim/generate/genani.F
27!||--- calls -----------------------------------------------------
28!|| spmd_anim_ply_xyznor ../engine/source/mpi/anim/spmd_anim_ply_xyznor.f
29!|| write_s_c ../common_source/tools/input_output/write_routtines.c
30!||--- uses -----------------------------------------------------
31!|| plyxfem_mod ../engine/share/modules/plyxfem_mod.F
32!||====================================================================
33 SUBROUTINE xyznor_ply(IPLY,XNORM,NODGLOB,WEIGHT,EMPSIZPL)
34C-----------------------------------------------
35 USE plyxfem_mod
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 "com01_c.inc"
44#include "com04_c.inc"
45#include "scr14_c.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 INTEGER NODGLOB(*),WEIGHT(NUMNOD),EMPSIZPL
50 INTEGER IPLY
51C REAL
53 . xnorm(3,*)
54C REAL
56 . s3000,s
57 INTEGER I,INORM(3),K,P,IXNN,N,ARSZ,EMPL
58 INTEGER, DIMENSION(:,:), ALLOCATABLE :: INORMAR
59C-----------------------------------------------
60 s3000 = three1000
61 ixnn = s3000
62 IF(fmt_ani==4)ixnn=0
63C
64 IF(nspmd == 1 ) THEN
65 arsz = plynod(iply)%PLYNUMNODS
66 ALLOCATE(inormar(3,arsz))
67
68 DO n=1,plynod(iply)%PLYNUMNODS
69 i = plynod(iply)%NODES(n)
70 empl = plynod(iply)%PLYNODID(n)-empsizpl
71 s = sqrt(xnorm(1,i)**2 + xnorm(2,i)**2 + xnorm(3,i)**2)
72 IF(s/=zero)THEN
73 s = s3000 / s
74 inormar(1,empl) = xnorm(1,i) * s
75 inormar(2,empl) = xnorm(2,i) * s
76 inormar(3,empl) = xnorm(3,i) * s
77 ELSE
78 inormar(1,empl) = 0
79 inormar(2,empl) = 0
80 inormar(3,empl) = ixnn
81 END IF
82 END DO
83 CALL write_s_c(inormar,3*arsz)
84 DEALLOCATE(inormar)
85 empsizpl = empsizpl + plynod(iply)%PLYNUMNODS
86 ELSE
87 CALL spmd_anim_ply_xyznor( nodglob,iply,xnorm,empsizpl)
88 END IF
89C-----------------------------------------------
90 RETURN
91 END
#define my_real
Definition cppsort.cpp:32
type(plynods), dimension(:), allocatable plynod
Definition plyxfem_mod.F:44
subroutine spmd_anim_ply_xyznor(nodglob, iply, xnorm, empsizpl)
void write_s_c(int *w, int *len)
subroutine xyznor_ply(iply, xnorm, nodglob, weight, empsizpl)
Definition xyznor_ply.F:34