CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Pre-Processing

Upstream BC Types - interFoam (OF 2.3.1)

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

LinkBack Thread Tools Display Modes
Old   November 21, 2015, 22:44
Default Upstream BC Types - interFoam (OF 2.3.1)
New Member
JFM's Avatar
John Anonymous
Join Date: Jan 2011
Location: Melbourne Australia
Posts: 21
Rep Power: 7
JFM is on a distinguished road
Send a message via Skype™ to JFM
Hello All,

I am developing a model of a fishway and have been wrestling with finding and applying a suitable boundary condition in interFoam that will adequately model a fixed water surface elevation at the upstream end. The upstream and downstream water surface elevations are known (velocities, etc are not). A little assistance with the identification and prescription of suitable type (with example) would be great.

To date I have divided the upstream patch into two sections one for water (alpha.water) between the invert of the channel and the operating design elevation with a fixedValue of 1 (setFields is also set at this level) and the remainder of the upstream inlet wall is defined as alpha.air boundary. The model initiates but crashes after several iterations and I interpret the error message to mean a BC issue - hence why I would like to identify a better BC arrangement which will also allow more efficient

I created the mesh using snappyHexMesh and the checkMesh report was OK, the mesh is a first pass and I will extend and refine in future once I get this model running. Attached are the model case files.

FYI, I have also searched the forum looking for similar cases and while there are several posts they have not helped in addressing this issue.

Any assistance would be greatly appreciated.
Regards JFM
Attached Files
File Type: gz baseModel_split_1_stl_RAS.tar.gz (31.5 KB, 6 views)
JFM is offline   Reply With Quote

Old   November 23, 2015, 05:26
Senior Member
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 122
Rep Power: 8
vatavuk is on a distinguished road
Hi John,

I've been dealing with a similar difficulty. I'm trying to adapt the spillway tutorial to version 2.3.
This tutorial is available in and was developed for version 2.1. It uses a water inlet similar to the one that you described.

I wasn't able to make this case run in version 2.3, it always crashed. To make it work I had to replace the water inlet condition with variableHeightFlowRateInletVelocity as is done in the weirOverflow tutorial. This tutorial you can find in tutorials/multiphase/interFoam/ras directory.

I know this is not exactly what you are looking for, because you need fixed elevation but at least you can make the simulations run.

Best Regards,
vatavuk is offline   Reply With Quote


boundary conditions, interfoam

Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
error:Killed during interFOAM simulation Sam_CFD OpenFOAM Running, Solving & CFD 0 June 9, 2015 01:41
OpenFOAM Foundation releases OpenFOAMŪ 2.3.1 CFDFoundation OpenFOAM Announcements from Other Sources 4 February 8, 2015 06:19
interFoam in parallel gooya_kabir OpenFOAM Running, Solving & CFD 0 December 9, 2013 06:09
free surface elevation upstream the pille - interfoam pedroxramos OpenFOAM Running, Solving & CFD 4 October 29, 2013 10:47
interFoam vs. simpleFoam channel flow comparison DanM OpenFOAM Running, Solving & CFD 11 January 5, 2013 07:21

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