|
[Sponsors] |
May 22, 2022, 05:17 |
Coupled Level Set VOF Reinitialization
|
#1 |
Member
Venkat Ganesh
Join Date: May 2020
Location: Cincinnati, Ohio
Posts: 49
Rep Power: 6 |
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)); 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(); } |
|
Tags |
coupled level set vof, level set, reinitialization, vof |
|
|
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 |