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/)
-   -   Fluid in a channel (https://www.cfd-online.com/Forums/openfoam-solving/70580-fluid-channel.html)

Gearb0x November 28, 2009 09:53

Fluid in a channel
 
Hello,

I'm new in openFoam and I'd like to simulate a very simple case to get used to the software.

I already meshed my problem wich is a 2-D U channel. Mesh is OK

My problem is in solving the mesh.

My initial & boundary conditions are like this :
for p :
Initial conditions : uniform 0

Boundary conditions :
FixedWalls (wich are the sides walls in my mesh) : zerogradient
inlet (start of my channel) : fixedvalue, value uniform 10
outet (end of my channel) : calculated
Frontandback (wich are the third dimensions walls) : empy

for u :
Initial conditions : uniform 0 0 0
FixedWalls : fixedvalue uniform 0 0 0
inlet : fixed value 0 1 0
outlet : calculated
FixedWalls : empty

I get an error when running icoFoam telling me :
" Starting time loop

Time = 0.0005

Courant Number mean: 0 max: 0.0666667
DILUPBiCG: Solving for Ux, Initial residual = 0, Final residual = 0, No Iterations 0
DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 1.5732e-06, No Iterations 1



gradientInternalCoeffs cannot be called for a calculatedFvPatchField
on patch outlet of field p in file "/home/jbulle/OpenFOAM/jbulle-1.6/canal_Tim/0/p"
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.

FOAM exiting "

I'd like to know where is my error? I'm a bit rusted in fluid mechanics so maybe it's a very stupid mistake in boundary conditions.

Thanks for your help

jnally November 28, 2009 14:10

Try changing the outlet to:
p -
type fixedValue;
value uniform 0;

U -
type zeroGradient;


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