Rename DataEntry -> Function1
Function1 is an abstract base-class of run-time selectable unary functions which may be composed of other Function1's allowing the user to specify complex functions of a single scalar variable, e.g. time. The implementations need not be a simple or continuous functions; interpolated tables and polynomials are also supported. In fact form of mapping between a single scalar input and a single primitive type output is supportable. The primary application of Function1 is in time-varying boundary conditions, it also used for other functions of time, e.g. injected mass is spray simulations but is not limited to functions of time.
This commit is contained in:
@ -57,7 +57,7 @@ Foam::solidBodyMotionFunctions::rotatingMotion::rotatingMotion
|
||||
solidBodyMotionFunction(SBMFCoeffs, runTime),
|
||||
origin_(SBMFCoeffs_.lookup("origin")),
|
||||
axis_(SBMFCoeffs_.lookup("axis")),
|
||||
omega_(DataEntry<scalar>::New("omega", SBMFCoeffs_))
|
||||
omega_(Function1<scalar>::New("omega", SBMFCoeffs_))
|
||||
{}
|
||||
|
||||
|
||||
@ -95,7 +95,7 @@ bool Foam::solidBodyMotionFunctions::rotatingMotion::read
|
||||
|
||||
omega_.reset
|
||||
(
|
||||
DataEntry<scalar>::New("omega", SBMFCoeffs_).ptr()
|
||||
Function1<scalar>::New("omega", SBMFCoeffs_).ptr()
|
||||
);
|
||||
|
||||
return true;
|
||||
|
||||
@ -41,7 +41,7 @@ SourceFiles
|
||||
#include "solidBodyMotionFunction.H"
|
||||
#include "primitiveFields.H"
|
||||
#include "point.H"
|
||||
#include "DataEntry.H"
|
||||
#include "Function1.H"
|
||||
#include "autoPtr.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -68,7 +68,7 @@ class rotatingMotion
|
||||
const vector axis_;
|
||||
|
||||
//- Angular velocty (rad/sec)
|
||||
autoPtr<DataEntry<scalar>> omega_;
|
||||
autoPtr<Function1<scalar>> omega_;
|
||||
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
Reference in New Issue
Block a user