Constructs a dynamically compiled Function1. More...


Public Member Functions | |
| TypeName ("coded") | |
| Coded (const word &name, const Function1s::unitConversions &units, const dictionary &dict) | |
| Construct from name and dictionary. More... | |
| Coded (const Coded< Type > &cf1) | |
| Copy constructor. More... | |
| virtual tmp< Function1< Type > > | clone () const |
| Construct and return a clone. More... | |
| virtual | ~Coded () |
| Destructor. More... | |
| virtual Type | value (const scalar x) const |
| Return value as a function of a scalar. More... | |
| virtual tmp< Field< Type > > | value (const scalarField &x) const |
| Return value as a function of a scalar field. More... | |
| virtual Type | integral (const scalar x1, const scalar x2) const |
| Integrate between two scalars. More... | |
| virtual tmp< Field< Type > > | integral (const scalarField &x1, const scalarField &x2) const |
| Integrate between two scalar fields. More... | |
| virtual void | write (Ostream &os, const unitConversions &units) const |
| Write data to dictionary stream. More... | |
| void | operator= (const Coded< Type > &)=delete |
| Disallow default bitwise assignment. More... | |
Public Member Functions inherited from Function1< Type > | |
| TypeName ("Function1") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, Function1, dictionary,(const word &name, const Function1s::unitConversions &units, const dictionary &dict),(name, units, dict)) | |
| declareRunTimeSelectionTable (autoPtr, Function1, Istream,(const word &name, const Function1s::unitConversions &units, Istream &is),(name, units, is)) | |
| Function1 (const word &name) | |
| Construct from name. More... | |
| Function1 (const Function1< Type > &f1) | |
| Copy constructor. More... | |
| virtual | ~Function1 () |
| Destructor. More... | |
| const word & | name () const |
| Return the name of the entry. More... | |
| virtual bool | constant () const |
| Is this function guaranteed to be constant? More... | |
| void | operator= (const Function1< Type > &) |
| Assignment. More... | |
Public Member Functions inherited from refCount | |
| int | count () const |
| Return the current reference count. More... | |
| bool | unique () const |
| Return true if the reference count is zero. More... | |
| void | operator++ () |
| Increment the reference count. More... | |
| void | operator++ (int) |
| Increment the reference count. More... | |
| void | operator-- () |
| Decrement the reference count. More... | |
| void | operator-- (int) |
| Decrement the reference count. More... | |
| void | operator= (const refCount &)=delete |
| Disallow bitwise assignment. More... | |
Public Member Functions inherited from codedBase | |
| TypeName ("codedBase") | |
| Runtime type information. More... | |
| codedBase (const word &name, const dictionary &dict, const wordList &codeKeys, const wordList &codeDictVars) | |
| Construct from name and dictionary. More... | |
| codedBase (const dictionary &dict, const wordList &codeKeys, const wordList &codeDictVars) | |
| Construct from dictionary. More... | |
| codedBase (const codedBase &cb) | |
| Copy constructor. More... | |
| virtual | ~codedBase () |
| Destructor. More... | |
| const word & | codeName () const |
| Name of the dynamically generated CodedType. More... | |
| string | description () const |
| Return a description (type + name) for the output. More... | |
| word | codeTemplateC (const word &baseTypeName) const |
| word | codeTemplateH (const word &baseTypeName) const |
| bool | updateLibrary (const dictionary &dict) const |
| Update library from given updated dictionary as required. More... | |
| void | read (const dictionary &dict) |
| Read the dictionary and update the code. More... | |
| void | write (Ostream &os) const |
| Write the code for restart. More... | |
| void | operator= (const codedBase &)=delete |
| Disallow default bitwise assignment. More... | |
Additional Inherited Members | |
Public Types inherited from Function1< Type > | |
| typedef Type | returnType |
Static Public Member Functions inherited from Function1< Type > | |
| static autoPtr< Function1< Type > > | New (const word &name, const Function1s::unitConversions &units, const dictionary &dict) |
| Select from dictionary. More... | |
| static autoPtr< Function1< Type > > | New (const word &name, const unitConversion &xUnits, const unitConversion &valueUnits, const dictionary &dict) |
| Select from dictionary. More... | |
| static autoPtr< Function1< Type > > | New (const word &name, const Function1s::unitConversions &units, const word &Function1Type, Istream &is) |
| Select from Istream. More... | |
| static autoPtr< Function1< Type > > | New (const word &name, const unitConversion &xUnits, const unitConversion &valueUnits, const word &Function1Type, Istream &is) |
| Select from Istream. More... | |
Protected Member Functions inherited from refCount | |
| refCount () | |
| Construct null initialising count to 0. More... | |
| refCount (const refCount &)=delete | |
| Disallow copy. More... | |
Protected Attributes inherited from Function1< Type > | |
| const word | name_ |
| Name of entry. More... | |
Constructs a dynamically compiled Function1.
inlet
{
type uniformFixedValue;
uniformValue coded;
name pulse;
codeInclude
#{
#include "mathematicalConstants.H"
#};
code
#{
return vector
(
0.5*(1 - cos(constant::mathematical::twoPi*min(x/0.3, 1))),
0,
0
);
#};
}
Definition at line 84 of file CodedFunction1.H.
| Coded | ( | const word & | name, |
| const Function1s::unitConversions & | units, | ||
| const dictionary & | dict | ||
| ) |
Construct from name and dictionary.
Definition at line 88 of file CodedFunction1.C.
References codedBase::codeName(), dict, Function1< Type >::New(), Foam::unitAny, and codedBase::updateLibrary().

Copy constructor.
Definition at line 110 of file CodedFunction1.C.
|
virtual |
Destructor.
Definition at line 129 of file CodedFunction1.C.
| TypeName | ( | "coded" | ) |
|
virtual |
Construct and return a clone.
Implements Function1< Type >.
Definition at line 120 of file CodedFunction1.C.
|
inlinevirtual |
Return value as a function of a scalar.
Implements Function1< Type >.
Definition at line 31 of file CodedFunction1I.H.
References x.
|
virtual |
Return value as a function of a scalar field.
Implements Function1< Type >.
Definition at line 136 of file CodedFunction1.C.
References x.
|
inlinevirtual |
Integrate between two scalars.
Implements Function1< Type >.
Definition at line 153 of file CodedFunction1.C.
References NotImplemented.
|
virtual |
Integrate between two scalar fields.
Implements Function1< Type >.
Definition at line 165 of file CodedFunction1.C.
References NotImplemented.
|
virtual |
Write data to dictionary stream.
Implements Function1< Type >.
Definition at line 177 of file CodedFunction1.C.
References codedBase::write().
