54 if (cmpt) result +=
" ";
55 result += stem +
"_" + word(pTraits<Type>::componentNames[cmpt]);
64 List<List<Type>>& data,
70 for (
auto& datai : data)
72 for (label bini = 1; bini < nBin_; ++bini)
74 datai[bini] += datai[bini-1];
81 for (label bini = 0; bini < nBin_; ++bini)
85 for (label i = 0; i < data.size(); ++i)
87 total += data[i][bini];
90 writeValue(
os, total);
92 for (label i = 0; i < data.size(); ++i)
94 writeValue(
os, data[i][bini]);
void writeBinnedData(List< List< Type >> &data, Ostream &os) const
Write binned data to stream.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Ostream & endl(Ostream &os)
Add newline and flush stream.
A traits class, which is primarily used for primitives and vector-space.
bool decomposePatchValues_
Decompose patch values into normal and tangential components.
::Foam::direction nComponents(const expressions::valueTypeCode) noexcept
The number of components associated with given valueTypeCode.
A class for handling words, derived from Foam::string.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
string writeComponents(const word &stem) const
Helper function to construct a string description for a given type.
OBJstream os(runTime.globalPath()/outputName)
bool decomposePatchValues(List< List< Type >> &data, const label bini, const Type &v, const vector &n) const
Helper function to decompose patch values into normal and tangential components.
A class for handling character strings derived from std::string.
static constexpr const zero Zero
Global zero (0)