OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
scanor.F
Go to the documentation of this file.
1
Copyright> OpenRadioss
2
Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3
Copyright>
4
Copyright> This program is free software: you can redistribute it and/or modify
5
Copyright> it under the terms of the GNU Affero General Public License as published by
6
Copyright> the Free Software Foundation, either version 3 of the License, or
7
Copyright> (at your option) any later version.
8
Copyright>
9
Copyright> This program is distributed in the hope that it will be useful,
10
Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11
Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
Copyright> GNU Affero General Public License for more details.
13
Copyright>
14
Copyright> You should have received a copy of the GNU Affero General Public License
15
Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16
Copyright>
17
Copyright>
18
Copyright> Commercial Alternative: Altair Radioss Software
19
Copyright>
20
Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21
Copyright> software under a commercial license. Contact Altair to discuss further if the
22
Copyright> 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)
29
C-----------------------------------------------
30
C I m p l i c i t T y p e s
31
C-----------------------------------------------
32
#include "implicit_f.inc"
33
C-----------------------------------------------
34
C D u m m y A r g u m e n t s
35
C-----------------------------------------------
36
C REAL
37
my_real
38
. x(3,*),d(3,*),cdg(*), scale
39
C REAL
40
my_real
41
. xmin,ymin,zmin,xmax,
ymax
,zmax,dx,dy,dz
42
INTEGER
II(4), N
43
C-----------------------------------------------
44
C C o m m o n B l o c k s
45
C-----------------------------------------------
46
#include
"com04_c.inc"
47
xmin = ep30
48
ymin = ep30
49
zmin = ep30
50
xmax = -ep30
51
ymax
= -ep30
52
zmax = -ep30
53
C
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
62
C
63
cdg(1) = half * (xmax + xmin)
64
cdg(2) = half * (
ymax
+ ymin)
65
cdg(3) = half * (zmax + zmin)
66
C
67
dx = xmax - xmin
68
dy =
ymax
- ymin
69
dz = zmax - zmin
70
C
71
scale =
max
(dx,dy,dz)
72
scale = one/scale
73
C
74
RETURN
75
END
my_real
#define my_real
Definition
cppsort.cpp:32
ymax
subroutine ymax(idn, fac, npc, pld, stiffmin, stiffmax, stiffini, stiffavg)
Definition
law100_upd.F:272
min
#define min(a, b)
Definition
macros.h:20
max
#define max(a, b)
Definition
macros.h:21
scanor
subroutine scanor(x, d, cdg, scale)
Definition
scanor.F:29
starter
source
output
anim
scanor.F
Generated by
1.15.0