CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   --> FOAM FATAL IO ERROR: Unable to set reference cell for field p Please supply (https://www.cfd-online.com/Forums/openfoam-solving/105598-foam-fatal-io-error-unable-set-reference-cell-field-p-please-supply.html)

A.A. August 3, 2012 07:50

--> FOAM FATAL IO ERROR: Unable to set reference cell for field p Please supply
 
Hi,

When I want to run my simulation with pimpleDyMFoam command I get the following error Message:

--> FOAM FATAL IO ERROR:
Unable to set reference cell for field p
Please supply either pRefCell or pRefPoint

Does anybody now where I can supply either pRefCell or pRefPoint?


Thanks in advance,
alex

Phicau August 3, 2012 08:12

Hi

check this out:

Code:

less $FOAM_TUTORIALS/incompressible/pimpleDyMFoam/mixerVesselAMI2D/system/fvSolution

A.A. August 3, 2012 08:32

Thanks Phicau,

found it.

Regards,
Alex

mayank.dce2k7 June 15, 2013 12:03

Thanks Phicau. I also ran across the same error.

jyangay September 29, 2015 09:53

Quote:

Originally Posted by Phicau (Post 375236)
Hi

check this out:

Code:

less $FOAM_TUTORIALS/incompressible/pimpleDyMFoam/mixerVesselAMI2D/system/fvSolution

jyangay@ust.hk

tripodtwostep April 3, 2016 23:50

An example of the dict for potentialFoam
 
I also came across similar problem, potentialFoam complained about pRefCell, phiRefCell, and Phi. Luckily after adding those keywords to fvSolution, it solved.
Here are several keywords you may need.
Code:

PIMPLE
{
    pRefCell 0;
    pRefValue 0;
}

solvers
{
    Phi
    {
        solver          GAMG;
        smoother        DIC;
        cacheAgglomeration on;
        agglomerator    faceAreaPair;
        nCellsInCoarsestLevel 10;
        mergeLevels    1;

        tolerance      1e-06;
        relTol          0.01;
    }
}

potentialFlow
{
    nNonOrthogonalCorrectors 10;
    PhiRefCell 0;
    PhiRefValue 0;
}


Mileva_Maric November 24, 2017 04:12

Dear users,

I do have exacly the same pRefCell error than Alexander but I already have the code of fvSolutions as you mentioned, with pRefCell 0; and pRefValue 0; set.

Does anyone know what is going on?

RobertHB November 24, 2017 05:58

Most likely your simulation doesn't like cell 0. You can try pRefPoint and set a point somewhere in your domain.

Mileva_Maric November 27, 2017 03:13

Quote:

Originally Posted by RobertHB (Post 672728)
Most likely your simulation doesn't like cell 0. You can try pRefPoint and set a point somewhere in your domain.

I have already tried this option without good results

Hamed1117 June 24, 2019 04:57

Quote:

Originally Posted by Mileva_Maric (Post 672713)
Dear users,

I do have exacly the same pRefCell error than Alexander but I already have the code of fvSolutions as you mentioned, with pRefCell 0; and pRefValue 0; set.

Does anyone know what is going on?

Well, I had the same problem with fsiFoam case running in parallel using consistentIcoFlow solver, but the thing is you need to add pRefCell and pRefPoint in fluid/constant/flowProperties for all processors as the fallowing:


flowModel consistentIcoFlow;

icoFlowCoeffs
{
nCorrectors 3;
nNonOrthogonalCorrectors 1;
pRefCell 0;
pRefValue 0;

}

//consistentIcoFlowCoeffs
consistentIcoFlowCoeffs;
{
nCorrectors 3;
nNonOrthogonalCorrectors 1;
pRefCell 0;
pRefValue 0;

}


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