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

Conservative Level Set Method

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 3, 2011, 12:06
Default Conservative Level Set Method
  #1
New Member
 
Michael Franklin
Join Date: Nov 2011
Posts: 4
Rep Power: 14
mbfranklin@gmail.com is on a distinguished road
Hello everybody,

I am working on implementing the conservative level set method presented by Olsson & Kreiss in their 2005 paper "A conservative level set method for two phase flow". I am currently using Scipy/Numpy for all of my numerical calculations.

I have been banging my head against the wall for months trying to debug my codes, and have yet to find any issues that are obviously incorrect, which brings me to this forum.

Has anybody else successfully implemented the level set method? I would love to have some conversation with anybody who is familiar with calculating normals, gradients, curvatures, etc. to bounce some ideas around, and perhaps share some numerical advice.

The first question that I have is this:

When calculating normal vectors from the gradients, one must divide by the magnitude of the gradient. In regions where the phase function is smooth, the gradients/magnitudes should go to zero, so dividing by this magnitude presents some numerical difficulty. Would you suggest

(1) adding a small number to the denominator (e.g. normal = gradient/(magnitude+eps) to avoid division by zero errors, or

(2) perform a check (e.g. if magnitude == 0: normal = 0)

More to come...any help would be MUCH appreciated!
mbfranklin@gmail.com is offline   Reply With Quote

 

Tags
conservative, kreiss, level set method, normal, olsson


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
setting of level set method as initial condition sooroo3 FLUENT 4 July 31, 2018 04:20
[snappyHexMesh] Boundary layer in a pipe Clementhuon OpenFOAM Meshing & Mesh Conversion 6 March 12, 2012 12:41
calculating Normal vector in level set method amir2920 Main CFD Forum 1 July 21, 2009 07:25
level set method for simulating detonation Amir Main CFD Forum 4 July 31, 2008 15:13
level set method with TVD scheme? zhanglei Main CFD Forum 1 April 25, 2000 14:01


All times are GMT -4. The time now is 01:31.