CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Velocity boundary condition problem related (

dmoroian October 13, 2006 09:23

Hello again, I have a case th
Hello again,
I have a case that runs well using the conjugateFoam solver. Though, if I try to set an inflow velocity boundary condition of type pressureVelocity, I get the following error:
Starting time loop

Max Courant Number = 0.004

Time = 0.002
diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0

--> FOAM FATAL ERROR : gradientInternalCoeffs cannot be called for a defaultFvPatchField.
(Actual type pressureVelocity)
You are probably trying to solve for a field with a default boundary conditions.

From function defaultFvPatchField<type>::gradientInternalCoeffs( ) const
in file fields/fvPatchFields/basicFvPatchFields/default/defaultFvPatchField.C at line 421.

FOAM exiting

It works very well with type fixedValue. Anyone can tell me what is wrong?


panara October 13, 2006 09:35

Can you explain more in detail
Can you explain more in detail your case?
geometry, BC, etc..


dmoroian October 13, 2006 10:03

I have an anular cylidrical do
I have an anular cylidrical domain (grey) closed at one side and opened at the other. It should resemble with a mug, a cup or a bottle. This is the solid region.
The fluid region is represented by another inner cylinder. Both the inlet (green surface) and the outlet (blue surface) are located at the opening.
Though I don't think the geometry influences the error, since I have tried the same solver on other cases and behaves similarly.


dmoroian October 16, 2006 08:46

I found the problem: the type
I found the problem: the type is pressureInletVelocity not pressureVelocity. It was in front of my eyes all the time.
I found this by searching all the libraries in OpenFOAM


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