35 const word& fieldName,
41 Info<<
"Writing field " << fieldName;
48 if constexpr (std::is_integral_v<Type>)
67 if constexpr (is_vectorspace_v<Type>)
78 Info<<
" [level " << refLevel <<
']';
84 tadjusted.
reset(tfield.ptr());
88 tadjusted.
ref() -= refLevel;
100 Info<<
" [scaling " << value <<
']';
106 tadjusted.
reset(tfield.ptr());
110 tadjusted.
ref() *= value;
115 if constexpr (is_rotational_vectorspace_v<Type>)
122 tadjusted.
reset(tfield.ptr());
134 return (tadjusted ? tadjusted : tfield);
156 fieldPtrs.set(i, &(fieldValues[i]));
178 os <<
p.x() << sep <<
p.y() << sep <<
p.z();
186 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)
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.
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...
refinementData transform(const tensor &, const refinementData val)
No-op rotational transform for base types.
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.
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...