OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
dnwals.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!|| dnwals ../engine/source/output/anim/generate/dnwals.F
25!||--- called by ------------------------------------------------------
26!|| dsecnor ../engine/source/output/anim/generate/dsecnor.F
27!||--- calls -----------------------------------------------------
28!|| write_s_c ../common_source/tools/input_output/write_routtines.c
29!||====================================================================
30 SUBROUTINE dnwals(X ,RWL ,MSR )
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-----------------------------------------------
38 INTEGER MSR
39C REAL
41 . x(3,*), rwl(*)
42C-----------------------------------------------
43C L o c a l V a r i a b l e s
44C-----------------------------------------------
45 INTEGER I,J,L
47 . xwl, ywl, zwl,xn,yn,zn,d,dx,dy,dz,xx,yy,zz,xx0,yy0,zz0,
48 . x0(6),y0(6),z0(6),dx0(6),dy0(6),dz0(6),dx1(6),dy1(6),dz1(6)
49 REAL R4
50 DATA dx0/ 0., 0., 0., 0., 0., 0./
51 DATA dy0/ 1.,-1., 0., 0., 0., 0./
52 DATA dz0/ 0., 0.,-1., 1., 1.,-1./
53 DATA dx1/ 1., 1., 1., 1., 0., 0./
54 DATA dy1/ 0., 0., 0., 0., 1., 1./
55 DATA dz1/ 0., 0., 0., 0., 0., 0./
56 DATA x0 /-3.,-3.,-3.,-3.,-3., 3./
57 DATA y0 /-3., 3.,-3., 3.,-3.,-3./
58 DATA z0 /-3., 3., 3.,-3.,-3., 3./
59C-----------------------------------------------
60C
61 xn =rwl(1)
62 yn =rwl(2)
63 zn =rwl(3)
64 IF(msr==0)THEN
65 xwl=rwl(4)
66 ywl=rwl(5)
67 zwl=rwl(6)
68 ELSE
69 xwl=x(1,msr)
70 ywl=x(2,msr)
71 zwl=x(3,msr)
72 ENDIF
73C
74 DO i = 1,6
75 xx0 = x0(i)
76 yy0 = y0(i)
77 zz0 = z0(i)
78 DO j = 1,7
79 xx = xx0
80 yy = yy0
81 zz = zz0
82 DO l = 1,7
83 d = three1000/sqrt(xx*xx+yy*yy+zz*zz)
84 CALL write_s_c(nint(xx*d),1)
85 CALL write_s_c(nint(yy*d),1)
86 CALL write_s_c(nint(zz*d),1)
87 xx = xx + dx0(i)
88 yy = yy + dy0(i)
89 zz = zz + dz0(i)
90 ENDDO
91 xx0 = xx0 + dx1(i)
92 yy0 = yy0 + dy1(i)
93 zz0 = zz0 + dz1(i)
94 ENDDO
95 ENDDO
96C
97 RETURN
98 END
#define my_real
Definition cppsort.cpp:32
subroutine dnwals(x, rwl, msr)
Definition dnwals.F:31
void write_s_c(int *w, int *len)