mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
GIT: Resolve conflict with upstream merge from Foundation
This commit is contained in:
@ -72,16 +72,8 @@ Foam::yPlus::yPlus
|
||||
if (!isA<fvMesh>(obr_))
|
||||
{
|
||||
active_ = false;
|
||||
WarningIn
|
||||
(
|
||||
"yPlus::yPlus"
|
||||
"("
|
||||
"const word&, "
|
||||
"const objectRegistry&, "
|
||||
"const dictionary&, "
|
||||
"const bool"
|
||||
")"
|
||||
) << "No fvMesh available, deactivating " << name_ << nl
|
||||
WarningInFunction
|
||||
<< "No fvMesh available, deactivating " << name_ << nl
|
||||
<< endl;
|
||||
}
|
||||
|
||||
@ -201,6 +193,7 @@ void Foam::yPlus::execute()
|
||||
<< phi.dimensions() << nl
|
||||
<< "Expected either " << dimMass/dimTime << " or "
|
||||
<< dimVolume/dimTime << nl
|
||||
<< "Unable to determine turbulence model type. "
|
||||
<< "yPlus will not be calculated" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
@ -73,12 +73,14 @@ void Foam::yPlus::calcYPlus
|
||||
<< " y+ : min = " << minYplus << ", max = " << maxYplus
|
||||
<< ", average = " << avgYplus << nl;
|
||||
|
||||
file() << obr_.time().value()
|
||||
writeTime(file());
|
||||
file()
|
||||
<< token::TAB << patch.name()
|
||||
<< token::TAB << minYplus
|
||||
<< token::TAB << maxYplus
|
||||
<< token::TAB << avgYplus
|
||||
<< endl;
|
||||
}
|
||||
}
|
||||
else if (isA<wallFvPatch>(patch))
|
||||
{
|
||||
@ -95,20 +97,18 @@ void Foam::yPlus::calcYPlus
|
||||
const scalar maxYplus = gMax(yPlusp);
|
||||
const scalar avgYplus = gAverage(yPlusp);
|
||||
|
||||
if (Pstream::master())
|
||||
{
|
||||
if (log_) Info
|
||||
<< " patch " << patch.name()
|
||||
<< " y+ : min = " << minYplus << ", max = " << maxYplus
|
||||
<< ", average = " << avgYplus << nl;
|
||||
if (log_) Info
|
||||
<< " patch " << patch.name()
|
||||
<< " y+ : min = " << minYplus << ", max = " << maxYplus
|
||||
<< ", average = " << avgYplus << nl;
|
||||
|
||||
file() << obr_.time().value()
|
||||
<< token::TAB << patch.name()
|
||||
<< token::TAB << minYplus
|
||||
<< token::TAB << maxYplus
|
||||
<< token::TAB << avgYplus
|
||||
<< endl;
|
||||
}
|
||||
writeTime(file());
|
||||
file()
|
||||
<< token::TAB << patch.name()
|
||||
<< token::TAB << minYplus
|
||||
<< token::TAB << maxYplus
|
||||
<< token::TAB << avgYplus
|
||||
<< endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user