Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sph]

SPH (Smoothed Particle Hydrodynamics) is a computational method to simulate fluid flows. It is a lagrangian method, used in different fields as astrophysics or oceanography.

3
votes
2answers
83 views

Computational cost comparison of DNS and SPH

I may be incorrect, but it seems like commercial graphics codes typically use smoothed particle hydrodynamics (SPH) to produce stunning simulations and not continuum based methods. Why is this? Is SPH ...
0
votes
1answer
384 views

implementation of a simple SPH example

I am currently learning the Smoothed Particle Hydrodynamics method that I need to use later in my thesis. I have studied the mathematics behind the method and I want to code a simple example to show ...
1
vote
1answer
297 views

Classifying Marching Cube voxels from SPH output data using CUDA

So I have been working on a Smooth Particle Hydrodynamics (SPH) simulation and I am trying to implement the Marching Cubes (MC) algorithm to visualize my SPH output. I understand the MC algorithm well ...
1
vote
1answer
102 views

Smoothed particle Hydrodynamics: Resting fluid oscillations

I have a working SPH simulation in 2D. When the particles are in motion everything works fine. But once the simulation comes to a rest particles at the bottom begin to oscillate violently and ...
0
votes
1answer
106 views

Smoothed particle hydrodynamics Implicit methods

I'm trying to learn SPH by implementing different methods. I am currently following Divergence Free Smoothed Particle Hydrodynamics By Jan Bender [1]. I believe I understand the method and the math ...
1
vote
0answers
81 views

How to make objective elastic SPH model?

I have implemented a constitutive equation of elastic materials (Hooke's law) in my 3D weakly compressible SPH solver based on [1]. The coding seems to be correct. To verify the implementation I ...
3
votes
1answer
638 views

Smoothed particle hydrodynamics bounduary (ghost particles) properties

I am learning SPH method. At the moment I am trying to implement simulation described in this very good article. However I don't get how the ghost particles properties are computed: Position of the ...
2
votes
2answers
131 views

Value of density when there are no or very few neighbours in SPH simulation

Sorry for the noob question. I am trying to implement SPH using the directions shown in this paper. The density needs to be updated using the formula The smoothing kernel is If there are no ...
1
vote
3answers
140 views

How to choose $h$ in SPH?

I have a 2D implementation of smoothed particle hydrodynamics up and running, however when I tried to move it to 3D, using the appropriate 3D kernels, particles always tend to go apart from each other....
1
vote
3answers
568 views

How is the divergence and curl approximated in Smoothed Particle Hydrodynamics?

I was reading through Monaghan, SPH, 1992 paper and he states that any quantity $A$ at $r_b$ can be approximated by $A(r) = \sum_b m_b \frac{A_b}{\rho_b}W(r-r_b,h)$ and so the gradient of that ...
0
votes
1answer
238 views

Why doesn't the integral of a smoothing kernel equal 1?

I was checking the unity condition on a smoothing kernel for SPH, however I don't understand why the integral is not giving 1. The kernel function is $\displaystyle W(||\vec r||,h) = \frac{315}{64\pi ...
6
votes
1answer
1k views

How to get proper parameters of SPH simulation?

I'm implementing basic fluid flow simulator using SPH method basing on e.g. https://www10.informatik.uni-erlangen.de/Publications/Theses/2010/Staubach_BA10.pdf. EDIT (dead url): https://www10.cs.fau....
3
votes
1answer
215 views

Should particles in Smoothed Particle Hydrodynamics (SPH) always move during a simulation?

Or can they just be used as an interpolation points and use some other "transported property" which are just evolved and propagated from boundary conditions like for eg. heat conduction through a ...
5
votes
1answer
168 views

Mapping SPH data on Eulerian Grid for further evolution

I'm sure this is very important for anyone working in computational astrophysics. I have a .sph file & it has 10 columns containing ...