CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Two different fluids in one simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2023, 23:29
Question Two different fluids in one simulation
  #1
New Member
 
Rollo
Join Date: Apr 2023
Posts: 2
Rep Power: 0
Ranulph is on a distinguished road
I'm new to CFD and have a slightly unusual CFD problem to solve. In essence I need to model water flowing over and around a pipe containing compressed air which has a small hole in it, so a stream of air is exiting the pipe and interacting with the water flowing over/around the pipe. (That's it in a very simplified nut shell anyway).

Is there a way to model this in openfoam? I'm not sure how to specify two different fluids and also how to have two fluids entering the simulation. Could I just specify that the interior of the pipe is a certain pressure and not have to define an incoming and outgoing flow?

Thanks in advance.
Ranulph is offline   Reply With Quote

Old   April 23, 2023, 03:49
Default
  #2
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,278
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by Ranulph View Post
I'm new to CFD and have a slightly unusual CFD problem to solve. In essence I need to model water flowing over and around a pipe containing compressed air which has a small hole in it, so a stream of air is exiting the pipe and interacting with the water flowing over/around the pipe. (That's it in a very simplified nut shell anyway).

Is there a way to model this in openfoam? I'm not sure how to specify two different fluids and also how to have two fluids entering the simulation. Could I just specify that the interior of the pipe is a certain pressure and not have to define an incoming and outgoing flow?

Thanks in advance.



Not sure about openfoam but its trivial in Wildkatze.
arjun is offline   Reply With Quote

Old   April 23, 2023, 07:20
Default
  #3
Member
 
Join Date: May 2016
Posts: 37
Rep Power: 10
esma is on a distinguished road
Not sure if I understood the problem you described correctly. But if you need to simulate air and water interactions, you'd have a multiphase problem (VOF) that you can solve using interFoam. In geometry you need to define two inlets. Inlet1 is water flow that you define velocity or flow rate boundary and inlet2 is defined at the hole as air velocity or flow rate. The outlet boundary is pressure outlet boundary. If the nature of the problem is time dependant you need to apply transient (interFoam) but if that can be said eventually reaches a steady state solution you can use interFoam-LTS.
esma is offline   Reply With Quote

Old   April 23, 2023, 18:26
Default
  #4
New Member
 
Rollo
Join Date: Apr 2023
Posts: 2
Rep Power: 0
Ranulph is on a distinguished road
Quote:
Originally Posted by esma View Post
Not sure if I understood the problem you described correctly. But if you need to simulate air and water interactions, you'd have a multiphase problem (VOF) that you can solve using interFoam. In geometry you need to define two inlets. Inlet1 is water flow that you define velocity or flow rate boundary and inlet2 is defined at the hole as air velocity or flow rate. The outlet boundary is pressure outlet boundary. If the nature of the problem is time dependant you need to apply transient (interFoam) but if that can be said eventually reaches a steady state solution you can use interFoam-LTS.

That's a great help. Thank you so much!
Ranulph is offline   Reply With Quote

Reply


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
CFG file Set Up Nicola_Fontana SU2 5 November 16, 2021 12:48
Control simulation to apply different fields with chtMultiRegionFoam jmdf OpenFOAM Running, Solving & CFD 0 February 29, 2016 07:05
Problem during simulation of mixid fluids ( solver: buoyantBoussinesqSimpleFoam) Cenzy OpenFOAM Running, Solving & CFD 1 October 19, 2013 17:06
Simulation of mixing of two compressible fluids shinde.gopal OpenFOAM 1 September 7, 2010 09:37
Simulation of mixing of two compressible fluids shinde.gopal Main CFD Forum 0 December 10, 2009 04:08


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