35 const word& fieldName,
41 Info<<
"Writing field " << fieldName;
48 if (!std::is_integral<Type>::value)
70 Info<<
" [level " << refLevel <<
']';
76 tadjusted.
reset(tfield.ptr());
80 tadjusted.
ref() -= refLevel;
92 Info<<
" [scaling " << value <<
']';
98 tadjusted.
reset(tfield.ptr());
102 tadjusted.
ref() *= value;
116 tadjusted.
reset(tfield.ptr());
128 return (tadjusted ? tadjusted : tfield);
150 fieldPtrs.set(i, &(fieldValues[i]));
172 os <<
p.x() << sep <<
p.y() << sep <<
p.z();
180 const auto& val =
values[pointi];
bool equal(const T &a, const T &b)
Compare two values for equality.
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
constexpr char nl
The newline '\n' character (0x0a)
A traits class, which is primarily used for primitives and vector-space.
const vector & vectorCoord(const label index) const
Get point according to axis="xyz" specification.
::Foam::direction nComponents(const expressions::valueTypeCode) noexcept
The number of components associated with given valueTypeCode.
virtual bool good() const
Consider good if it has a specification.
#define forAll(list, i)
Loop across all elements in list.
virtual const tensor & R() const
Return const reference to the rotation tensor.
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.
static UPtrList< const Field< Type > > repackageFields(const Field< Type > &field)
Repackage field into a UPtrList.
Holds list of sampling positions.
Generic templated field type.
A class for handling words, derived from Foam::string.
Test for VectorSpace : default is false.
dictionary fieldScale_
Field scaling (on output)
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
dictionary fieldLevel_
Field level to remove (on output)
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...
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry if present, and assign to T val. FatalIOError if it is found and the number of tokens i...
OBJstream os(runTime.globalPath()/outputName)
static void writeTable(Ostream &os, const coordSet &coords, const UList< Type > &values, const char *sep)
Write coordinates and values.
coordSystem::cartesian geometryTransform_
Local coordinate system transformation.
bool verbose_
Additional output verbosity.
messageStream Info
Information stream (stdout output on master, null elsewhere)
A class for managing temporary objects.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
label & setComponent(label &val, const direction) noexcept
Non-const access to integer-type (has no components)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
tmp< Field< Type > > adjustFieldTemplate(const word &fieldName, const tmp< Field< Type >> &tfield) const
void reset(tmp< T > &&other) noexcept
Clear existing and transfer ownership.
scalar scalarCoord(const label index) const
Get coordinate of point according to axis specification.
const T * set(const label i) const
Return const pointer to element (can be nullptr), or nullptr for out-of-range access (ie...