43 if (coli && sep)
os << sep;
54 const UList<scalar>&
values,
62 if (coli && sep)
os << sep;
73 #define doLocalCode(Type) \ 75 Type##Names_.clear(); \ 76 Type##Fields_.clear(); \ 94 #define doLocalCode(Type) \ 95 ncol += (Type##Fields_.size() * pTraits<Type>::nComponents); 133 #define doLocalCode(Type) \ 135 for (const auto& fld : Type##Fields_) \ 137 const auto& val = fld[pointi]; \ 138 for (direction d=0; d < pTraits<Type>::nComponents; ++d) \ 140 buf.append(component(val, d)); \ 169 const label npts = coords.
size();
170 const label ncomp = nDataColumns();
174 for (label pointi = 0; pointi < npts; ++pointi)
176 getBufferLine(compCols, coords, pointi);
177 writeLine(
os, compCols, sep);
virtual bool writeBuffered()
Write buffered data.
void size(const label n)
Older name for setAddressableSize.
static void writeLine(Ostream &, const UList< word > &, const char *sep)
Write line contents (eg, buffered)
label nDataColumns() const
The number of buffer data columns, after splitting into components.
constexpr char nl
The newline '\n' character (0x0a)
void writeBufferContents(Ostream &os, const coordSet &coords, const char *sep) const
Write buffered data.
virtual bool buffering() const
True if the format uses internal buffering (eg, column output)
const vector & vectorCoord(const label index) const
Get point according to axis="xyz" specification.
#define forAll(list, i)
Loop across all elements in list.
bool hasVectorAxis() const noexcept
True if axis specification is a vector.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
Holds list of sampling positions.
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
void clearBuffers()
Clear out buffering.
void append(const T &val)
Copy append an element to the end of this list.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
void clear() noexcept
Clear the addressed list, i.e. set the size to zero.
#define doLocalCode(Type)
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
Tensor of scalars, i.e. Tensor<scalar>.
void getBufferLine(DynamicList< scalar > &buf, const coordSet &coords, const label pointi) const
Get buffered data line (components)
scalar scalarCoord(const label index) const
Get coordinate of point according to axis specification.