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/)
-   -   potentialFoam problem (http://www.cfd-online.com/Forums/openfoam-solving/120539-potentialfoam-problem.html)

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"


--> FOAM FATAL ERROR:

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 casehttps://www.dropbox.com/s/x9n9o2neim...ylinder.tar.gz

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,
Bruno

subhsngh July 15, 2013 07:26

i am posting my case again i deleted it by mistake
https://www.dropbox.com/s/x9n9o2neim...ylinder.tar.gz

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 "0.org".
  2. Ran:
    Code:

    ./Allclean
    ./Allrun

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

Looking up field U

Reading inlet velocity  uInfX

#0  Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::sigSegv::sigHandler(int) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2  in "/lib/x86_64-linux-gnu/libc.so.6"
#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,
Bruno


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