Skip to main content
Share Your Experience: Take the 2024 Developer Survey
5 votes
Accepted

implementation of a simple SPH example

The SPH implementation of the function in your question reads as: $f(x,y)=\frac{1}{2}\big(\frac{\partial x}{\partial x}+\frac{\partial y}{\partial y}\big)=\frac{1}{2}\nabla\cdot\textbf{r}\approx\frac{...
BalazsToth's user avatar
3 votes

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

Particles in SPH simulations mimic the motion of material points by simply updating their positions due to their velocities. In situations like heat conduction you don't need to move them, in fact, ...
BalazsToth's user avatar
2 votes

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

Given the fundamental idea of the SPH interpolant with an arbitrary function $A$ (which could be the velocity $\textbf{v}$): $A(r)=\int_{-\infty}^{\infty} A(r')\delta(r-r')dr'$, the convolution of ...
BalazsToth's user avatar
2 votes
Accepted

Computational cost comparison of DNS and SPH

It is extremely difficult to achieve greater than second order accuracy using SPH. Hence once cannot compare SPH with DNS (FVM or FDM). Also the computational cost is much higher for SPH for the same ...
user38161's user avatar
1 vote

Smoothed Particle Hydrodynamics: Weird clustering of particles. Is that normal?

After some more research this effect seems to be known as "tensile instability". So in a sense this behaviour seems to be "correct" for a naive implementation of SPH. There are explicit measures ...
Lenny's user avatar
  • 11
1 vote

Computational cost comparison of DNS and SPH

I don't think you can say that SPH is always much less costly than continuum methods. Less costly than implicit DNS methods, perhaps, but explicit ones can be faster. These have their own problems ...
leftaroundabout's user avatar
1 vote

How to get proper parameters of SPH simulation?

A few constraints that usually work in scientific SPH (weakly compressible) computations: particle radius or influence radius, $\Delta$: define it arbitrarily to set the resolution. smoothing radius, ...
BalazsToth's user avatar
1 vote

Classifying Marching Cube voxels from SPH output data using CUDA

It is a different approach but maybe you could do a point cloud surface reconstruction using total variation denoising as in here. They have a demo code that you could use as a base for your ...
jcperezma's user avatar
1 vote

Smoothed particle Hydrodynamics: Resting fluid oscillations

Firstly, XSPH does not behave as viscosity, it simply calculates the positions based on averaged velocity considering the close vicinity of a particle. But it is important, that the velocity itself is ...
BalazsToth's user avatar
1 vote

How to make objective elastic SPH model?

You may want to check whether angular momentum is conserved for each particle throughout the simulation. The artificial viscosity introduced by the model described in that paper, while useful to ...
Giogre's user avatar
  • 111

Only top scored, non community-wiki answers of a minimum length are eligible