Light wrapper around Function1 to provide a mechanism to update time-based entries. More...


Public Member Functions | |
| TimeFunction1 (const Time &time, const word &name, const dictionary &dict) | |
| Construct from time, name and dictionary. More... | |
| TimeFunction1 (const Time &time, const word &name) | |
| Construct null from time and name. More... | |
| TimeFunction1 (const TimeFunction1< Type > &tde) | |
| Copy constructor. More... | |
| virtual | ~TimeFunction1 () |
| Destructor. More... | |
| void | reset (const dictionary &dict) |
| Reset entry by re-reading from dictionary. More... | |
| virtual Type | value (const scalar x) const |
| Return value as a function of scalar x. More... | |
| virtual Type | integral (const scalar x1, const scalar x2) const |
| Integrate between two scalars. More... | |
| virtual void | write (Ostream &os) const |
| Write in dictionary format. More... | |
Protected Attributes | |
| const Time & | time_ |
| Reference to the time database. More... | |
| const word | name_ |
| Name of the data entry. More... | |
| autoPtr< Function1< Type > > | function_ |
| The function. More... | |
Friends | |
| Ostream & | operator (Ostream &os, const TimeFunction1< Type > &de) |
| Ostream Operator. More... | |
Light wrapper around Function1 to provide a mechanism to update time-based entries.
Definition at line 57 of file PatchInjection.H.
| TimeFunction1 | ( | const Time & | time, |
| const word & | name, | ||
| const dictionary & | dict | ||
| ) |
Construct from time, name and dictionary.
Definition at line 32 of file TimeFunction1.C.
Referenced by TimeFunction1< Foam::Vector >::TimeFunction1().

| TimeFunction1 | ( | const Time & | time, |
| const word & | name | ||
| ) |
Construct null from time and name.
Definition at line 46 of file TimeFunction1.C.
| TimeFunction1 | ( | const TimeFunction1< Type > & | tde | ) |
Copy constructor.
Definition at line 59 of file TimeFunction1.C.
|
virtual |
Destructor.
Definition at line 72 of file TimeFunction1.C.
| void reset | ( | const dictionary & | dict | ) |
Reset entry by re-reading from dictionary.
Definition at line 79 of file TimeFunction1.C.
Referenced by InjectionModel< CloudType >::InjectionModel().

|
virtual |
Return value as a function of scalar x.
Definition at line 86 of file TimeFunction1.C.
Referenced by InjectionModel< CloudType >::InjectionModel(), and InjectionModel< CloudType >::injectSteadyState().

|
virtual |
Integrate between two scalars.
Definition at line 94 of file TimeFunction1.C.
Referenced by TimeFunction1< Foam::Vector >::value().

|
virtual |
Write in dictionary format.
Definition at line 110 of file TimeFunction1.C.
|
friend |
Ostream Operator.
|
protected |
Reference to the time database.
Definition at line 67 of file TimeFunction1.H.
|
protected |
Name of the data entry.
Definition at line 70 of file TimeFunction1.H.
The function.
Definition at line 73 of file TimeFunction1.H.
Referenced by TimeFunction1< Foam::Vector >::write().