CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Unexplained Error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 9, 2010, 04:05
Default Unexplained Error
  #1
Senior Member
 
Nakul
Join Date: Apr 2010
Location: India
Posts: 147
Rep Power: 6
nakul is on a distinguished road
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
nakul is offline   Reply With Quote

Old   November 9, 2010, 04:20
Default
  #2
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 7
herbert is on a distinguished road
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
herbert is offline   Reply With Quote

Old   November 9, 2010, 04:27
Default
  #3
Senior Member
 
Nakul
Join Date: Apr 2010
Location: India
Posts: 147
Rep Power: 6
nakul is on a distinguished road
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
nakul is offline   Reply With Quote

Old   November 9, 2010, 04:32
Default
  #4
Senior Member
 
Nakul
Join Date: Apr 2010
Location: India
Posts: 147
Rep Power: 6
nakul is on a distinguished road
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?
nakul is offline   Reply With Quote

Old   November 9, 2010, 05:09
Default
  #5
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 7
herbert is on a distinguished road
Quote:
Originally Posted by nakul View Post
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 ?
Of course you have to add a read constructor in your createFields.H
Code:
    volScalarField e
    (
        IOobject
        (
            "e",
            runTime.timeName(),
            mesh,
            IOobject::MUST_READ,
            IOobject::AUTO_WRITE
        ),
        mesh
    );
Regards,
Stefan
herbert is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM 294 July 12, 2013 05:39
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30
Compiling Netgen on Fedora Core is driving me crazy jango Open Source Meshers: Gmsh, Netgen, CGNS, ... 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


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