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

Struggling with BCs for 'simple' interFoam case

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2009, 04:48
Default Struggling with BCs for 'simple' interFoam case
  #1
Member
 
Join Date: Mar 2009
Location: Sydney, New South Wales, Australia
Posts: 42
Rep Power: 17
rassilon is on a distinguished road
Hi folks,

I am trying to model a simple cube, half filled with fluid 3 x 3 x 3 units in size. The top is open to atmosphere, and the centre unit on the base is an inlet. I am trying to develop a uniform, low pressure input via the inlet to create ripples and bubbles on the surface of the fluid.

I am really struggling to get the boundary conditions correct for this, as I am using interFoam, and trying to juggle boundary conditions in gamma, pd and U files within the 0 directory. At the moment I have the following conditions:

Gamma

nozzle
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
}

atmosphere
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}

pd

nozzle
{
type inletOutlet
value uniform 1;
}

atmosphere
{
type totalPressure;
p0 uniform 0;
U U;
phi phi;
rho none;
psi none;
gamma 1;
value uniform 0;
}

U

nozzle
{
type pressureInletOutletVelocity;
phi phi;
value uniform (0 0 0)
}

{
atmosphere
type pressureInletOutletVelocity;
phi phi;
value uniform (0 0 0)
}


I receive an error message each time I attempt to run the solver:

gradientInternalCoeffs cannot be called for a genericFvPatchField (actual type pressureInletVelocity)
on patch nozzle of field pd in file "/home/swervo/OpenFOAM/nathan-1.5/run/tutorials/Asai_Models/cube_experiments/cube_1-1/0/pd"
You are probably trying to solve for a field with a generic boundary condition.

From function genericFvPatchField<Type>::gradientInternalCoeffs( ) const
in file fields/fvPatchFields/basic/generic/genericFvPatchField.C at line 692.

FOAM exiting



So what am I doing wrong? I thought this would be reasonably simple to get going, but is proving to be anything but! Any help would be greatly appreciated.

Many thanks,

N
rassilon is offline   Reply With Quote

Old   May 15, 2009, 11:16
Default
  #2
New Member
 
Daniele
Join Date: May 2009
Location: Rome, Italy
Posts: 7
Rep Power: 16
dani is on a distinguished road
Send a message via MSN to dani
Hi!
can I ask you the meaning of " value uniform 0 " in:

atmosphere
{
type totalPressure;
p0 uniform 0;
U U;
phi phi;
rho none;
psi none;
gamma 1;
value uniform 0;

}

And why is it necessary specify phi, rho, psi, gamma (even if p0 is the only required entry on the User Guide (pag. U-129) for totalPressure) ?

Thanks

dani
dani 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
Changing the grid on the same set-up Katya FLUENT 7 October 8, 2009 17:31
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 13:24
Exporting BC's from one case file to another Mazyar FLUENT 3 April 22, 2006 06:03
Turbulent Flat Plate Validation Case Jonas Larsson Main CFD Forum 0 April 2, 2004 11:25
Body force - Does it work? Jan Rusås CFX 5 August 27, 2002 10:50


All times are GMT -4. The time now is 07:56.