|
[Sponsors] |
September 24, 2019, 06:29 |
Multiphase Initial condition for an emulsion
|
#1 |
New Member
Duncan Weatherhead
Join Date: Feb 2012
Location: University of Exeter
Posts: 11
Rep Power: 14 |
Hi OF community!
Hoping for some help with a multiphase case I’m trying to set up of an emulsion of oil/water in a pipe. The intention is to assess where the water will collect once the pipe is in shutdown (i.e no end-end flow) and the emulsion separates. I was hoping to do this using interFoam, but was wondering if there was a function similar to (or within) setFields that would allow me to randomly distribute the dispersed phase based purely on the phase fraction (10%ish in this case) to give me a realistic initial condition? Any answers very welcome! |
|
September 30, 2019, 04:44 |
|
#2 |
Senior Member
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16 |
Maybe you could code something using funkySetFields? Try to have a look at this thread: how to initialize a random velocity field with funkySetFields
Not exactly what you are trying to do but it might give you an idea. Andrea |
|
October 2, 2019, 20:33 |
|
#3 |
Member
Kirk Jarvis
Join Date: Mar 2009
Posts: 31
Rep Power: 17 |
Consider using multiphaseInterFoam. I would suggest looking at the tutorials and try to develop a simple case to prove the concept you are trying to achieve. There are other multiphase solver that might also work.
|
|
October 3, 2019, 09:08 |
|
#4 |
Senior Member
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16 |
Why using multiphaseInterFoam if you only have to model two phases, i.e. oil and water? I think interFoam should be enough.
One possible issue I see (depending on how finely dispersed your emulsion is) is that you are probably going to need a very fine mesh in order to resolve the interface between the two phases properly in a VoF approach. Maybe a multifluid solver like twoPhaseEulerFoam might be a computationally cheaper option? Andrea |
|
October 5, 2019, 09:43 |
|
#5 |
Member
Kirk Jarvis
Join Date: Mar 2009
Posts: 31
Rep Power: 17 |
Attached is a test case that should get you started in the right direction using multiphaseEulerFoam. I understand it could also be done with a two phase solver also. It will run with v1806.
|
|
March 22, 2024, 10:33 |
|
#6 |
New Member
Sulis
Join Date: Mar 2024
Posts: 1
Rep Power: 0 |
Hello, I wonder if this is a case of emulsion? I keep getting errors when running it with v2312.Error message indicating that the file could not be found:constant/phaseProperties
|
|
Tags |
initial condition, interfoam, multiphase mixture, setfields |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Maximum number of iterations exceeded chtmultiregionsimpleFoam | Moncef | OpenFOAM Running, Solving & CFD | 28 | July 13, 2020 15:26 |
Segmentation fault when using reactingFOAM for Fluids | Tommy Floessner | OpenFOAM Running, Solving & CFD | 4 | April 22, 2018 13:30 |
pimpleDyMFoam computation randomly stops | babapeti | OpenFOAM Running, Solving & CFD | 5 | January 24, 2018 06:28 |
simpleFoam error - "Floating point exception" | mbcx4jc2 | OpenFOAM Running, Solving & CFD | 12 | August 4, 2015 03:20 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |