OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
scanor.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!|| scanor ../starter/source/output/anim/scanor.F
25!||--- called by ------------------------------------------------------
26!|| dd_ani ../starter/source/output/anim/dd_ani.F
27!||====================================================================
28 SUBROUTINE scanor(X,D,CDG,SCALE)
29C-----------------------------------------------
30C I m p l i c i t T y p e s
31C-----------------------------------------------
32#include "implicit_f.inc"
33C-----------------------------------------------
34C D u m m y A r g u m e n t s
35C-----------------------------------------------
36C REAL
38 . x(3,*),d(3,*),cdg(*), scale
39C REAL
41 . xmin,ymin,zmin,xmax,ymax,zmax,dx,dy,dz
42 INTEGER II(4), N
43C-----------------------------------------------
44C C o m m o n B l o c k s
45C-----------------------------------------------
46#include "com04_c.inc"
47 xmin = ep30
48 ymin = ep30
49 zmin = ep30
50 xmax = -ep30
51 ymax = -ep30
52 zmax = -ep30
53C
54 DO 100 n=1,numnod
55 xmin = min(xmin,(x(1,n)-d(1,n)))
56 ymin = min(ymin,(x(2,n)-d(2,n)))
57 zmin = min(zmin,(x(3,n)-d(3,n)))
58 xmax = max(xmax,(x(1,n)-d(1,n)))
59 ymax = max(ymax,(x(2,n)-d(2,n)))
60 zmax = max(zmax,(x(3,n)-d(3,n)))
61 100 CONTINUE
62C
63 cdg(1) = half * (xmax + xmin)
64 cdg(2) = half * (ymax + ymin)
65 cdg(3) = half * (zmax + zmin)
66C
67 dx = xmax - xmin
68 dy = ymax - ymin
69 dz = zmax - zmin
70C
71 scale = max(dx,dy,dz)
72 scale = one/scale
73C
74 RETURN
75 END
#define my_real
Definition cppsort.cpp:32
subroutine ymax(idn, fac, npc, pld, stiffmin, stiffmax, stiffini, stiffavg)
Definition law100_upd.F:272
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
subroutine scanor(x, d, cdg, scale)
Definition scanor.F:29