|
[Sponsors] |
November 9, 2010, 04:05 |
Unexplained Error
|
#1 |
Senior Member
Nakul
Join Date: Apr 2010
Location: India
Posts: 147
Rep Power: 16 |
Hi,
I am trying to run a case but I am getting the following error: FOAM FATAL ERROR: gradientInternalCoeffs cannot be called for a calculatedFvPatchField on patch hole of field (hs-(p|rho)) in file "/home/iist/OpenFOAM/nakul-1.7/newappl/0/(hs-(p|rho))" You are probably trying to solve for a field with a default boundary condition. I am not being able to understand what it means. I am getting it right after one iteration. Any help is appreciated. Nakul |
|
November 9, 2010, 04:20 |
|
#2 |
Senior Member
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 17 |
Hi Nakul,
that means, that you are trying to solve an eqation for a field without having boundary conditions specified. Because the expression (hs-p|rho) is mentioned, I think that you are solving for a field derived inside the solver. What you can do is to let the field be read from a file 0/"yourFieldName", where you can specify the BCs. After reading it this way you can modify the internal field as you did until now. (i.e. "yourField" = hs-p/rho) Regards, Stefan |
|
November 9, 2010, 04:27 |
|
#3 |
Senior Member
Nakul
Join Date: Apr 2010
Location: India
Posts: 147
Rep Power: 16 |
Thanx Herbert !!
That reply was quite useful. Actually I defined a new volScalar field e=hs-(p/rho), where e is the sensible internal energy. So am I correct in saying that this problem will be resoved if I define a file named "e" in 0 directory and specify boundary conditions for "e" in it ? Nakul |
|
November 9, 2010, 04:32 |
|
#4 |
Senior Member
Nakul
Join Date: Apr 2010
Location: India
Posts: 147
Rep Power: 16 |
Besides there is one more problem that I don't have any specific boundary conditions for this internal energy.
I defined this variable only becuase I needed it in my energy equation and it is not defined in the class hsCombustionThermo. So is there any way by which I can get around this problem? |
|
November 9, 2010, 05:09 |
|
#5 | |
Senior Member
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 17 |
Quote:
Code:
volScalarField e ( IOobject ( "e", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); Stefan |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 18:00 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 20:30 |
[Netgen] Compiling Netgen on Fedora Core is driving me crazy | jango | OpenFOAM Meshing & Mesh Conversion | 3 | November 9, 2007 13:29 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |
user defined function | cfduser | CFX | 0 | April 29, 2006 10:58 |