CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Velocity boundary condition problem related (http://www.cfd-online.com/Forums/openfoam-solving/59967-velocity-boundary-condition-problem-related.html)

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?

Dragos

panara October 13, 2006 09:35

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

Daniele

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.
http://www.cfd-online.com/OpenFOAM_D...ges/1/3215.png
Though I don't think the geometry influences the error, since I have tried the same solver on other cases and behaves similarly.

Dragos

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 http://www.cfd-online.com/OpenFOAM_D...part/happy.gif

Dragos


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