CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   potentialFoam problem (

subhsngh July 9, 2013 06:29

potentialFoam problem
i am trying to get bc for my simulation using potential flow and this message is displayed on terminal

Reading field U

Calculating potential flow
Using dynamicCode for functionObject difference at line 53 in "/home/subh/OpenFOAM/subh-2.2.0/run/cylinder/system/controlDict.functions.difference"


gradientInternalCoeffs cannot be called for a calculatedFvPatchField
on patch ceiling of field p in file "/home/subh/OpenFOAM/subh-2.2.0/run/cylinder/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 199.

FOAM exiting

i am also sending my case

wyldckat July 13, 2013 16:21

Greetings Subhendu,

I got your private message some time ago, but only now did I finally managed to try to look into your case... but the link is broken, so there isn't much I can do :(

Best regards,

subhsngh July 15, 2013 07:26

i am posting my case again i deleted it by mistake

i want to use these boundary conditions in buoyantsimpleFoam to study heat transfer properties
how can i use them

wyldckat July 21, 2013 07:45

Hi Subhendu,

I finally managed to look into this.
I've got a feeling that you provided the link for the wrong case, because I cannot get the same error you're getting.

What I've done is:
  1. Renamed the folder "0" to "".
  2. Ran:


I then got an error shown in the file "log.potentialFoam", for which I show the first part of the error:

Looking up field U

Reading inlet velocity  uInfX

#0  Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/"
#1  Foam::sigSegv::sigHandler(int) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/"
#2  in "/lib/x86_64-linux-gnu/"
#3  Foam::errorFunctionObject::write() at system/controlDict.functions.difference:68

I think this is because there is no obstacle in your mesh. So, if I comment out the complete "functions" block inside the file "system/controlDict", then potentialFoam runs without problems.

Best regards,

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