CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

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

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

Like Tree7Likes
  • 5 Post By Phicau
  • 2 Post By tripodtwostep

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2012, 07:50
Default --> FOAM FATAL IO ERROR: Unable to set reference cell for field p Please supply
  #1
Member
 
Alexander A
Join Date: Jun 2012
Posts: 53
Rep Power: 14
A.A. is on a distinguished road
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
A.A. is offline   Reply With Quote

Old   August 3, 2012, 08:12
Default
  #2
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi

check this out:

Code:
less $FOAM_TUTORIALS/incompressible/pimpleDyMFoam/mixerVesselAMI2D/system/fvSolution
Phicau is offline   Reply With Quote

Old   August 3, 2012, 08:32
Default
  #3
Member
 
Alexander A
Join Date: Jun 2012
Posts: 53
Rep Power: 14
A.A. is on a distinguished road
Thanks Phicau,

found it.

Regards,
Alex
A.A. is offline   Reply With Quote

Old   June 15, 2013, 12:03
Default
  #4
Member
 
India
Join Date: Oct 2012
Posts: 84
Rep Power: 13
mayank.dce2k7 is on a distinguished road
Thanks Phicau. I also ran across the same error.
mayank.dce2k7 is offline   Reply With Quote

Old   September 29, 2015, 09:53
Default
  #5
New Member
 
Adam
Join Date: Sep 2015
Posts: 2
Rep Power: 0
jyangay is on a distinguished road
Quote:
Originally Posted by Phicau View Post
Hi

check this out:

Code:
less $FOAM_TUTORIALS/incompressible/pimpleDyMFoam/mixerVesselAMI2D/system/fvSolution
jyangay@ust.hk
jyangay is offline   Reply With Quote

Old   April 3, 2016, 23:50
Default An example of the dict for potentialFoam
  #6
New Member
 
Pin Lyu
Join Date: Mar 2016
Location: Harbin
Posts: 6
Rep Power: 10
tripodtwostep is on a distinguished road
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; 
}
Bashar and Adolf like this.
tripodtwostep is offline   Reply With Quote

Old   November 24, 2017, 04:12
Default
  #7
New Member
 
Mileva_Maric
Join Date: Nov 2017
Posts: 3
Rep Power: 8
Mileva_Maric is on a distinguished road
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?
Mileva_Maric is offline   Reply With Quote

Old   November 24, 2017, 05:58
Default
  #8
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
Most likely your simulation doesn't like cell 0. You can try pRefPoint and set a point somewhere in your domain.
RobertHB is offline   Reply With Quote

Old   November 27, 2017, 03:13
Default
  #9
New Member
 
Mileva_Maric
Join Date: Nov 2017
Posts: 3
Rep Power: 8
Mileva_Maric is on a distinguished road
Quote:
Originally Posted by RobertHB View Post
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
Mileva_Maric is offline   Reply With Quote

Old   June 24, 2019, 04:57
Default
  #10
New Member
 
Hamed
Join Date: Dec 2013
Location: Istanbul
Posts: 16
Rep Power: 12
Hamed1117 is on a distinguished road
Quote:
Originally Posted by Mileva_Maric View Post
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;

}
Hamed1117 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
It would be wonderful if a tool for FoamToTecplot is available luckyluke OpenFOAM Post-Processing 165 November 27, 2012 06:54
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 00:34
Building OpenFoAm on SGI Altix 64bits anne OpenFOAM Installation 8 June 15, 2006 09:27
Windows Installation BugsComments on Petrbs patch brooksmoses OpenFOAM Installation 48 April 16, 2006 00:20
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


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