52 for (label cmpt = 0; cmpt < pTraits<Type>::nComponents; ++cmpt)
54 if (cmpt) result +=
" ";
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]);
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
string writeComponents(const word &stem) const
Helper function to construct a string description for a given type.
void writeBinnedData(List< List< Type > > &data, Ostream &os) const
Write binned data to stream.
bool decomposePatchValues(List< List< Type > > &data, const label bini, const Type &v, const vector &n) const
bool decomposePatchValues_
Decompose patch values into normal and tangential components.
Database for solution data, solver performance and other reduced data.
A traits class, which is primarily used for primitives.
A class for handling character strings derived from std::string.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static constexpr const zero Zero
Global zero (0)