OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
dxwals.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!|| dxwals ../engine/source/output/anim/generate/dxwals.F
25!||--- called by ------------------------------------------------------
26!|| dxyzsect ../engine/source/output/anim/generate/dxyzsect.F
27!||--- calls -----------------------------------------------------
28!|| spmd_agetmsr ../engine/source/mpi/anim/spmd_agetmsr.F
29!|| write_r_c ../common_source/tools/input_output/write_routtines.c
30!||====================================================================
31 SUBROUTINE dxwals(X ,RWL ,MSR,FR_WALL)
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36#include "com01_c.inc"
37#include "task_c.inc"
38C-----------------------------------------------
39C D u m m y A r g u m e n t s
40C-----------------------------------------------
41 INTEGER MSR,FR_WALL(NSPMD+2)
42C REAL
44 . x(3,*), rwl(*)
45C-----------------------------------------------
46C L o c a l V a r i a b l e s
47C-----------------------------------------------
48 INTEGER I,J,L
49C REAL
51 . xwl, ywl, zwl,xn,yn,zn,d,dx,dy,dz,xx,yy,zz,r,xx0,yy0,zz0,
52 . x0(6),y0(6),z0(6),dx0(6),dy0(6),dz0(6),dx1(6),dy1(6),dz1(6)
53 REAL R4
54 DATA dx0/ 0., 0., 0., 0., 0., 0./
55 DATA dy0/ 1.,-1., 0., 0., 0., 0./
56 DATA dz0/ 0., 0.,-1., 1., 1.,-1./
57 DATA dx1/ 1., 1., 1., 1., 0., 0./
58 DATA dy1/ 0., 0., 0., 0., 1., 1./
59 DATA dz1/ 0., 0., 0., 0., 0., 0./
60 DATA x0 /-3.,-3.,-3.,-3.,-3., 3./
61 DATA y0 /-3., 3.,-3., 3.,-3.,-3./
62 DATA z0 /-3., 3., 3.,-3.,-3., 3./
63C-----------------------------------------------
64C
65 xn =rwl(1)
66 yn =rwl(2)
67 zn =rwl(3)
68 IF (nspmd == 1) THEN
69 IF(msr==0)THEN
70 xwl=rwl(4)
71 ywl=rwl(5)
72 zwl=rwl(6)
73 ELSE
74 xwl=x(1,msr)
75 ywl=x(2,msr)
76 zwl=x(3,msr)
77 ENDIF
78 ELSE
79 CALL spmd_agetmsr(fr_wall,x,msr,xwl,ywl,zwl,rwl)
80 END IF
81 IF (ispmd==0) THEN
82C
83 r = half*rwl(7)
84C
85 DO i = 1,6
86 xx0 = x0(i)
87 yy0 = y0(i)
88 zz0 = z0(i)
89 DO j = 1,7
90 xx = xx0
91 yy = yy0
92 zz = zz0
93 DO l = 1,7
94 d = r/sqrt(xx*xx+yy*yy+zz*zz)
95 r4 = d*xx + xwl
96 CALL write_r_c(r4,1)
97 r4 = d*yy + ywl
98 CALL write_r_c(r4,1)
99 r4 = d*zz + zwl
100 CALL write_r_c(r4,1)
101 xx = xx + dx0(i)
102 yy = yy + dy0(i)
103 zz = zz + dz0(i)
104 ENDDO
105 xx0 = xx0 + dx1(i)
106 yy0 = yy0 + dy1(i)
107 zz0 = zz0 + dz1(i)
108 ENDDO
109 ENDDO
110 ENDIF
111C
112 RETURN
113 END
#define my_real
Definition cppsort.cpp:32
subroutine dxwals(x, rwl, msr, fr_wall)
Definition dxwals.F:32
subroutine spmd_agetmsr(fr_wall, x, msr, xwl, ywl, zwl, rwl)
void write_r_c(float *w, int *len)