73 #ifndef LagrangianFieldValue_H
74 #define LagrangianFieldValue_H
84 namespace functionObjects
91 class LagrangianFieldValue
93 public LagrangianMeshFunctionObject,
129 Switch writeLocation_;
135 void readCoeffs(
const dictionary&
dict);
139 void writeName(
const word&
name);
142 template<
class Type,
class LocationType>
143 void writeLocationName(
const word&
name,
const word& locationName);
147 void writeNameAndLocationNames(
const word&
name);
151 void writeValue(
const Type& value);
154 template<
class Type,
class LocationType>
155 void writeLocationValue
157 const FixedList<LocationType, pTraits<Type>::nComponents>& value
161 template<
class Type,
class Op>
162 void writeValueAndLocationValues
165 const scalar emptyValue,
171 template<
template<
class>
class GeoField>
174 const word& weightFieldName,
180 template<
template<
class>
class GeoField,
class Type>
181 bool writeFieldName(
const word& fieldName);
185 template<
template<
class>
class GeoField,
class Type>
189 const word& fieldName
193 virtual void writeFileHeader(
const label i = 0);
232 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.