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

How to specify pMax and pMin in OF 5.0 ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2018, 11:26
Default How to specify pMax and pMin in OF 5.0 ?
  #1
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 9
deepbandivadekar is on a distinguished road
Hi,

I'm getting warnings during my run of rhoPorousSimpleFoam like these

Code:
--> FOAM Warning : 
    From function Foam::pressureControl::pressureControl(const volScalarField&, const volScalarField&, const Foam::dictionary&, bool)
    in file cfdTools/general/pressureControl/pressureControl.C at line 125
    Reading "/OpenFOAM/x/system/fvSolution.SIMPLE" from line 52 to line 66
    'rhoMax' specified rather than 'pMax' or 'pMaxFactor'
    This is supported for backward-compatibility but 'pMax' or 'pMaxFactor' are more reliable.
--> FOAM Warning : 
    From function Foam::pressureControl::pressureControl(const volScalarField&, const volScalarField&, const Foam::dictionary&, bool)
    in file cfdTools/general/pressureControl/pressureControl.C at line 182
    Reading "/OpenFOAM/x/system/fvSolution.SIMPLE" from line 52 to line 66
    'rhoMin' specified rather than 'pMin' or 'pMinFactor'
    This is supported for backward-compatibility but'pMin' or 'pMinFactor' are more reliable.
So when I thought of defining pMax and pMin instead and replaced rhoMax and rhoMin in fvSolutions, I got an error.

Code:
--> FOAM FATAL IO ERROR: 
wrong token type - expected Scalar, found on line 55 the word 'pMax'

file: /OpenFOAM/x/system/fvSolution.SIMPLE.pMax at line 55.

    From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::doubleScalar&)
    in file lnInclude/Scalar.C at line 93.

FOAM exiting
Following is from the pressurecontrol.c file
Code:
if (dict.found("pMax") && dict.found("pMin"))
    {
        pMax_.value() = readScalar(dict.lookup("pMax"));
        limitMaxP_ = true;
        pMin_.value() = readScalar(dict.lookup("pMin"));
        limitMinP_ = true;
}
Does that mean, I need to create two separate dictionary files named pMax and pMin ? And do these go in the system folder or it doesn't matter?

I didn't find a single thread involving pMin or pMax or pMinFactor and pMaxfactor, that was surprising.
deepbandivadekar is offline   Reply With Quote

Old   August 1, 2019, 07:37
Default any solution?
  #2
Member
 
Owais Shabbir
Join Date: May 2019
Posts: 48
Rep Power: 7
Owais Shabbir is on a distinguished road
Hi,



Did you find any solution to that I am having the same problem.



I am trying running chtMultiRegionSimpleFoam tutorial on OFv6 but after some minor modification, I am recieving this error as you have described before.



Could you share your solution if you remember it?



Thanks
Owais
Owais Shabbir is offline   Reply With Quote

Reply


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



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