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

Weird result from sclsVOFsfFoam and sclsVOFFoam at OF4.0

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By mykkujinu2201
  • 2 Post By mykkujinu2201

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2021, 19:08
Default Weird result from sclsVOFsfFoam and sclsVOFFoam at OF4.0
  #1
Member
 
Jun
Join Date: Nov 2015
Posts: 57
Rep Power: 11
mykkujinu2201 is on a distinguished road
Dear all,

I have a question about implementation of coupled level-set and volume-of-fluid method (CLSVOF) on OpenFOAM.
I found Sankar's work on the internet. (http://www.tfd.chalmers.se/~hani/kurser/OS_CFD/)
I could get the OF code from the above URL.
However, his work was done on OF 2.3.0 and I am using OF 4.0 so I need to modify the code to run.
I share the codes here. (deleted)
There are two types of code; sclsVOFsfFoam which use level-set method only for the modification of surface tension and sclsVOFFoam which additionally modify density and viscosity with Heaviside function.

I tested the code for the given tutorial as known as 'rising bubble'.
The codes worked but the problem is that I can not get the same result which Sankar presented on his slides and report.
As you may see the figure I share, the result of scslVOFsfFoam looks similar to that of Sankar's presentation.
For scslVOFFoam, the result is weird; as the bubble rises, it shows unrealistic shape as attached.

I modified the code based on interFoam.
I mean that I started from interFoam and added the additional parts including level-set function generation.
It would be appreciate and really helpful if someone could help me for this issue.

Thank you in advance.
Attached Images
File Type: png sclsVOFFOAM_weird.png (17.0 KB, 39 views)
File Type: png sclsVOFsfFoam_OF40.png (15.3 KB, 33 views)

Last edited by mykkujinu2201; January 27, 2021 at 03:16.
mykkujinu2201 is offline   Reply With Quote

Old   January 19, 2021, 01:56
Default The possible reason of the error in sclsVOFFoam
  #2
Member
 
Jun
Join Date: Nov 2015
Posts: 57
Rep Power: 11
mykkujinu2201 is on a distinguished road
I tested the code line by line and I found that the density correction part in solveLSFunction.H might be the reason.
Code:
rho == limitedH*rho1 + (1.0 - limitedH)*rho2;
If I disable this part so the density update is done as in interFoam,
the result is same as that of sclsVOFsfFoam.
Is there any problem with this part?
tateta likes this.
mykkujinu2201 is offline   Reply With Quote

Old   January 21, 2021, 02:19
Default I found possible solution
  #3
Member
 
Jun
Join Date: Nov 2015
Posts: 57
Rep Power: 11
mykkujinu2201 is on a distinguished road
Dear forum,

Though I couldn't find the direct reason of the wrong result,
I could find the other sclsVOFFoam solver from Amir Taqieddin based on Takuya Yamamoto on github. (https://github.com/amirtaqi/sCLSVOF_mass_transfer)
The code is combined one with sclsVOFFoam and additional equation for mass transfer.
The code was made for OF 4.1 but there is no problem to run the code and the result was satisfied.
The code is a little bit different from that of Sankar's.
I will compare the codes to find the reason.

Best regards,
Jun
snak and lumpor like this.
mykkujinu2201 is offline   Reply With Quote

Old   November 15, 2022, 01:38
Default
  #4
Member
 
Huan Zhang
Join Date: Nov 2020
Posts: 55
Rep Power: 6
Jasper Z is on a distinguished road
Quote:
Originally Posted by mykkujinu2201 View Post
Dear forum,

Though I couldn't find the direct reason of the wrong result,
I could find the other sclsVOFFoam solver from Amir Taqieddin based on Takuya Yamamoto on github. (https://github.com/amirtaqi/sCLSVOF_mass_transfer)
The code is combined one with sclsVOFFoam and additional equation for mass transfer.
The code was made for OF 4.1 but there is no problem to run the code and the result was satisfied.
The code is a little bit different from that of Sankar's.
I will compare the codes to find the reason.

Best regards,
Jun
Dear Jun,

Have you figured out the issue in sclsVOFFoam of Sankar's work? I simulated the same result as your first figure.

Kind regards,
Jasper
Jasper Z is offline   Reply With Quote

Reply

Tags
clsvof, of40, sclsvoffoam, sclsvofsffoam


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



All times are GMT -4. The time now is 08:02.