mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: changed absTol->tolerance for consistency with solvers
This commit is contained in:
@ -137,7 +137,7 @@ Foam::pimpleControl::pimpleControl(fvMesh& mesh)
|
|||||||
{
|
{
|
||||||
Info<< " field " << residualControl_[i].name << token::TAB
|
Info<< " field " << residualControl_[i].name << token::TAB
|
||||||
<< ": relTol " << residualControl_[i].relTol
|
<< ": relTol " << residualControl_[i].relTol
|
||||||
<< ", absTol " << residualControl_[i].absTol
|
<< ", tolerance " << residualControl_[i].absTol
|
||||||
<< nl;
|
<< nl;
|
||||||
}
|
}
|
||||||
Info<< endl;
|
Info<< endl;
|
||||||
|
|||||||
@ -68,7 +68,7 @@ bool Foam::simpleControl::criteriaSatisfied()
|
|||||||
{
|
{
|
||||||
Info<< algorithmName_ << " solution statistics:" << endl;
|
Info<< algorithmName_ << " solution statistics:" << endl;
|
||||||
|
|
||||||
Info<< " " << variableName << ": abs tol = " << residual
|
Info<< " " << variableName << ": tolerance = " << residual
|
||||||
<< " (" << residualControl_[fieldI].absTol << ")"
|
<< " (" << residualControl_[fieldI].absTol << ")"
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
@ -96,7 +96,7 @@ Foam::simpleControl::simpleControl(fvMesh& mesh)
|
|||||||
forAll(residualControl_, i)
|
forAll(residualControl_, i)
|
||||||
{
|
{
|
||||||
Info<< " field " << residualControl_[i].name << token::TAB
|
Info<< " field " << residualControl_[i].name << token::TAB
|
||||||
<< " absTol " << residualControl_[i].absTol
|
<< " tolerance " << residualControl_[i].absTol
|
||||||
<< nl;
|
<< nl;
|
||||||
}
|
}
|
||||||
Info<< endl;
|
Info<< endl;
|
||||||
|
|||||||
@ -68,7 +68,7 @@ void Foam::solutionControl::read(const bool absTolOnly)
|
|||||||
if (iter().isDict())
|
if (iter().isDict())
|
||||||
{
|
{
|
||||||
const dictionary& fieldDict(iter().dict());
|
const dictionary& fieldDict(iter().dict());
|
||||||
fd.absTol = readScalar(fieldDict.lookup("absTol"));
|
fd.absTol = readScalar(fieldDict.lookup("tolerance"));
|
||||||
fd.relTol = readScalar(fieldDict.lookup("relTol"));
|
fd.relTol = readScalar(fieldDict.lookup("relTol"));
|
||||||
fd.initialResidual = 0.0;
|
fd.initialResidual = 0.0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -63,7 +63,7 @@ PIMPLE
|
|||||||
"(U|k|epsilon)"
|
"(U|k|epsilon)"
|
||||||
{
|
{
|
||||||
relTol 0;
|
relTol 0;
|
||||||
absTol 0.0001;
|
tolerance 0.0001;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user