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

SimpleFoam Boundary Conditions

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 3, 2009, 07:00
Default SimpleFoam Boundary Conditions
  #1
New Member
 
Join Date: Sep 2009
Posts: 1
Rep Power: 0
Johannes38 is on a distinguished road
Hi

I have a question about the boundary conditions in simpleFoam. I want to modify the pitzDaily Tutorial with other boundary conditions.

I want a static low pressure at the outlet. My p file looks like this:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
inlet
{
type zeroGradient;
}
outlet
{
type fixedValue;
value uniform -5000;
}
upperWall
{
type zeroGradient;
}
lowerWall
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
}
// ************************************************** *********************** //

And I donīt want to have a fixed magnitude. My solution would be a velocity profile. My U file looks like this:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
inlet
{
type zeroGradient;
}
outlet
{
type zeroGradient;
}
upperWall
{
type fixedValue;
value uniform (0 0 0);
}
lowerWall
{
type fixedValue;
value uniform (0 0 0);
}
frontAndBack
{
type empty;
}
}
// ************************************************** *********************** //

The Problem is that I have not a right solution. I think the U file is not correct.

Thanks for your help

Johannes
Johannes38 is offline   Reply With Quote

Old   September 4, 2009, 05:22
Default
  #2
Senior Member
 
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 103
Rep Power: 16
Thomas Baumann is on a distinguished road
Hi,
simpleFoam solves incompressible. For this kind of simulation normally you set for the inlet condition:
pressure: zerogradient
velocity: fixedValues (Ux Uy Uz)

and for outlet condition:
pressure: fixedValue
velocity: zeroGradient

Regards Thomas
Thomas Baumann is offline   Reply With Quote

Old   September 4, 2009, 08:38
Default
  #3
New Member
 
Oscar
Join Date: Jun 2009
Location: Murcia, Spain
Posts: 14
Rep Power: 16
Zowie is on a distinguished road
I wouldn't use zeroGradient for both velocity and pressure at the inlet... one of them should have a value. If not, the problem is not well described.

By the way, do you really need to use negative pressures?
Zowie is offline   Reply With Quote

Old   September 7, 2009, 18:29
Default
  #4
Senior Member
 
Steve Hansel
Join Date: Jun 2009
Location: Colorado, USA
Posts: 112
Rep Power: 16
hansel is on a distinguished road
You haven't set enough conditions. The problem as you described it could simply be solved by making the pressure -5000 everywhere and having no flow. Or it could pick just about any flow and calculate the pressure to meet it.

You need to define a pressure or velocity somewhere else, probably the inlet.
hansel 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
Impinging Jet Boundary Conditions Anindya Main CFD Forum 25 February 27, 2016 13:58
Problems with boundary conditions for a lowRekOmegaSST turbulence model cfdmarkus OpenFOAM Running, Solving & CFD 16 November 14, 2011 05:44
Pressure boundary conditions Lionel S. Main CFD Forum 1 August 24, 2007 19:03
SimpleFoam boundary conditions changed in OF 14 adorean OpenFOAM Running, Solving & CFD 5 June 22, 2007 08:50
SimpleFoam boundary conditions hani OpenFOAM Running, Solving & CFD 2 January 10, 2007 03:44


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