functionObjects: Rationalized the use of "tab" rather than token::TAB
This commit is contained in:
@ -51,20 +51,20 @@ void Foam::functionObjects::fieldMinMax::output
|
|||||||
|
|
||||||
writeTabbed(file, fieldName);
|
writeTabbed(file, fieldName);
|
||||||
|
|
||||||
file<< token::TAB << minValue
|
file<< tab << minValue
|
||||||
<< token::TAB << minC;
|
<< tab << minC;
|
||||||
|
|
||||||
if (Pstream::parRun())
|
if (Pstream::parRun())
|
||||||
{
|
{
|
||||||
file<< token::TAB << minProci;
|
file<< tab << minProci;
|
||||||
}
|
}
|
||||||
|
|
||||||
file<< token::TAB << maxValue
|
file<< tab << maxValue
|
||||||
<< token::TAB << maxC;
|
<< tab << maxC;
|
||||||
|
|
||||||
if (Pstream::parRun())
|
if (Pstream::parRun())
|
||||||
{
|
{
|
||||||
file<< token::TAB << maxProci;
|
file<< tab << maxProci;
|
||||||
}
|
}
|
||||||
|
|
||||||
file<< endl;
|
file<< endl;
|
||||||
@ -89,7 +89,7 @@ void Foam::functionObjects::fieldMinMax::output
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
file<< token::TAB << minValue << token::TAB << maxValue;
|
file<< tab << minValue << tab << maxValue;
|
||||||
|
|
||||||
Log << " min/max(" << outputName << ") = "
|
Log << " min/max(" << outputName << ") = "
|
||||||
<< minValue << ' ' << maxValue;
|
<< minValue << ' ' << maxValue;
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2013-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -534,10 +534,10 @@ bool Foam::functionObjects::regionSizeDistribution::write()
|
|||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
Info<< " " << token::TAB << "Region"
|
Info<< " " << tab << "Region"
|
||||||
<< token::TAB << "Volume(mesh)"
|
<< tab << "Volume(mesh)"
|
||||||
<< token::TAB << "Volume(" << alpha.name() << "):"
|
<< tab << "Volume(" << alpha.name() << "):"
|
||||||
<< token::TAB << "nCells"
|
<< tab << "nCells"
|
||||||
<< endl;
|
<< endl;
|
||||||
scalar meshSumVol = 0.0;
|
scalar meshSumVol = 0.0;
|
||||||
scalar alphaSumVol = 0.0;
|
scalar alphaSumVol = 0.0;
|
||||||
@ -554,20 +554,20 @@ bool Foam::functionObjects::regionSizeDistribution::write()
|
|||||||
++vIter, ++aIter, ++numIter
|
++vIter, ++aIter, ++numIter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Info<< " " << token::TAB << vIter.key()
|
Info<< " " << tab << vIter.key()
|
||||||
<< token::TAB << vIter()
|
<< tab << vIter()
|
||||||
<< token::TAB << aIter()
|
<< tab << aIter()
|
||||||
<< token::TAB << numIter()
|
<< tab << numIter()
|
||||||
<< endl;
|
<< endl;
|
||||||
|
|
||||||
meshSumVol += vIter();
|
meshSumVol += vIter();
|
||||||
alphaSumVol += aIter();
|
alphaSumVol += aIter();
|
||||||
nCells += numIter();
|
nCells += numIter();
|
||||||
}
|
}
|
||||||
Info<< " " << token::TAB << "Total:"
|
Info<< " " << tab << "Total:"
|
||||||
<< token::TAB << meshSumVol
|
<< tab << meshSumVol
|
||||||
<< token::TAB << alphaSumVol
|
<< tab << alphaSumVol
|
||||||
<< token::TAB << nCells
|
<< tab << nCells
|
||||||
<< endl;
|
<< endl;
|
||||||
Info<< endl;
|
Info<< endl;
|
||||||
}
|
}
|
||||||
@ -577,16 +577,16 @@ bool Foam::functionObjects::regionSizeDistribution::write()
|
|||||||
|
|
||||||
{
|
{
|
||||||
Info<< " Patch connected regions (liquid core):" << endl;
|
Info<< " Patch connected regions (liquid core):" << endl;
|
||||||
Info<< token::TAB << " Region"
|
Info<< tab << " Region"
|
||||||
<< token::TAB << "Volume(mesh)"
|
<< tab << "Volume(mesh)"
|
||||||
<< token::TAB << "Volume(" << alpha.name() << "):"
|
<< tab << "Volume(" << alpha.name() << "):"
|
||||||
<< endl;
|
<< endl;
|
||||||
forAllConstIter(Map<label>, patchRegions, iter)
|
forAllConstIter(Map<label>, patchRegions, iter)
|
||||||
{
|
{
|
||||||
label regionI = iter.key();
|
label regionI = iter.key();
|
||||||
Info<< " " << token::TAB << iter.key()
|
Info<< " " << tab << iter.key()
|
||||||
<< token::TAB << allRegionVolume[regionI]
|
<< tab << allRegionVolume[regionI]
|
||||||
<< token::TAB << allRegionAlphaVolume[regionI] << endl;
|
<< tab << allRegionAlphaVolume[regionI] << endl;
|
||||||
|
|
||||||
}
|
}
|
||||||
Info<< endl;
|
Info<< endl;
|
||||||
@ -594,9 +594,9 @@ bool Foam::functionObjects::regionSizeDistribution::write()
|
|||||||
|
|
||||||
{
|
{
|
||||||
Info<< " Background regions:" << endl;
|
Info<< " Background regions:" << endl;
|
||||||
Info<< " " << token::TAB << "Region"
|
Info<< " " << tab << "Region"
|
||||||
<< token::TAB << "Volume(mesh)"
|
<< tab << "Volume(mesh)"
|
||||||
<< token::TAB << "Volume(" << alpha.name() << "):"
|
<< tab << "Volume(" << alpha.name() << "):"
|
||||||
<< endl;
|
<< endl;
|
||||||
Map<scalar>::const_iterator vIter = allRegionVolume.begin();
|
Map<scalar>::const_iterator vIter = allRegionVolume.begin();
|
||||||
Map<scalar>::const_iterator aIter = allRegionAlphaVolume.begin();
|
Map<scalar>::const_iterator aIter = allRegionAlphaVolume.begin();
|
||||||
@ -615,9 +615,9 @@ bool Foam::functionObjects::regionSizeDistribution::write()
|
|||||||
&& vIter() >= maxDropletVol
|
&& vIter() >= maxDropletVol
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Info<< " " << token::TAB << vIter.key()
|
Info<< " " << tab << vIter.key()
|
||||||
<< token::TAB << vIter()
|
<< tab << vIter()
|
||||||
<< token::TAB << aIter() << endl;
|
<< tab << aIter() << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Info<< endl;
|
Info<< endl;
|
||||||
@ -716,17 +716,17 @@ bool Foam::functionObjects::regionSizeDistribution::write()
|
|||||||
// Write to log
|
// Write to log
|
||||||
{
|
{
|
||||||
Info<< " Bins:" << endl;
|
Info<< " Bins:" << endl;
|
||||||
Info<< " " << token::TAB << "Bin"
|
Info<< " " << tab << "Bin"
|
||||||
<< token::TAB << "Min diameter"
|
<< tab << "Min diameter"
|
||||||
<< token::TAB << "Count:"
|
<< tab << "Count:"
|
||||||
<< endl;
|
<< endl;
|
||||||
|
|
||||||
scalar diam = 0.0;
|
scalar diam = 0.0;
|
||||||
forAll(binCount, binI)
|
forAll(binCount, binI)
|
||||||
{
|
{
|
||||||
Info<< " " << token::TAB << binI
|
Info<< " " << tab << binI
|
||||||
<< token::TAB << diam
|
<< tab << diam
|
||||||
<< token::TAB << binCount[binI] << endl;
|
<< tab << binCount[binI] << endl;
|
||||||
diam += delta;
|
diam += delta;
|
||||||
}
|
}
|
||||||
Info<< endl;
|
Info<< endl;
|
||||||
|
|||||||
@ -273,10 +273,10 @@ bool Foam::functionObjects::wallHeatFlux::write()
|
|||||||
{
|
{
|
||||||
file()
|
file()
|
||||||
<< mesh_.time().value()
|
<< mesh_.time().value()
|
||||||
<< token::TAB << pp.name()
|
<< tab << pp.name()
|
||||||
<< token::TAB << minHfp
|
<< tab << minHfp
|
||||||
<< token::TAB << maxHfp
|
<< tab << maxHfp
|
||||||
<< token::TAB << integralHfp
|
<< tab << integralHfp
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -249,9 +249,9 @@ bool Foam::functionObjects::wallShearStress::write()
|
|||||||
if (Pstream::master())
|
if (Pstream::master())
|
||||||
{
|
{
|
||||||
file() << mesh_.time().value()
|
file() << mesh_.time().value()
|
||||||
<< token::TAB << pp.name()
|
<< tab << pp.name()
|
||||||
<< token::TAB << minSsp
|
<< tab << minSsp
|
||||||
<< token::TAB << maxSsp
|
<< tab << maxSsp
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -225,10 +225,10 @@ bool Foam::functionObjects::yPlus::write()
|
|||||||
|
|
||||||
writeTime(file());
|
writeTime(file());
|
||||||
file()
|
file()
|
||||||
<< token::TAB << patch.name()
|
<< tab << patch.name()
|
||||||
<< token::TAB << minYplus
|
<< tab << minYplus
|
||||||
<< token::TAB << maxYplus
|
<< tab << maxYplus
|
||||||
<< token::TAB << avgYplus
|
<< tab << avgYplus
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -133,8 +133,8 @@ bool Foam::functionObjects::cloudInfo::write()
|
|||||||
{
|
{
|
||||||
writeTime(file(i));
|
writeTime(file(i));
|
||||||
file(i)
|
file(i)
|
||||||
<< token::TAB
|
<< tab
|
||||||
<< nParcels << token::TAB
|
<< nParcels << tab
|
||||||
<< massInSystem << endl;
|
<< massInSystem << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -83,13 +83,13 @@ void Foam::functionObjects::residuals::writeResidual(const word& fieldName)
|
|||||||
{
|
{
|
||||||
if (component(validComponents, cmpt) != -1)
|
if (component(validComponents, cmpt) != -1)
|
||||||
{
|
{
|
||||||
file() << token::TAB << component(residual, cmpt);
|
file() << tab << component(residual, cmpt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
file() << token::TAB << "N/A";
|
file() << tab << "N/A";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user