61#ifndef Foam_Function1Types_FunctionObjectTrigger_H
62#define Foam_Function1Types_FunctionObjectTrigger_H
81 public Function1<Type>
95 inline bool active()
const;
118 const word& entryName,
147 virtual inline Type
value(const scalar ) const;
150 virtual inline Type
integrate(const scalar, const scalar) const;
167#include "FunctionObjectTriggerI.H"
Returns a 0/1 value corresponding to function object trigger levels.
virtual tmp< Function1< Type > > clone() const
Return a clone.
void operator=(const FunctionObjectTrigger< Type > &)=delete
No copy assignment.
virtual void writeData(Ostream &os) const
Write in dictionary format.
virtual ~FunctionObjectTrigger()=default
Destructor.
virtual void writeEntries(Ostream &os) const
Write coefficient entries in dictionary format.
FunctionObjectTrigger(const word &entryName, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from entry name, dictionary and optional registry.
virtual Type value(const scalar) const
Return 0/1 value at current time.
const labelList & triggers() const noexcept
Return the trigger indices.
virtual Type integrate(const scalar, const scalar) const
Integrate between two (scalar) values. Not implemented!
void resetTriggers(const labelUList &indices)
Change the trigger indices.
TypeName("functionObjectTrigger")
Runtime type information.
Function1(const word &entryName, const objectRegistry *obrPtr=nullptr)
Construct from entry name.
static tmp< Function1< Type > > Clone(const Derived &fun)
Clone a Function1.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Registry of regIOobjects.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
List< label > labelList
A List of labels.
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
UList< label > labelUList
A UList of labels.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.