OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
dxwall.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!|| dxwall ../starter/source/output/anim/dxwall.F
25!||--- called by ------------------------------------------------------
26!|| dxyzsect ../starter/source/output/anim/dxyzsect.F
27!||--- calls -----------------------------------------------------
28!||====================================================================
29 SUBROUTINE dxwall(X ,RWL ,MSR ,
30 3 XMIN ,YMIN ,ZMIN ,XMAX ,YMAX ,
31 4 ZMAX)
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C D u m m y A r g u m e n t s
38C-----------------------------------------------
39 INTEGER MSR
40C REAL
42 . x(3,*), rwl(*),xmin ,ymin ,zmin ,xmax ,ymax , zmax
43C-----------------------------------------------
44C L o c a l V a r i a b l e s
45C-----------------------------------------------
47 . xwl, ywl, zwl,xn,yn,zn,d,dx,dy,dz, r, v1, v2, v3, vv1, vv2,
48 . vv3, vv
49 REAL R4
50C-----------------------------------------------
51C
52 xn =rwl(1)
53 yn =rwl(2)
54 zn =rwl(3)
55 IF(msr==0)THEN
56 xwl=rwl(4)
57 ywl=rwl(5)
58 zwl=rwl(6)
59 ELSE
60 xwl=x(1,msr)
61 ywl=x(2,msr)
62 zwl=x(3,msr)
63 ENDIF
64 dx = xmax - xmin
65 dy = ymax - ymin
66 dz = zmax - zmin
67C
68 r = zep707*max(dx,dy,dz)
69 v1 = zero
70 v2 = zep707
71 v3 = zep707
72 vv1 = v2 * zn - v3 * yn
73 vv2 = v3 * xn - v1 * zn
74 vv3 = v1 * yn - v2 * xn
75 vv = sqrt(vv1*vv1 + vv2*vv2 + vv3*vv3)
76 IF(vv<=half)THEN
77 v1 = zero
78 v2 = -zep707
79 v3 = zep707
80 vv1 = v2 * zn - v3 * yn
81 vv2 = v3 * xn - v1 * zn
82 vv3 = v1 * yn - v2 * xn
83 vv = sqrt(vv1*vv1 + vv2*vv2 + vv3*vv3)
84 ENDIF
85 vv1 = r*vv1/vv
86 vv2 = r*vv2/vv
87 vv3 = r*vv3/vv
88C
89 v1 = vv2 * zn - vv3 * yn
90 v2 = vv3 * xn - vv1 * zn
91 v3 = vv1 * yn - vv2 * xn
92C
93 r4 = xwl + v1
94 CALL write_r_c(r4,1)
95 r4 = ywl + v2
96 CALL write_r_c(r4,1)
97 r4 = zwl + v3
98 CALL write_r_c(r4,1)
99 r4 = xwl + vv1
100 CALL write_r_c(r4,1)
101 r4 = ywl + vv2
102 CALL write_r_c(r4,1)
103 r4 = zwl + vv3
104 CALL write_r_c(r4,1)
105 r4 = xwl - v1
106 CALL write_r_c(r4,1)
107 r4 = ywl - v2
108 CALL write_r_c(r4,1)
109 r4 = zwl - v3
110 CALL write_r_c(r4,1)
111 r4 = xwl - vv1
112 CALL write_r_c(r4,1)
113 r4 = ywl - vv2
114 CALL write_r_c(r4,1)
115 r4 = zwl - vv3
116 CALL write_r_c(r4,1)
117C
118 RETURN
119 END
#define my_real
Definition cppsort.cpp:32
subroutine ymax(idn, fac, npc, pld, stiffmin, stiffmax, stiffini, stiffavg)
Definition law100_upd.F:272
#define max(a, b)
Definition macros.h:21
subroutine dxwall(x, rwl, msr, xmin, ymin, zmin, xmax, ymax, zmax)
Definition dxwall.F:32
void write_r_c(float *w, int *len)