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

Which solver for Hydraulic simulations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2019, 23:59
Default Which solver for Hydraulic simulations
  #1
New Member
 
Join Date: Nov 2019
Posts: 24
Rep Power: 6
Nic86 is on a distinguished road
Hello everyone,
I am a new openFoam user and i am trying to figure out which solver should I use for my hydraulic applications.

In particular, I need to simulate a system of interconnected culverts( i.e. closed conduits of rectangular shape) where water flows at a specified inlet flow rate. The water in these closed channels can be pressurised or free surface (i.e. the water level can either be below the culverts' soffitt or reaching it determining a pressure increase).

I want to run 3D steady-state turbulent simulations with uncompressible newtonian fluid.
I don't know if I have to work with a single phase fluid (water) or if instead I have to work with 2 fluids (water +air) because the channel could be partially filled by water and air on the top.

The simpleFoam and the interFoam seemed to meet my needs (although I don't know which one to prefer in my case) but I have other requirements in terms of boundary conditions.
In fact, these solvers require velocity and pressure at the boundaries, while I need to set a water flow rate (m³/s) at the inlet and a constant water level at the downstream boundary (outlet).
Also, in the simpleFoam I could not find where to specify the gravity vector which is fundamental for my applications (water moves downstream due to gravity).


Can anyone assist me with this?
Is there any tutorial similar to my case?
Apologies if my question is confusing but I am confused myself.
Thank you,
Nic
Nic86 is offline   Reply With Quote

Old   December 1, 2019, 04:29
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi Nic,


actually you answered your question yourself:
Quote:
I don't know if I have to work with a single phase fluid (water) or if instead I have to work with 2 fluids (water +air) because the channel could be partially filled by water and air on the top.

If you have partially filled shapes, you need to have a 2-phase solver (actually you can also work with one and dynamic meshes but this would be too much here). So interFoam is the one you should start if you have partially filled domains (water + air as you mentioned). If you are interested in the steady-state condition, the LTS option would be nice for you.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   December 2, 2019, 02:58
Default
  #3
New Member
 
Join Date: Nov 2019
Posts: 24
Rep Power: 6
Nic86 is on a distinguished road
Hi Tobias and thank you for your answer.

I am focusing on interFoam as i understood is the solver for my applications, but I couldn't find any tutorial or example where the inlet and outlet boundary conditions are the following:

Inlet : constant or time dependent volumetric flow rate
Outlet : constant or time dependent water level

Do you know where can I find such an example or could you guide me on how to male this setup?
Cheers,
Nic
Nic86 is offline   Reply With Quote

Old   December 2, 2019, 10:33
Default
  #4
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
Quote:
Originally Posted by Nic86 View Post


Inlet : constant or time dependent volumetric flow rate
Outlet : constant or time dependent water level

Nic
For the inlet, where you know the discharge, you can just use fixedValue for velocity, zeroGradient for alpha (you might want to clip alpha between 0..1) and for dynamic pressure.

for the outlet, as you want to keep the water level you'll have to force a certain total pressure in the water column, while letting the pressure 'unrestricted' on the air side. A mixed (robin) condition is needed. The velocities can be inletOutlet, and alpha1 zeroGradient.
Santiago is offline   Reply With Quote

Old   December 3, 2019, 02:49
Default
  #5
New Member
 
Join Date: Nov 2019
Posts: 24
Rep Power: 6
Nic86 is on a distinguished road
Thank you Santiago.
That means that at the inlet i will have to set a constant velocity equal to the FlowRate/(Area x Alpha) ?

Once the simulation will run, is there a way in ParaView to calculate the flow along a cutting plane to ensure that the inlet flow is correct?

Do you have any example similar to my case?

Thank you.
Nic
Nic86 is offline   Reply With Quote

Old   December 3, 2019, 02:58
Default
  #6
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
Quote:
That means that at the inlet i will have to set a constant velocity equal to the FlowRate/(Area x Alpha) ?
Almost! V = flowRate*alpha/(Area + small)

Quote:
Originally Posted by Nic86 View Post

Once the simulation will run, is there a way in ParaView to calculate the flow along a cutting plane to ensure that the inlet flow is correct?
Yes, there is a filter called 'integrate variables'. You'll just have to integrate the velocity field in the water phase.

Quote:
Do you have any example similar to my case?
Yes, I have, but these will be useless since you'll need to implement some of the BCs anyway.
Santiago is offline   Reply With Quote

Old   December 3, 2019, 03:09
Default
  #7
New Member
 
Join Date: Nov 2019
Posts: 24
Rep Power: 6
Nic86 is on a distinguished road
What is it "small"?
Nic86 is offline   Reply With Quote

Old   December 3, 2019, 03:13
Default
  #8
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
Quote:
Originally Posted by Nic86 View Post
What is it "small"?
A small number that is. You don't want divisions by zero, I assume.
Santiago is offline   Reply With Quote

Old   December 3, 2019, 03:15
Default
  #9
New Member
 
Join Date: Nov 2019
Posts: 24
Rep Power: 6
Nic86 is on a distinguished road
Thank you !
Nic86 is offline   Reply With Quote

Reply

Tags
flow rate, solver, water


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
Radiation Modeling Using Discrete Ordinates Method and Parallel Solver malicemethods FLUENT 3 May 25, 2018 14:25
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 16:08
Quarter Burner mesh with periosic condition SamCanuck FLUENT 2 August 31, 2011 11:34
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08


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