OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
xyznor.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 ../starter/source/output/anim/xyznor.F
25!||--- called by ------------------------------------------------------
26!|| dd_ani ../starter/source/output/anim/dd_ani.f
27!|| genani1 ../starter/source/output/anim/genani1.F
28!||--- calls -----------------------------------------------------
29!||====================================================================
30 SUBROUTINE xyznor(XNORM)
31C-----------------------------------------------
32C I m p l i c i t T y p e s
33C-----------------------------------------------
34#include "implicit_f.inc"
35C-----------------------------------------------
36C D u m m y A r g u m e n t s
37C-----------------------------------------------
38C REAL
40 . xnorm(3,*)
41C REAL
43 . s3000,s
44 INTEGER I,INORM(3)
45C-----------------------------------------------
46C C o m m o n B l o c k s
47C-----------------------------------------------
48#include "com04_c.inc"
49C-----------------------------------------------
50 s3000 = three1000
51C
52 DO 100 i=1,numnod
53 s = sqrt(xnorm(1,i)**2 + xnorm(2,i)**2 + xnorm(3,i)**2)
54 IF(s/=0.0)THEN
55 s = s3000 / s
56 inorm(1) = xnorm(1,i) * s
57 inorm(2) = xnorm(2,i) * s
58 inorm(3) = xnorm(3,i) * s
59 ELSE
60 inorm(1) = zero
61 inorm(2) = zero
62 inorm(3) = s3000
63 ENDIF
64 CALL write_s_c(inorm,3)
65 100 CONTINUE
66C-----------------------------------------------
67 RETURN
68 END
#define my_real
Definition cppsort.cpp:32
subroutine dd_ani(x, ixs, ixq, ixc, ixt, ixp, ixr, ixtg, iparg, kxsp, ixsp)
Definition dd_ani.F:38
subroutine xyznor(xnorm)
Definition xyznor.F:31
program starter
Definition starter.F:39
void write_s_c(int *w, int *len)