CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

How to specify p in the flux required subdictionary

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

LinkBack Thread Tools Display Modes
Old   July 6, 2006, 16:49
Default fvschemes Hi I am getting t
New Member
Amit Shah
Join Date: Mar 2009
Posts: 5
Rep Power: 8
amitshah is on a distinguished road
I am getting the following error. Can anyone tell me what I am doing wrong.

--> FOAM FATAL ERROR : flux requested but p not specified in the fluxRequired sub-dictionary of fvSchemes.

Here is the fvSchemes file


default Euler;

default Gauss linear;
grad(p) Gauss linear;
grad(U) Gauss linear;

default none;
div(phi,rho) Gauss limitedLinear 1;
div(phiU,p) Gauss linear;
div(phi,U) Gauss limitedLinearV 1;
div(phi,k) Gauss limitedLinear 1;
div(phi,epsilon) Gauss limitedLinear 1;
div(phi,R) Gauss upwind;
div(R) Gauss linear;
div(phi,nuTilda) Gauss upwind;
div((muEff*dev2(grad(U).T()))) Gauss linear;
div(phi,Yi) Gauss upwind;

default Gauss linear corrected;;
laplacian(muEff,U) Gauss linear corrected;
laplacian(1|A(U),p) Gauss linear corrected;
laplacian(DkEff,k) Gauss linear corrected;
laplacian(DepsilonEff,epsilon) Gauss linear corrected;
laplacian(DREff,R) Gauss linear corrected;
laplacian(DnuTildaEff,nuTilda) Gauss linear corrected;
laplacian(diff,Yi) Gauss linear corrected;
laplacian(alphaEff,O2) Gauss linear corrected;
laplacian(alphaEff,C6H6) Gauss linear corrected;

default linear;
interpolate(U) linear;

default corrected;

amitshah is offline   Reply With Quote

Old   July 6, 2006, 23:14
Default That would be the following bi
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,768
Rep Power: 21
hjasak will become famous soon enough
That would be the following bit:


I'm not sure what the problem is: if you are running this case, it should work.


Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting:
hjasak is offline   Reply With Quote

Old   July 23, 2008, 12:32
Default As there is only one thread on
New Member
Fluid Path
Join Date: Mar 2009
Posts: 1
Rep Power: 0
fluid_path is on a distinguished road
As there is only one thread on this subject I thought I would chip in for thread "completeness". I had this message (full error messages below) and eventually discovered that it occurred because I'd accidently introduced an extra "}" in my fvSchemes file. Once removed the message disappeared and it ran fine. OF1.4.1.

default none;
laplacian(DnuTildaEff,nuTilda) Gauss linear corrected;

} /*<---Opps!*/


--> FOAM FATAL ERROR : flux requested but p not specified in the fluxRequired sub-dictionary of fvSchemes.#0 Foam::error::printStack(Foam:stream&) in "/caesw1/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccSPOpt/"
#1 Foam::error::abort() in "/caesw1/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccSPOpt/"
#2 Foam::fvMatrix<float>::flux() const in "/caesw1/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccSPOpt/simpleFoam"
#3 main in "/caesw1/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccSPOpt/simpleFoam"
#4 __libc_start_main in "/lib64/tls/"
#5 Foam::regIOobject::readIfModified() in "/caesw1/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccSPOpt/simpleFoam"

From function fvMatrix<type>::flux()
in file /home/dm2/henry/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvMatrix.C at line 841.

FOAM aborting

fluid_path is offline   Reply With Quote

Old   March 22, 2014, 01:29
Join Date: Oct 2009
Location: The University of Western Ontario, London, Ontario
Posts: 42
Blog Entries: 1
Rep Power: 8
cm_jubayer is on a distinguished road
Sometime these little things help so much.....

cm_jubayer is offline   Reply With Quote


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
ratio of total heat flux and radiative heat flux S.Karthikeyan FLUENT 2 July 1, 2008 03:48
flux required keyword in fvSchemes srinath OpenFOAM Running, Solving & CFD 1 June 19, 2008 11:44
Help required! Adi FLUENT 1 May 19, 2008 23:58
What does the term bHbyAblendb mean in the PISO subdictionary shaun OpenFOAM Running, Solving & CFD 0 October 20, 2007 02:29
help required rajesh CD-adapco 1 February 18, 2005 04:15

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