CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Smoothed Particle Hydrodynamics

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2014, 13:32
Default Smoothed Particle Hydrodynamics
  #1
tjt
New Member
 
Tim
Join Date: May 2013
Posts: 4
Rep Power: 12
tjt is on a distinguished road
Hi,

I am a bit stuck with some SPH code and hope somebody out there can help...

I have generated a geometry consisting of two spherical volumes formed of SPH particles. The spheres are different diameters and I am trying to calculate the curvature of the surface. I know that the curvature should be 1/radius but am not getting this result from my SPH code. I am getting the same curvature for each sphere so am trying to work out what I have messed up:-(

I am using the paper by Kelager as a guide - M. Kelager. Lagrangian fluid dynamics using smoothed particle hydrodynamics. Master’s thesis, University of Copenhagen, Department of Computer Science, 2006.

image.diku.dk/projects/media/kelager.06.pdf

The curvature, k, is defined as the Laplacian of the color field divided by the norm of the gradient of the color field. (Eqn 4.29)

For the gradient, I am looping through all neighbour cells and summing

mass(j)/density(j) * grad_W * dx/|r| for the X dir gradient
mass(j)/density(j) * grad_W * dy/|r| for the Y dir gradient
mass(j)/density(j) * grad_W * dz/|r| for the Z dir gradient

This looks like it gives the correct answer

For the Laplacian of the color field I loop through neighbours and sum

mass(j)/density(j) * laplacian_W

Do I need to multiply this by something - if so what. It isn't defined in the paper...

I am using poly 6 kernel and have coded gradient and Laplacian functions as per the paper.


Any advice would be very gratefully received
tjt is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic and simple SPH-code questions (smoothed particle hydrodynamics) Peacekeeper Main CFD Forum 2 March 12, 2014 16:29
injection problem Mark New FLUENT 0 August 4, 2013 01:30
Smoothed Particle Hydrodynamics Brindaban Ghosh Main CFD Forum 0 September 21, 2001 04:06
Smoothed particle hydrodynamics Lao Liu Main CFD Forum 1 June 13, 2000 00:01
Smoothed particle hydrodynamics amou Main CFD Forum 1 December 10, 1999 04:16


All times are GMT -4. The time now is 23:45.