Run-time selectable general function of one variable. More...
Public Types | |
typedef Type | returnType |
Public Member Functions | |
TypeName ("Function1") declareRunTimeSelectionTable(autoPtr | |
Runtime type information. More... | |
Function1 (const word &name) | |
Construct from name. More... | |
Function1 (const Function1< Type > &f1) | |
Copy constructor. More... | |
virtual tmp< Function1< Type > > | clone () const =0 |
Construct and return a clone. More... | |
virtual | ~Function1 () |
Destructor. More... | |
const word & | name () const |
Return the name of the entry. More... | |
virtual Type | value (const scalar x) const =0 |
Return value as a function of scalar x. More... | |
virtual tmp< Field< Type > > | value (const scalarField &x) const =0 |
Return value as a function of a scalar field x. More... | |
virtual Type | integral (const scalar x1, const scalar x2) const =0 |
Integrate between two scalars. More... | |
virtual tmp< Field< Type > > | integral (const scalarField &x1, const scalarField &x2) const =0 |
Integrate between two scalar fields. More... | |
virtual void | write (Ostream &os) const =0 |
Write data to dictionary stream. 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... | |
Static Public Member Functions | |
static autoPtr< Function1< Type > > | New (const word &name, const dictionary &dict) |
Selector. More... | |
Public Attributes | |
Function1 | |
dictionary | |
const word & | name |
const word const dictionary & | dict |
const word const dictionary | name |
const word const dictionary | dict |
Protected Attributes | |
const word | name_ |
Name of entry. More... | |
Friends | |
Ostream & | operator (Ostream &os, const Function1< Type > &func) |
Ostream Operator. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from refCount | |
refCount () | |
Construct null initialising count to 0. More... | |
Run-time selectable general function of one variable.
with many options provided from simple constant values to complex functions, interpolated tabulated data etc. etc.
Definition at line 52 of file Function1.H.
typedef Type returnType |
Definition at line 75 of file Function1.H.
|
virtual |
Destructor.
Definition at line 70 of file Function1.C.
TypeName | ( | "Function1< Type >" | ) |
Runtime type information.
Declare runtime constructor selection table
Construct and return a clone.
Implemented in FieldFunction1< Type, Function1Type >, FieldFunction1< scalar, NonUniformTable< scalar > >, FieldFunction1< Type, Constant< Type > >, FieldFunction1< Type, Scale< Type > >, FieldFunction1< scalar, NSRDS2 >, FieldFunction1< scalar, NSRDS3 >, FieldFunction1< Type, UniformTable< Type > >, FieldFunction1< scalar, quarterCosineRamp >, FieldFunction1< scalar, NSRDS0 >, FieldFunction1< Type, NonUniformTable< Type > >, FieldFunction1< Type, Table< Type > >, FieldFunction1< scalar, Function1Type >, FieldFunction1< Type, None< Type > >, FieldFunction1< scalar, NSRDS1 >, FieldFunction1< Type, OneConstant< Type > >, FieldFunction1< scalar, halfCosineRamp >, FieldFunction1< scalar, Table< scalar > >, FieldFunction1< Type, Square< Type > >, FieldFunction1< scalar, quarterSineRamp >, FieldFunction1< Type, Polynomial< Type > >, FieldFunction1< scalar, linearRamp >, FieldFunction1< scalar, squarePulse >, FieldFunction1< scalar, reverseRamp >, FieldFunction1< scalar, NSRDS6 >, FieldFunction1< Type, ZeroConstant< Type > >, FieldFunction1< scalar, NSRDS7 >, FieldFunction1< scalar, NSRDS14 >, FieldFunction1< scalar, NSRDS4 >, FieldFunction1< scalar, quadraticRamp >, FieldFunction1< scalar, NSRDS5 >, FieldFunction1< Type, Sine< Type > >, Coded< Type >, NSRDS0, NSRDS6, NSRDS1, NSRDS14, NSRDS4, NSRDS7, NSRDS2, NSRDS3, NSRDS5, and Constant< Type >.
|
static |
Selector.
Definition at line 32 of file Function1New.C.
Referenced by CrankNicolsonDdtScheme< Type >::CrankNicolsonDdtScheme(), externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField(), fanPressureJumpFvPatchScalarField::fanPressureJumpFvPatchScalarField(), strainRateFunction::read(), setTimeStepFunctionObject::read(), setWriteIntervalFunctionObject::read(), axialAngularSpring::read(), sixDoFMotion::read(), externalForce::read(), damping::readCoeffs(), temperatureDependent::readDict(), rigidBodyMeshMotion::rigidBodyMeshMotion(), and rigidBodyMeshMotionSolver::rigidBodyMeshMotionSolver().
const word& name | ( | ) | const |
Return the name of the entry.
Referenced by FieldFunction1< Type, Sine< Type > >::~FieldFunction1().
|
pure virtual |
Return value as a function of scalar x.
Implemented in Scale< Type >, Table< Type >, Table< scalar >, FieldFunction1< Type, Function1Type >, FieldFunction1< scalar, NonUniformTable< scalar > >, FieldFunction1< Type, Constant< Type > >, FieldFunction1< Type, Scale< Type > >, FieldFunction1< scalar, NSRDS2 >, FieldFunction1< scalar, NSRDS3 >, FieldFunction1< Type, UniformTable< Type > >, FieldFunction1< scalar, quarterCosineRamp >, FieldFunction1< scalar, NSRDS0 >, FieldFunction1< Type, NonUniformTable< Type > >, FieldFunction1< Type, Table< Type > >, FieldFunction1< scalar, Function1Type >, FieldFunction1< Type, None< Type > >, FieldFunction1< scalar, NSRDS1 >, FieldFunction1< Type, OneConstant< Type > >, FieldFunction1< scalar, halfCosineRamp >, FieldFunction1< scalar, Table< scalar > >, FieldFunction1< Type, Square< Type > >, FieldFunction1< scalar, quarterSineRamp >, FieldFunction1< Type, Polynomial< Type > >, FieldFunction1< scalar, linearRamp >, FieldFunction1< scalar, squarePulse >, FieldFunction1< scalar, reverseRamp >, FieldFunction1< scalar, NSRDS6 >, FieldFunction1< Type, ZeroConstant< Type > >, FieldFunction1< scalar, NSRDS7 >, FieldFunction1< scalar, NSRDS14 >, FieldFunction1< scalar, NSRDS4 >, FieldFunction1< scalar, quadraticRamp >, FieldFunction1< scalar, NSRDS5 >, FieldFunction1< Type, Sine< Type > >, Square< Type >, Sine< Type >, Ramp< Function1Type >, Ramp< reverseRamp >, Ramp< quarterSineRamp >, Ramp< halfCosineRamp >, Ramp< quarterCosineRamp >, Ramp< quadraticRamp >, Ramp< linearRamp >, squarePulse, Coded< Type >, NonUniformTable< Type >, NonUniformTable< scalar >, UniformTable< Type >, reverseRamp, NSRDS0, NSRDS6, NSRDS1, NSRDS14, NSRDS4, NSRDS7, NSRDS2, NSRDS3, NSRDS5, Polynomial< Type >, Constant< Type >, OneConstant< Type >, halfCosineRamp, linearRamp, quadraticRamp, quarterCosineRamp, quarterSineRamp, ZeroConstant< Type >, and None< Type >.
Referenced by liquid::B(), function1Viscosity::correct(), waxSolventEvaporation::correctModel(), liquid::Cp(), liquid::Cpg(), liquid::D(), Foam::evaluate(), flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField(), flowRateOutletVelocityFvPatchVectorField::flowRateOutletVelocityFvPatchVectorField(), liquid::Ha(), liquid::hl(), liquid::kappa(), liquid::kappag(), liquid::mu(), liquid::mug(), radial::operator()(), liquid::pv(), liquid::rho(), liquid::sigma(), kinematicSingleLayer::sigma(), rigidBodyMeshMotionSolver::solve(), rigidBodyMeshMotion::solve(), temperatureDependentContactAngleForce::theta(), perturbedTemperatureDependentContactAngleForce::theta(), waveSuperposition::UGas(), waveSuperposition::ULiquid(), inclinedFilmNusseltHeightFvPatchScalarField::updateCoeffs(), inclinedFilmNusseltInletVelocityFvPatchVectorField::updateCoeffs(), translatingWallVelocityFvPatchVectorField::updateCoeffs(), surfaceNormalUniformFixedValueFvPatchVectorField::updateCoeffs(), outletPhaseMeanVelocityFvPatchVectorField::updateCoeffs(), variableHeightFlowRateInletVelocityFvPatchVectorField::updateCoeffs(), pressureInletOutletVelocityFvPatchVectorField::updateCoeffs(), swirlInletVelocityFvPatchVectorField::updateCoeffs(), cylindricalInletVelocityFvPatchVectorField::updateCoeffs(), rotatingTotalPressureFvPatchScalarField::updateCoeffs(), rotatingWallVelocityFvPatchVectorField::updateCoeffs(), waveDisplacementPointPatchVectorField::updateCoeffs(), and swirlFlowRateInletVelocityFvPatchVectorField::updateCoeffs().
|
pure virtual |
Return value as a function of a scalar field x.
Implemented in FieldFunction1< Type, Function1Type >, FieldFunction1< scalar, NonUniformTable< scalar > >, FieldFunction1< Type, Constant< Type > >, FieldFunction1< Type, Scale< Type > >, FieldFunction1< scalar, NSRDS2 >, FieldFunction1< scalar, NSRDS3 >, FieldFunction1< Type, UniformTable< Type > >, FieldFunction1< scalar, quarterCosineRamp >, FieldFunction1< scalar, NSRDS0 >, FieldFunction1< Type, NonUniformTable< Type > >, FieldFunction1< Type, Table< Type > >, FieldFunction1< scalar, Function1Type >, FieldFunction1< Type, None< Type > >, FieldFunction1< scalar, NSRDS1 >, FieldFunction1< Type, OneConstant< Type > >, FieldFunction1< scalar, halfCosineRamp >, FieldFunction1< scalar, Table< scalar > >, FieldFunction1< Type, Square< Type > >, FieldFunction1< scalar, quarterSineRamp >, FieldFunction1< Type, Polynomial< Type > >, FieldFunction1< scalar, linearRamp >, FieldFunction1< scalar, squarePulse >, FieldFunction1< scalar, reverseRamp >, FieldFunction1< scalar, NSRDS6 >, FieldFunction1< Type, ZeroConstant< Type > >, FieldFunction1< scalar, NSRDS7 >, FieldFunction1< scalar, NSRDS14 >, FieldFunction1< scalar, NSRDS4 >, FieldFunction1< scalar, quadraticRamp >, FieldFunction1< scalar, NSRDS5 >, FieldFunction1< Type, Sine< Type > >, and Coded< Type >.
|
pure virtual |
Integrate between two scalars.
Implemented in Scale< Type >, Table< Type >, Table< scalar >, FieldFunction1< Type, Function1Type >, FieldFunction1< scalar, NonUniformTable< scalar > >, FieldFunction1< Type, Constant< Type > >, FieldFunction1< Type, Scale< Type > >, FieldFunction1< scalar, NSRDS2 >, FieldFunction1< scalar, NSRDS3 >, FieldFunction1< Type, UniformTable< Type > >, FieldFunction1< scalar, quarterCosineRamp >, FieldFunction1< scalar, NSRDS0 >, FieldFunction1< Type, NonUniformTable< Type > >, FieldFunction1< Type, Table< Type > >, FieldFunction1< scalar, Function1Type >, FieldFunction1< Type, None< Type > >, FieldFunction1< scalar, NSRDS1 >, FieldFunction1< Type, OneConstant< Type > >, FieldFunction1< scalar, halfCosineRamp >, FieldFunction1< scalar, Table< scalar > >, FieldFunction1< Type, Square< Type > >, FieldFunction1< scalar, quarterSineRamp >, FieldFunction1< Type, Polynomial< Type > >, FieldFunction1< scalar, linearRamp >, FieldFunction1< scalar, squarePulse >, FieldFunction1< scalar, reverseRamp >, FieldFunction1< scalar, NSRDS6 >, FieldFunction1< Type, ZeroConstant< Type > >, FieldFunction1< scalar, NSRDS7 >, FieldFunction1< scalar, NSRDS14 >, FieldFunction1< scalar, NSRDS4 >, FieldFunction1< scalar, quadraticRamp >, FieldFunction1< scalar, NSRDS5 >, FieldFunction1< Type, Sine< Type > >, Square< Type >, Sine< Type >, Coded< Type >, squarePulse, NonUniformTable< Type >, NonUniformTable< scalar >, NSRDS14, UniformTable< Type >, NSRDS6, NSRDS0, NSRDS1, NSRDS4, NSRDS7, reverseRamp, NSRDS2, NSRDS3, NSRDS5, Polynomial< Type >, Constant< Type >, OneConstant< Type >, halfCosineRamp, linearRamp, quadraticRamp, quarterCosineRamp, quarterSineRamp, ZeroConstant< Type >, and None< Type >.
|
pure virtual |
Integrate between two scalar fields.
Implemented in FieldFunction1< Type, Function1Type >, FieldFunction1< scalar, NonUniformTable< scalar > >, FieldFunction1< Type, Constant< Type > >, FieldFunction1< Type, Scale< Type > >, FieldFunction1< scalar, NSRDS2 >, FieldFunction1< scalar, NSRDS3 >, FieldFunction1< Type, UniformTable< Type > >, FieldFunction1< scalar, quarterCosineRamp >, FieldFunction1< scalar, NSRDS0 >, FieldFunction1< Type, NonUniformTable< Type > >, FieldFunction1< Type, Table< Type > >, FieldFunction1< scalar, Function1Type >, FieldFunction1< Type, None< Type > >, FieldFunction1< scalar, NSRDS1 >, FieldFunction1< Type, OneConstant< Type > >, FieldFunction1< scalar, halfCosineRamp >, FieldFunction1< scalar, Table< scalar > >, FieldFunction1< Type, Square< Type > >, FieldFunction1< scalar, quarterSineRamp >, FieldFunction1< Type, Polynomial< Type > >, FieldFunction1< scalar, linearRamp >, FieldFunction1< scalar, squarePulse >, FieldFunction1< scalar, reverseRamp >, FieldFunction1< scalar, NSRDS6 >, FieldFunction1< Type, ZeroConstant< Type > >, FieldFunction1< scalar, NSRDS7 >, FieldFunction1< scalar, NSRDS14 >, FieldFunction1< scalar, NSRDS4 >, FieldFunction1< scalar, quadraticRamp >, FieldFunction1< scalar, NSRDS5 >, FieldFunction1< Type, Sine< Type > >, and Coded< Type >.
|
pure virtual |
Write data to dictionary stream.
Implemented in Scale< Type >, Table< Type >, Table< scalar >, Square< Type >, Sine< Type >, Ramp< Function1Type >, Ramp< reverseRamp >, Ramp< quarterSineRamp >, Ramp< halfCosineRamp >, Ramp< quarterCosineRamp >, Ramp< quadraticRamp >, Ramp< linearRamp >, Coded< Type >, squarePulse, NonUniformTable< Type >, NonUniformTable< scalar >, NSRDS14, UniformTable< Type >, reverseRamp, NSRDS6, NSRDS0, NSRDS1, NSRDS4, NSRDS7, NSRDS2, NSRDS3, NSRDS5, Polynomial< Type >, integratedNonUniformTable, Constant< Type >, OneConstant< Type >, ZeroConstant< Type >, and None< Type >.
Referenced by liquid::write(), and Foam::writeEntry().
Assignment.
Definition at line 129 of file Function1.C.
|
protected |
Name of entry.
Definition at line 70 of file Function1.H.
Definition at line 84 of file Function1.H.
Definition at line 84 of file Function1.H.
const Foam::word & name |
Definition at line 84 of file Function1.H.
Referenced by Foam::evaluate(), and Foam::writeEntry().
const word const dictionary& dict |
Definition at line 84 of file Function1.H.
const word const dictionary name |
Definition at line 84 of file Function1.H.
const word const dictionary dict |
Definition at line 84 of file Function1.H.