|
[Sponsors] |
February 5, 2018, 11:26 |
How to specify pMax and pMin in OF 5.0 ?
|
#1 |
Senior Member
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 9 |
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. 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 Code:
if (dict.found("pMax") && dict.found("pMin")) { pMax_.value() = readScalar(dict.lookup("pMax")); limitMaxP_ = true; pMin_.value() = readScalar(dict.lookup("pMin")); limitMinP_ = true; } I didn't find a single thread involving pMin or pMax or pMinFactor and pMaxfactor, that was surprising. |
|
August 1, 2019, 07:37 |
any solution?
|
#2 |
Member
Owais Shabbir
Join Date: May 2019
Posts: 48
Rep Power: 7 |
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 |
|
|
|