CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Multiphase Initial condition for an emulsion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2019, 06:29
Lightbulb Multiphase Initial condition for an emulsion
  #1
New Member
 
Duncan Weatherhead
Join Date: Feb 2012
Location: University of Exeter
Posts: 11
Rep Power: 14
duncan21187 is on a distinguished road
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!
duncan21187 is offline   Reply With Quote

Old   September 30, 2019, 04:44
Default
  #2
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
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
Andrea1984 is offline   Reply With Quote

Old   October 2, 2019, 20:33
Default
  #3
Member
 
Kirk Jarvis
Join Date: Mar 2009
Posts: 31
Rep Power: 17
kcjarvis56 is on a distinguished road
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.
kcjarvis56 is offline   Reply With Quote

Old   October 3, 2019, 09:08
Default
  #4
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
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
Andrea1984 is offline   Reply With Quote

Old   October 5, 2019, 09:43
Default
  #5
Member
 
Kirk Jarvis
Join Date: Mar 2009
Posts: 31
Rep Power: 17
kcjarvis56 is on a distinguished road
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.
Attached Files
File Type: gz settlingTest.tar.gz (4.3 KB, 12 views)
kcjarvis56 is offline   Reply With Quote

Old   March 22, 2024, 10:33
Default
  #6
New Member
 
Sulis
Join Date: Mar 2024
Posts: 1
Rep Power: 0
Sulis is on a distinguished road
Quote:
Originally Posted by kcjarvis56 View Post
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.
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
Sulis is offline   Reply With Quote

Reply

Tags
initial condition, interfoam, multiphase mixture, setfields


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
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


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