CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Struggling with BCs for 'simple' interFoam case (https://www.cfd-online.com/Forums/openfoam-solving/63386-struggling-bcs-simple-interfoam-case.html)

rassilon April 7, 2009 04:48

Struggling with BCs for 'simple' interFoam case
 
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

dani May 15, 2009 11:16

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


All times are GMT -4. The time now is 06:14.