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 Members List Search Today's Posts Mark Forums Read

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: 9
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: 134
Rep Power: 10
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: 12
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: 134
Rep Power: 10
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: 12
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, 1 views)
kcjarvis56 is offline   Reply With Quote

Reply

Tags
initial condition, interfoam, multiphase mixture, setfields

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 25 December 23, 2019 07:00
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 12:19.