52 for (label cmpt = 0; cmpt < pTraits<Type>::nComponents; ++cmpt)
54 if (cmpt) result +=
" ";
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]);
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.
label nBin_
Total number of bins.
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.
bool decomposePatchValues_
Decompose patch values into normal and tangential components.
bool cumulative_
Flag to accumulate bin data with increasing distance in binning direction.
void writeValue(Ostream &os, const Type &val) const
Write a given value to stream with the space delimiter.
virtual void writeCurrentTime(Ostream &os) const
Write the current time to stream.
A traits class, which is primarily used for primitives and vector-space.
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).