CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Coupled Level Set VOF Reinitialization

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2022, 05:17
Default Coupled Level Set VOF Reinitialization
  #1
Member
 
Venkat Ganesh
Join Date: May 2020
Location: Cincinnati, Ohio
Posts: 49
Rep Power: 6
Venky_94 is on a distinguished road
Hey Foamers!

I adapted the simple coupled level set solver (sclsVofFoam) developed by Sankar Menon (http://www.tfd.chalmers.se/~hani/kur...ankarMenon.pdf) based on Albadawi's work (10.1016/j.ijmultiphaseflow.2013.01.005) from OpenFoam 2.3 version to OpenFoam 9. My code is available in https://github.com/Venky-94/sclsVofFoam-OpenFoam9.

For my current research, I'm looking at bubble growth dynamics in highly viscous Newtonian fluids and certain non-Newtonian fluids, and I'm trying to implement an exponential averaging function for the property estimation in place of the linear interpolation available in interFoam currently.

The changes in the code are in solveLSFunction.H, and are as below, along with the default equation commented out.
Code:
//rho == rho2 + (rho1 - rho2)*limitedH;
rho == (rho2 + (rho1 - rho2)*pow(limitedH, 1.5*(nuMod1/nuMod2) + 0.75));

volScalarField& nuTemp = const_cast<volScalarField&>(mixture.nu()());
//nuTemp == (rho2*nuMod2 + (rho1*nuMod1 - //rho2*nuMod2)*limitedH)/(rho2 + (rho1 - rho2)*limitedH);
nuTemp == (rho2*nuMod2 + (rho1*nuMod1 - rho2*nuMod2)*pow(limitedH, 1.5*(nuMod1/nuMod2) + 0.75))/(rho2 + (rho1 - rho2)*pow(limitedH, 1.5*(nuMod1/nuMod2) + 0.75));
The issue I'm facing is that once I make the changes to the property estimation equation, I'm noticing an odd issue that the interface doesn't develop beyond a certain point (time step). Please check the clip (https://github.com/Venky-94/sclsVofF...estimation.avi)

I believe the issue has to do with this set of code for reinitializing the LS function in solveLSFunction.H. The value of corr in this case is (epsilon=1.5deltaX)/(deltaTau=0.1deltaX) = 15. If I reduce the corr value to 5, I see the interface developing until a further point and then stopping at that point. (refer to the picture https://github.com/Venky-94/sclsVofF...g/Corr%3D5.JPG)

Code:
// solve Level-Set function as the re-initialization equation
   Info<< "solve the reinitialization equation"     
       << nl << endl;

   psi == psi0;

   for (int corr=0; corr<int(epsilon.value()/deltaTau.value()); corr++)
   {
      psi = psi + psi0/mag(psi0)*(double(1)-mag(fvc::grad(psi)*dimChange))*deltaTau;
      psi.correctBoundaryConditions();
   }
The sample test case I used for this is available at https://github.com/Venky-94/sclsVofF.../Sample%20Case. The Reynolds number in this case is around 6, and if I just change the inlet velocity to raise the Reynolds number to 80, I can see the bubble developing and detaching from the needle without any issues. Can someone shed some light on this phenomenon for me? I can't seem to understand the underlying cause.
Venky_94 is offline   Reply With Quote

Reply

Tags
coupled level set vof, level set, reinitialization, vof


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
[surface handling] Decomposing Faces after Extrude2DMesh with autoPatch JEBland OpenFOAM Meshing & Mesh Conversion 5 December 6, 2021 08:28
setting of level set method as initial condition sooroo3 FLUENT 4 July 31, 2018 05:20
could level set or vof work in openfoam? Sherlock-raw OpenFOAM Running, Solving & CFD 0 March 13, 2018 04:30
Level Set Method or VOF Tareq Al-shaalan Main CFD Forum 10 May 24, 2016 08:11
VOF vs Level Set Method for electrohydrodynamic waves Rowland Main CFD Forum 0 July 31, 2010 23:09


All times are GMT -4. The time now is 07:24.