|
[Sponsors] |
May 15, 2014, 04:09 |
About Level Set Method
|
#1 |
New Member
kevin
Join Date: Mar 2014
Posts: 2
Rep Power: 0 |
Hello,
I want to use the level set method to investigate the multiphase flow based on openFoam software, but unfortunately failed. Could someone please give me some advice? Thank you very much! Here is what I have done: 1. Define the level set function φ as a volScalarFields in OpenFoam 2. Give the level set function φ an initial value using the funkySetFields, as it’s a distance function from the interface. Here is the formula: φ_0=(x-a)2+〖(y-b)〗^2+(z-c)2-r 3. Start the time loop 4. Try to solve the level set function like this: fvScalarMatrix levelsetphiEqn ( fvm::ddt(levelsetphi) + fvm::div(phi, levelsetphi) ); levelsetphiEqn.solve(); 5. Update the transport properties: density: ρ=ρ_f H+ρ_g (1-H) viscosity: μ=μ_f H+μ_g (1-H) 6. Reinitialize the level set function with the following equation: {■(φ_τ=sign(φ_0)(1-|∇φ|)@φ(x,0)=φ_0 )┤ 7. Solve the conservation equantion: ∇∙u=0 ρ Du/Dt=-∇p+ρg+∇∙τ+f_σ 8. Go to the next time step when I use the level set method, the simulation result tends to diverge. So I wander what the matter is. Thanks! |
|
July 31, 2015, 11:28 |
|
#2 | |
New Member
Mostafa Mobli
Join Date: Feb 2015
Posts: 8
Rep Power: 11 |
Quote:
Hi Kevin Where you able to fix the problem you had in the implementation? How did you initialize the problem with funkysetfields? I have been trying to do so but I have been unsuccessful so far. |
||
August 1, 2015, 09:53 |
|
#3 |
Senior Member
Freedom
Join Date: May 2014
Posts: 209
Rep Power: 13 |
Hi, Mostafa Mobli,
Now, I am implementing the reinitialization step. Did you succeed about this step? Regards, Wen |
|
August 1, 2015, 10:25 |
|
#4 |
Senior Member
Freedom
Join Date: May 2014
Posts: 209
Rep Power: 13 |
Hi, could you describe the reinitialization step more clearly? I do not know how you initialize the G field. I know that FMM is one of the choice to reinitialize the distance field.
Code:
6. Reinitialize the level set function with the following equation: {■(φ_τ=sign(φ_0)(1-|∇φ|)@φ(x,0)=φ_0 )┤ Regards, Wen |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Boundary layer in a pipe | Clementhuon | OpenFOAM Meshing & Mesh Conversion | 6 | March 12, 2012 13:41 |
Conservative Level Set Method | mbfranklin@gmail.com | Main CFD Forum | 3 | November 4, 2011 04:44 |
level set method for simulating detonation | Amir | Main CFD Forum | 4 | July 31, 2008 16:13 |
Problem on high density ratio in Level Set method | Kai Yan | Main CFD Forum | 10 | December 25, 2007 07:12 |
Env variable not set | gruber2 | OpenFOAM Installation | 5 | December 30, 2005 05:27 |