OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
dxyzsph.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!|| dxyzsph ../starter/source/output/anim/dxyzsph.F
25!||--- called by ------------------------------------------------------
26!|| genani1 ../starter/source/output/anim/genani1.f
27!||--- calls -----------------------------------------------------
28!||====================================================================
29 SUBROUTINE dxyzsph (NESPH,KXSP,X,SPBUF,SNNSPHG,NNSPH)
30C-----------------------------------------------
31C I m p l i c i t T y p e s
32C-----------------------------------------------
33#include "implicit_f.inc"
34C-----------------------------------------------
35C C o m m o n B l o c k s
36C-----------------------------------------------
37#include "sphcom.inc"
38C-----------------------------------------------
39C D u m m y A r g u m e n t s
40C-----------------------------------------------
41 INTEGER NESPH, KXSP(NISP,*),SNNSPHG,NNSPH
43 . x(3,*),spbuf(nspbuf,*)
44C-----------------------------------------------
45C L o c a l V a r i a b l e s
46C-----------------------------------------------
47 INTEGER N, J, INOD,CNT,BUF
49 3 xi,yi,zi,r,
50 4 xq(3),fact
51 REAL R4,R4NP(3*NNSPH)
52C-----------------------------------------------
53 IF (numsph+maxpjet==0) GOTO 100
54C-----------------------------------------------
55 cnt = 0
56 fact =(three/(four*sqrt(two)))**third
57 DO 200 n=1,numsph+maxpjet
58 inod=kxsp(3,n)
59 xi =x(1,inod)
60 yi =x(2,inod)
61 zi =x(3,inod)
62 r = spbuf(1,n)*fact
63 xq(1) =xi+r
64 xq(2) =yi-r
65 xq(3) =zi-r
66 DO j=1,3
67 r4 = xq(j)
68 CALL write_r_c(r4,1)
69 ENDDO
70 xq(1) =xi-r
71 xq(2) =yi+r
72 xq(3) =zi-r
73 DO j=1,3
74 r4 = xq(j)
75 CALL write_r_c(r4,1)
76 ENDDO
77 xq(1) =xi-r
78 xq(2) =yi-r
79 xq(3) =zi+r
80 DO j=1,3
81 r4 = xq(j)
82 CALL write_r_c(r4,1)
83 ENDDO
84 xq(1) =xi+r
85 xq(2) =yi+r
86 xq(3) =zi+r
87 DO j=1,3
88 r4 = xq(j)
89 CALL write_r_c(r4,1)
90 ENDDO
91 200 CONTINUE
92 100 CONTINUE
93C-------------------------------------------------------
94 RETURN
95 END
#define my_real
Definition cppsort.cpp:32
subroutine genani1(x, bufel, ixs, ixq, ixc, ixt, ixp, ixr, ixtg, swaft, iparg, pm, geo, skew, itab, lpby, npby, nstrf, rwbuf, nprw, ipart, iparts, ipartq, ipartc, ipartt, ipartp, ipartr, iparttg, rby, swa4, igrsurf, bufsf, ipartx, kxsp, ixsp, ipartsp, spbuf, ixs10, ixs20, ixs16, ipm, igeo, smater, sel2fa, snfacptx, sixedge, soffx1, snumx1, sxnorm, sinvert, sfunc1, siad, nmanim, d, smas, ms, fxani, mbufel, mdepl, nlevel, elsub, dsanim, nelem, cep, cepsp, nom_opt, ptr_nopt_rwall, ptr_nopt_sect, elbuf_tab, sph2sol, subset)
Definition genani1.F:98
subroutine dxyzsph(nesph, kxsp, x, spbuf, snnsphg, nnsph)
Definition dxyzsph.F:30
program starter
Definition starter.F:39
void write_r_c(float *w, int *len)