CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Looking for inlet patch example

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

LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2008, 18:04
Default Hello, I tried to follow the
Posts: n/a
I tried to follow the free surface (interFoam) tutorial at

Unfortunately, after giving the 0/gamma file, the tutorial says "We should also change by the same way the dictionaries U and pd." I failed with my attempts to setup U and pd at the inlet patch:
"Courant Number mean: 120.443 max: 2988.99
Floating point exception (core dumped)"

Could you tell me how I have to set up the inlet patch, or where to download a complete, similar case?

  Reply With Quote

Old   June 9, 2008, 09:49
Default Hi Reimund Please upload th
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,894
Rep Power: 36
ngj will become famous soon enoughngj will become famous soon enough
Hi Reimund

Please upload the case here, and I will take a look at it. Alternatively you can use my email.

Best regards,

Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   June 9, 2008, 18:46
Default Niels, thank you for offering
Posts: n/a
Niels, thank you for offering to look into the case.

I have solved part of the problem, because I initialized the gamma field by mistake different from what the tutorial suggested.

Still I don't understand why the stability of the solution depends on the initial conditions. Of course this can happen for nonlinear problems, but can the stability depend on the initial distribution of the two phases?

I'll do more tests and then upload a representative case towards the end of the week.

  Reply With Quote

Old   June 10, 2008, 13:52
Default So, here is how I reproduced H
Posts: n/a
So, here is how I reproduced Hassans tutorial case. Maybe some Openfoam beginner like me will find the complete set of files useful. I hope they are correct.
Of course, you are more than welcome to point out mistakes.

Run the case as:

tar xzf bottleFill.tgz
cd bottleFill
  Reply With Quote

Old   June 10, 2008, 17:31
Default After I think I have been succ
Posts: n/a
After I think I have been successful with the bottle case, I wanted to simulate fluid streaming over an obstacle:

Strangely in the air a region with ~50 times the inlet velocity (see U arrows) develops. Here I would need help again to understand what's going on.

If I plot the velocity magnitude:

it seems that much more water enters at the inlet(right) than leaves at the outlet (left above the quarter circle). How can this happen?

Here is again the complete input files:

  Reply With Quote

Old   June 10, 2008, 19:25
Default Here is a short explanation of
Posts: n/a
Here is a short explanation of the figures in the previous post, because the figure captions haven't been shown:

Both figures are taken at simulation time T=4s.

The first picture shows a cutplane of gamma (red=water, blue=air). The box protuding to the right is an inlet with U=(-0.1 0 0) m/s
Additionally U vectors are shown. These are as high as |U|~4.9 m/s above the water (see color scale), although the inlet velocity is only |U|=0.1 m/s, which is why the U vectors in the water are hardly visible.

The second picture simply shows a cutplane of |U| from |U|=0.0 ... 0.2 m/s.

  Reply With Quote


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
HELP NEEDED HOW TO MAP VALUES FROM PATCH OF ONE MESH TO PATCH OF ANOTHER MESH mkraposhin OpenFOAM Running, Solving & CFD 3 September 4, 2011 10:42
velocity inlet vs pressure inlet cheong FLUENT 6 April 9, 2011 04:07
subsonic inlet or supersonic inlet? mali CFX 0 November 28, 2008 21:57
Patch type Inlet boundary condition susana OpenFOAM Running, Solving & CFD 0 November 29, 2006 10:09
How to set smoke inlet speed on inlet Adam FLUENT 0 October 4, 2005 09:18

All times are GMT -4. The time now is 09:17.