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

How to Impose Initial Conditions when Using VOF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 24, 2022, 03:28
Question How to Impose Initial Conditions when Using VOF
  #1
New Member
 
Join Date: Mar 2022
Posts: 4
Rep Power: 4
eric1024 is on a distinguished road
Hi everyone,

I'm simulating the stokes waves with interfoam which is a solver in openFOAM, and I need to impose the initial conditions. For color function (volume fraction), it is straightforward. However, for the velocity fields, I got stuck, since I could not figure out how the velocity field should be imposed properly, especially for the cell with two phases.

In order to impose the initial condition appropriately, I have read the volume of fluid part in the reference, Description and utilization of interFoam multiphase solver. It said \bold{U}=\gamma\bold{U}_l + (1-\gamma) \bold{U}_g. The subscripts l,g represent liquid phase and gas phase, respectively. \gamma denotes the volume fraction of liquid phase. According to this, the initial condition of the velocity field should be the velocity field of liquid phase multiplied by the color function of the cell if gas phase is assumed to be stationary.
Summary : If gas phase is assumed to be stationary, \bold{U}=\gamma\bold{U}_l.


Here come another questions : what is \bold{U}_l? Is it the velocity field at the cell center? What if the cell center is in the gas phase? Would it be valid?
I read Hirt & Nichols (1981), Volume of fluid (VOF) method for the dynamics of free boundaries. Their code were based on the marker-and-cell (MAC) method. In the work of Harlow & Welch (1965), treatment to veclocity field within a cell containing two phases was mentioned. However, both of the works used staggered grids and finite difference method while interfoam store the velocity fields at cell centers and used finite volume method. (OpenFOAM : phi is on the surface, but I can only found U as the initial condition.)

Therefore, I read a clear note written by Cyprien Soulaine and a more detailed note written by Marguerite Graveleau, and I found that the governing equations of volume of fluid could be derived by volume average. It made me wonder whether the velocity field was volume averaged.
Summary : Some derivations of volume of fluid states that the velocity field is volume averaged.


Last, I read the source code of olaflow. It seems to use the cell center velocity multiplied by the volume fraction of the liquid phase.


Please let me know if I made any mistakes.

Last edited by jola; March 25, 2022 at 04:17. Reason: moved to main forum
eric1024 is offline   Reply With Quote

Old   March 29, 2022, 23:05
Default Summarize my problem
  #2
New Member
 
Join Date: Mar 2022
Posts: 4
Rep Power: 4
eric1024 is on a distinguished road
When it comes to the initial condition of color function (volume fraction), it is easy to impose the initial condition.
Just compute the area (2D simulation) or the volume (3D simulation) the fluid phase occupied. Then, divide it by the cell area or the cell volume.


When it comes to the velocity fields, I got some choices.
  1. Cell center velocity times the cell color function.
  2. Average the velocity field of the cell.
Which is more reasonable? Are both of them bad ideas?


Thank you for reading my question.
eric1024 is offline   Reply With Quote

Reply

Tags
initial conditions, vof multiphase


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
[solidMechanics] Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend" bigphil OpenFOAM CC Toolkits for Fluid-Structure Interaction 686 December 22, 2022 09:10
Help sought on axial compressor simulation jyotir OpenFOAM Running, Solving & CFD 0 November 17, 2021 10:49
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 13:38
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 03:34
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03


All times are GMT -4. The time now is 04:09.