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

InterFoam for continuous flow simulation

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 25, 2016, 02:01
Default InterFoam for continuous flow simulation
  #1
New Member
 
-
Join Date: Oct 2016
Posts: 15
Rep Power: 6
DancingButterfly is on a distinguished road
Hello

I am trying to simulate a continuous flow through a unit with 3 inlets on the top and 12 outlets on the bottom. It is a 2-phase, turbulent problem (air and water), therefore I adapted the OpenFoam tutorial "damBreak" (found in the "interFoam" directory (ras)).

It runs and I can post-process it. However; only the amount of water I indicated with the box from setFields flows through the unit. But I'd like to have a continuous inlet flow. I tried to change the settings of the inlet in the U-folder, but then the program stops working after four time points and an error occurs.

How can I change the velocity settings for a continuous flow in that solver? Or should I use another tutorial?

Thank you a lot for your help!
Best, A.
DancingButterfly is offline   Reply With Quote

Old   October 25, 2016, 05:08
Default
  #2
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 253
Rep Power: 17
floquation will become famous soon enough
Did you specify alpha=1 in 0/alpha.water at the water inlets?
floquation is offline   Reply With Quote

Old   October 25, 2016, 05:33
Default
  #3
New Member
 
-
Join Date: Oct 2016
Posts: 15
Rep Power: 6
DancingButterfly is on a distinguished road
Thank you for your answer.

I forgot to specify it, but it did still not work. Now I added "fixedFluxPressure" in p_rgh and it works.

Which specification should I take for the outlet, if I'd like the flow also to be continuous?

outlet
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}

I apologize for the many questions. I've just started working with OpenFoam.
Thank you for your help!
DancingButterfly is offline   Reply With Quote

Old   October 25, 2016, 09:19
Default
  #4
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 253
Rep Power: 17
floquation will become famous soon enough
Quote:
Originally Posted by DancingButterfly View Post
but it did still not work
Please specify what exactly is not working. Divergence?


Quote:
Originally Posted by DancingButterfly View Post
Which specification should I take for the outlet, if I'd like the flow also to be continuous?

outlet
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
Depends on what you want to achieve, but for an outlet we typically specify zeroGradient for the alpha field, zeroGradient for U and a fixedValue for p. See for example the following tutorial case:
Code:
(...)/tutorials/incompressible/pimpleFoam/pitzDaily
What you specified is an inletOutlet, meaning flow may flow inwards or outwards. We typically use such a condition for e.g. an atmosphere: when there is simply no clear outflow patch.
floquation is offline   Reply With Quote

Old   October 25, 2016, 23:31
Default
  #5
New Member
 
-
Join Date: Oct 2016
Posts: 15
Rep Power: 6
DancingButterfly is on a distinguished road
Thank you a lot for the help.

There was a problem with the Courant number. After two iterations it became really big and divergence happend. But now with your suggested changes, it works fine.

I really appreciate your fast responses.
DancingButterfly is offline   Reply With Quote

Reply

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
Review: Reversed flow CRT FLUENT 1 May 7, 2018 06:36
Some questions about flow boiling simulation in Fluent beastieboys6 FLUENT 8 November 21, 2017 00:47
Flow rate restriction simulation set-up siw CFX 4 February 16, 2016 13:15
Preparing Simulation of a Sphere in a Flow PonchO OpenFOAM Pre-Processing 1 November 11, 2015 16:40
Differences and functions of Solidworks Simulation and Solidworks Flow Simulation? alpharays Main CFD Forum 0 April 19, 2012 04:13


All times are GMT -4. The time now is 21:56.