72 #ifndef LagrangianFieldValue_H
73 #define LagrangianFieldValue_H
83 namespace functionObjects
90 class LagrangianFieldValue
92 public LagrangianMeshFunctionObject,
128 Switch writeLocation_;
134 void readCoeffs(
const dictionary&
dict);
138 void writeName(
const word&
name);
141 template<
class Type,
class LocationType>
142 void writeLocationName(
const word&
name,
const word& locationName);
146 void writeNameAndLocationNames(
const word&
name);
150 void writeValue(
const Type& value);
153 template<
class Type,
class LocationType>
154 void writeLocationValue
156 const FixedList<LocationType, pTraits<Type>::nComponents>& value
160 template<
class Type,
class Op>
161 void writeValueAndLocationValues
164 const scalar emptyValue,
170 template<
template<
class>
class GeoField>
173 const word& weightFieldName,
179 template<
template<
class>
class GeoField,
class Type>
180 bool writeFieldName(
const word& fieldName);
184 template<
template<
class>
class GeoField,
class Type>
188 const word& fieldName
192 virtual void writeFileHeader(
const label i = 0);
231 virtual bool write();
Pre-declare SubField and related Field type.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const word & name() const
Return the name of this functionObject.
Function to log a single reduced quantity generated from the values in a Lagrangian field; e....
virtual wordList fields() const
Return the list of fields required.
TypeName("LagrangianFieldValue")
Runtime type information.
LagrangianFieldValue(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
static const NamedEnum< operationType, 6 > operationTypeNames_
Operation type names.
void operator=(const LagrangianFieldValue &)=delete
Disallow default bitwise assignment.
virtual ~LagrangianFieldValue()
Destructor.
virtual bool execute()
Execute. Does nothing.
virtual bool write()
Write the sum.
virtual bool read(const dictionary &)
Read parameters.
operationType
Operation type enumeration.
A class for managing temporary objects.
A class for handling words, derived from string.
List< word > wordList
A List of words.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.