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/)
-   -   How to specify p in the flux required subdictionary (http://www.cfd-online.com/Forums/openfoam-solving/58707-how-specify-p-flux-required-subdictionary.html)

amitshah July 6, 2006 16:49

fvschemes Hi I am getting t
 
fvschemes
Hi
I am getting the following error. Can anyone tell me what I am doing wrong.
Thanks


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



Here is the fvSchemes file

fvSchemes

ddtSchemes
{
default Euler;
}

gradSchemes
{
default Gauss linear;
grad(p) Gauss linear;
grad(U) Gauss linear;
}

divSchemes
{
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;
}

laplacianSchemes
{
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;
}

interpolationSchemes
{
default linear;
interpolate(U) linear;
}

snGradSchemes
{
default corrected;
}

fluxRequired
{
p;
}

hjasak July 6, 2006 23:14

That would be the following bi
 
That would be the following bit:

fluxRequired
{
p;
}

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

Hmm,

Hrv

fluid_path July 23, 2008 12:32

As there is only one thread on
 
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.

laplacianSchemes
{
default none;
/*etc*/
/*etc*/
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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) in "/caesw1/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccSPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/caesw1/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccSPOpt/libOpenFOAM.so"
#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/libc.so.6"
#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



------------------------------------------------------

cm_jubayer March 22, 2014 01:29

Sometime these little things help so much..... :)


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