Wrapper around Function1 that constructs a function for an as yet unknown primitive type. It stores the location of the user input and actually constructs the function on demand at the point at which a value is requested for a specific type. More...
Public Member Functions | |
| unknownTypeFunction1 (const word &name, const unitConversion &xUnits, const dictionary &dict) | |
| Construct from a name and a dictionary. More... | |
| unknownTypeFunction1 (const unknownTypeFunction1 &)=delete | |
| Disallow default bitwise copy construction. More... | |
| ~unknownTypeFunction1 () | |
| Destructor. More... | |
| template<class Type > | |
| void | setValueUnits (const unitConversion &) const |
| Set the value units. More... | |
| template<class Type > | |
| Type | value (const scalar x) const |
| Return value as a function of scalar x. More... | |
| template<class Type > | |
| tmp< Field< Type > > | value (const scalarField &x) const |
| Return value as a function of scalarField x. More... | |
| template<class Type > | |
| Type | integral (const scalar x1, const scalar x2) const |
| Integrate between two scalars. More... | |
| template<class Type > | |
| tmp< Field< Type > > | integral (const scalarField &x1, const scalarField &x2) const |
| Integrate between two scalar fields. More... | |
| void | operator= (const unknownTypeFunction1 &)=delete |
| Disallow default bitwise assignment. More... | |
| template<class Type > | |
| Foam::tmp< Foam::Field< Type > > | value (const scalarField &x) const |
| template<class Type > | |
| Foam::tmp< Foam::Field< Type > > | integral (const scalarField &x1, const scalarField &x2) const |
Wrapper around Function1 that constructs a function for an as yet unknown primitive type. It stores the location of the user input and actually constructs the function on demand at the point at which a value is requested for a specific type.
Definition at line 54 of file unknownTypeFunction1.H.
| unknownTypeFunction1 | ( | const word & | name, |
| const unitConversion & | xUnits, | ||
| const dictionary & | dict | ||
| ) |
Construct from a name and a dictionary.
Definition at line 30 of file unknownTypeFunction1.C.
|
delete |
Disallow default bitwise copy construction.
| ~unknownTypeFunction1 | ( | ) |
Destructor.
Definition at line 46 of file unknownTypeFunction1.C.
| void setValueUnits | ( | const unitConversion & | valueUnits | ) | const |
Set the value units.
Definition at line 52 of file unknownTypeFunction1Templates.C.
| Type value | ( | const scalar | x | ) | const |
Return value as a function of scalar x.
Definition at line 62 of file unknownTypeFunction1Templates.C.
References Foam::unitAny, and x.
| tmp<Field<Type> > value | ( | const scalarField & | x | ) | const |
Return value as a function of scalarField x.
| Type integral | ( | const scalar | x1, |
| const scalar | x2 | ||
| ) | const |
Integrate between two scalars.
Definition at line 86 of file unknownTypeFunction1Templates.C.
References Foam::unitAny.
| tmp<Field<Type> > integral | ( | const scalarField & | x1, |
| const scalarField & | x2 | ||
| ) | const |
Integrate between two scalar fields.
|
delete |
Disallow default bitwise assignment.
| Foam::tmp<Foam::Field<Type> > value | ( | const scalarField & | x | ) | const |
Definition at line 74 of file unknownTypeFunction1Templates.C.
References Foam::unitAny, and x.
| Foam::tmp<Foam::Field<Type> > integral | ( | const scalarField & | x1, |
| const scalarField & | x2 | ||
| ) | const |
Definition at line 99 of file unknownTypeFunction1Templates.C.
References Foam::unitAny.