fvCellSet: Remove output of the number of cells which is not correct in parallel

The volume of the fvCellSet is summed over all processors and is the correct
representation of the region for FV, it is not clear that writing the number of
cells in the set in the header of the functionObject output is useful and can be
obtained by other means.
This commit is contained in:
Henry Weller
2023-05-15 16:12:50 +01:00
parent d02c119326
commit b2d74bfdb4
2 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -35,7 +35,7 @@ void Foam::functionObjects::writeFile::writeHeaderValue
{
os << setw(1) << '#' << setw(1) << ' '
<< setf(ios_base::left) << setw(charWidth() - 2) << property.c_str()
<< setw(1) << ':' << setw(1) << ' ' << value << nl;
<< setw(1) << ':' << setw(1) << ' ' << value << endl;
}

View File

@ -60,7 +60,6 @@ void Foam::fvCellSet::writeFileHeader
wf.writeCommented(file, "Selection");
file<< setw(1) << ':' << setw(1) << ' '
<< selectionTypeNames[selectionType()] << " " << cellSetName() << endl;
wf.writeHeaderValue(file, "Cells", nCells());
wf.writeHeaderValue(file, "Volume", V());
}