OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
xyznod_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!|| xyznod_ply ../engine/source/output/anim/generate/xyznod_ply.F
25!||--- called by ------------------------------------------------------
26!|| genani ../engine/source/output/anim/generate/genani.F
27!||--- calls -----------------------------------------------------
28!|| spmd_anim_ply_xyznod ../engine/source/mpi/anim/spmd_anim_ply_xyznod.F
29!|| write_r_c ../common_source/tools/input_output/write_routtines.c
30!||--- uses -----------------------------------------------------
31!|| plyxfem_mod ../engine/share/modules/plyxfem_mod.F
32!||====================================================================
33 SUBROUTINE xyznod_ply(IPLY,IDPLY,NOD_PXFEM,X,ZI_PLY,NODGLOB,
34 * EMPSIZPL )
35C
36 USE plyxfem_mod
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C C o m m o n B l o c k s
43C-----------------------------------------------
44#include "com01_c.inc"
45#include "param_c.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 INTEGER IPLY,IDPLY,NOD_PXFEM(*),NBF_PXFEMG,NODGLOB(*),EMPSIZPL
51 . x(3,*),zi_ply(nplyxfe,*),norm
52 REAL R4
53C-----------------------------------------------
54C L O C A L V A R I A B L E S
55C-----------------------------------------------
56 INTEGER I,N,II,ND,ARSZ,EMPL
57 REAL, DIMENSION(:,:), ALLOCATABLE :: XNODARRAY
59 . vn
60C
61 ii = idply
62 IF (nspmd == 1) THEN
63 arsz = plynod(iply)%PLYNUMNODS
64 ALLOCATE (xnodarray(3,arsz))
65
66 DO nd=1,plynod(iply)%PLYNUMNODS
67 i = plynod(iply)%NODES(nd)
68 empl = plynod(iply)%PLYNODID(nd)-empsizpl
69 n = nod_pxfem(i)
70 norm = sqrt(vn_nod(1,n)**2 + vn_nod(2,n)**2 + vn_nod(3,n)**2)
71 norm = one/max(em20, norm)
72 vn = vn_nod(1,n)*norm
73 xnodarray(1,empl)=x(1,i)+zi_ply(n,iply)*vn+ply(iply)%U(1,n)
74 vn = vn_nod(2,n)*norm
75 xnodarray(2,empl)=x(2,i)+zi_ply(n,iply)*vn+ply(iply)%U(2,n)
76 vn = vn_nod(3,n)*norm
77 xnodarray(3,empl)=x(3,i)+zi_ply(n,iply)*vn+ply(iply)%U(3,n)
78 END DO
79 CALL write_r_c(xnodarray,3*arsz)
80 DEALLOCATE(xnodarray)
81 empsizpl = empsizpl + plynod(iply)%PLYNUMNODS
82 ELSE
83 CALL spmd_anim_ply_xyznod( nodglob,iply, idply,
84 * nod_pxfem, x, zi_ply,empsizpl )
85 ENDIF
86C-----------------------------------------------
87 RETURN
88 END
89
#define my_real
Definition cppsort.cpp:32
norm(diag(diag(diag(inv(mat))) -id.SOL), 2) % destroy mumps instance id.JOB
#define max(a, b)
Definition macros.h:21
type(plynods), dimension(:), allocatable plynod
Definition plyxfem_mod.F:44
type(ply_data), dimension(:), allocatable ply
Definition plyxfem_mod.F:91
subroutine spmd_anim_ply_xyznod(nodglob, iply, idply, nod_pxfem, x, zi_ply, empsizpl)
void write_r_c(float *w, int *len)
subroutine xyznod_ply(iply, idply, nod_pxfem, x, zi_ply, nodglob, empsizpl)
Definition xyznod_ply.F:35