|
[Sponsors] |
How to Impose Initial Conditions when Using VOF |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 24, 2022, 04:28 |
How to Impose Initial Conditions when Using VOF
|
#1 |
New Member
Join Date: Mar 2022
Posts: 4
Rep Power: 4 |
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 . The subscripts represent liquid phase and gas phase, respectively. 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, . Here come another questions : what is ? 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 05:17. Reason: moved to main forum |
|
March 30, 2022, 00:05 |
Summarize my problem
|
#2 |
New Member
Join Date: Mar 2022
Posts: 4
Rep Power: 4 |
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.
Thank you for reading my question. |
|
Tags |
initial conditions, vof multiphase |
|
|
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 10:10 |
Help sought on axial compressor simulation | jyotir | OpenFOAM Running, Solving & CFD | 0 | November 17, 2021 11:49 |
Compressor Simulation using rhoPimpleDyMFoam | Jetfire | OpenFOAM Running, Solving & CFD | 107 | December 9, 2014 14:38 |
pisoFoam with k-epsilon turb blows up - Some questions | Heroic | OpenFOAM Running, Solving & CFD | 26 | December 17, 2012 04:34 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |