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 ../engine/source/output/anim/generate/scanor.F
25!||--- called by ------------------------------------------------------
26!|| genani ../engine/source/output/anim/generate/genani.F
27!|| genh3d ../engine/source/output/h3d/h3d_results/genh3d.F
28!||--- calls -----------------------------------------------------
29!|| spmd_min_max ../engine/source/mpi/anim/spmd_min_max.F
30!||====================================================================
31 SUBROUTINE scanor(X,D,CDG,XMIN,YMIN,ZMIN,XMAX,YMAX,ZMAX,SCALE,
32 . WEIGHT)
33C-----------------------------------------------
34C I m p l i c i t T y p e s
35C-----------------------------------------------
36#include "implicit_f.inc"
37C-----------------------------------------------
38C C o m m o n B l o c k s
39C-----------------------------------------------
40#include "com01_c.inc"
41#include "com04_c.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER WEIGHT(*)
46 my_real :: x(3,*),d(3,*),cdg(*),xmin,ymin,zmin,xmax,ymax,zmax, scale
47 my_real :: dx,dy,dz
48 INTEGER N
49C-----------------------------------------------
50 xmin = ep30
51 ymin = ep30
52 zmin = ep30
53 xmax = -ep30
54 ymax = -ep30
55 zmax = -ep30
56
57 DO n=1,numnod
58 IF (weight(n)==1) THEN
59 xmin = min(xmin,(x(1,n)-d(1,n)))
60 ymin = min(ymin,(x(2,n)-d(2,n)))
61 zmin = min(zmin,(x(3,n)-d(3,n)))
62 xmax = max(xmax,(x(1,n)-d(1,n)))
63 ymax = max(ymax,(x(2,n)-d(2,n)))
64 zmax = max(zmax,(x(3,n)-d(3,n)))
65 END IF
66 END DO
67 IF(nspmd > 1) CALL spmd_min_max(xmin,ymin,zmin,xmax,ymax,zmax)
68
69 cdg(1) = half * (xmax + xmin)
70 cdg(2) = half * (ymax + ymin)
71 cdg(3) = half * (zmax + zmin)
72
73 dx = xmax - xmin
74 dy = ymax - ymin
75 dz = zmax - zmin
76
77 scale = max(dx,dy,dz)
78
79 scale = one/scale
80
81 RETURN
82 END
#define my_real
Definition cppsort.cpp:32
subroutine scanor(x, d, cdg, xmin, ymin, zmin, xmax, ymax, zmax, scale, weight)
Definition scanor.F:33
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 spmd_min_max(x1, y1, z1, x2, y2, z2)