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

Problems with BC

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 4, 2009, 15:18
Default Problems with BC
  #1
Member
 
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 17
sven is on a distinguished road
Hi everyone,

I am trying to simulate a simple 2D-Channel Flow with the icoFoam solver. Unfortunatelly I do not reach a steady solution after more than 150 seconds. Strange things are happening at the In- and Outflow (I get some kind of detachment/displacement at the outflow). I think these troubles are caused by the BCs. So, I wanted to change my Outlet BC to "calculated". I tried it like this:

Outlet
{
type calculated;
}

for the U file in the folder 0. But if I want to solve this I always get an error saying:

gradientInternalCoeffs cannot be called for a calculatedFvPatchField
on patch Outlet of field U in file "/home/sven/OpenFOAM/sven-1.5/run/Case1-laminarChannelFlow/Subcase1/0/U"
You are probably trying to solve for a field with a default boundary condition.

From function calculatedFvPatchField<Type>::gradientInternalCoef fs() const
in file fields/fvPatchFields/basic/calculated/calculatedFvPatchField.C at line 187.

Does somebody know what the problem is? Tanks.
sven is offline   Reply With Quote

Old   June 10, 2009, 06:07
Default
  #2
Senior Member
 
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 21
wolle1982 will become famous soon enough
hi,

why not use a simple pressure outlet?? please post your BC files so people can have a look on it.
wolle1982 is offline   Reply With Quote

Old   June 10, 2009, 13:14
Default
  #3
Member
 
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 17
sven is on a distinguished road
here are my boundary conditions:

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0.0;

boundaryField
{
upperWall
{
type zeroGradient;
}

lowerWall
{
type zeroGradient;
}

frontAndBack
{
type empty;
}

Inlet
{
type zeroGradient;
}

Outlet
{
type fixedValue;
value uniform 0.0;
}

}

// ************************************************** *********************** //

What do you mean by using a simple pressure outlet?? Tanks for your help!
sven is offline   Reply With Quote

Old   June 11, 2009, 03:28
Default
  #4
Member
 
Leonardo Giampani Morita
Join Date: Apr 2009
Location: Paris, France
Posts: 58
Rep Power: 17
leonardo.morita is on a distinguished road
I think he meant a fixedValue 0.0 for pressure at the outlet, like you used.
But you should put here the velocity BC as well. A priori, a zeroGradient for U at the outlet should work...
By the way, have you checked if your flow is really laminar?
leonardo.morita 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
Needed Benchmark Problems for FSI Mechstud Main CFD Forum 4 July 26, 2011 12:13
Help required to solve Hydraulic related problems aero CFX 0 October 30, 2006 11:00
Some problems with Star CD Micha Siemens 0 August 6, 2003 13:55
Airpak: Problems with heat flow contour conditions Ivan de Miguel Urain FLUENT 1 November 16, 2001 09:36
unstructured grid sreekanth Main CFD Forum 1 August 6, 2001 15:09


All times are GMT -4. The time now is 02:47.