OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
dxyzsph.F File Reference
#include "implicit_f.inc"
#include "sphcom.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine dxyzsph (nesph, kxsp, x, spbuf, snnsphg, nnsph)

Function/Subroutine Documentation

◆ dxyzsph()

subroutine dxyzsph ( integer nesph,
integer, dimension(nisp,*) kxsp,
x,
spbuf,
integer snnsphg,
integer nnsph )

Definition at line 29 of file dxyzsph.F.

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
#define my_real
Definition cppsort.cpp:32
void write_r_c(float *w, int *len)