Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a certain type, e.g. constant or table, and provide functions to return the (interpolated) value, and integral between limits. More...
Public Types | |
typedef Type | returnType |
Public Member Functions | |
TypeName ("Function1") declareRunTimeSelectionTable(autoPtr | |
Runtime type information. More... | |
Function1 (const word &entryName) | |
Construct from entry 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) independent variable. More... | |
virtual tmp< Field< Type > > | value (const scalarField &x) const =0 |
Return value as a function of (scalar) independent variable. More... | |
virtual Type | integrate (const scalar x1, const scalar x2) const =0 |
Integrate between two (scalar) values. More... | |
virtual tmp< Field< Type > > | integrate (const scalarField &x1, const scalarField &x2) const =0 |
Integrate between two (scalar) values. More... | |
virtual void | writeData (Ostream &os) const |
Write in dictionary format. More... | |
void | operator= (const Function1< Type > &)=delete |
Disallow default bitwise assignment. More... | |
![]() | |
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 &entryName, const dictionary &dict) |
Selector. More... | |
Public Attributes | |
Function1 | |
dictionary | |
const word & | entryName |
const word const dictionary & | dict |
const word const dictionary | entryName |
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 | |
![]() | |
refCount () | |
Construct null initializing count to 0. More... | |
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a certain type, e.g. constant or table, and provide functions to return the (interpolated) value, and integral between limits.
Definition at line 52 of file Function1.H.
typedef Type returnType |
Definition at line 75 of file Function1.H.
|
virtual |
Destructor.
Definition at line 79 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< Type, Constant< Type > >, FieldFunction1< Type, Scale< Type > >, FieldFunction1< scalar, quarterCosineRamp >, FieldFunction1< Type, Table< Type > >, FieldFunction1< scalar, Function1Type >, FieldFunction1< Type, OneConstant< Type > >, FieldFunction1< scalar, halfCosineRamp >, FieldFunction1< scalar, Table< scalar > >, FieldFunction1< Type, Square< Type > >, FieldFunction1< scalar, quarterSineRamp >, FieldFunction1< Type, Polynomial< Type > >, FieldFunction1< Type, TableFile< Type > >, FieldFunction1< scalar, linearRamp >, FieldFunction1< scalar, reverseRamp >, FieldFunction1< scalar, TableFile< scalar > >, FieldFunction1< Type, ZeroConstant< Type > >, FieldFunction1< scalar, quadraticRamp >, FieldFunction1< Type, Sine< Type > >, Coded< Type >, 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(), damping::read(), externalForce::read(), accelerationSource::read(), temperatureDependent::readDict(), rigidBodyMeshMotion::rigidBodyMeshMotion(), and rigidBodyMeshMotionSolver::rigidBodyMeshMotionSolver().
const Foam::word & name | ( | ) | const |
Return the name of the entry.
Definition at line 91 of file Function1.C.
Referenced by Sine< Type >::writeData(), Square< Type >::writeData(), and Scale< Type >::writeData().
|
pure virtual |
Return value as a function of (scalar) independent variable.
Implemented in Scale< Type >, FieldFunction1< Type, Function1Type >, FieldFunction1< Type, Constant< Type > >, FieldFunction1< Type, Scale< Type > >, FieldFunction1< scalar, quarterCosineRamp >, FieldFunction1< Type, Table< Type > >, FieldFunction1< scalar, Function1Type >, FieldFunction1< Type, OneConstant< Type > >, FieldFunction1< scalar, halfCosineRamp >, FieldFunction1< scalar, Table< scalar > >, FieldFunction1< Type, Square< Type > >, FieldFunction1< scalar, quarterSineRamp >, FieldFunction1< Type, Polynomial< Type > >, FieldFunction1< Type, TableFile< Type > >, FieldFunction1< scalar, linearRamp >, FieldFunction1< scalar, reverseRamp >, FieldFunction1< scalar, TableFile< scalar > >, FieldFunction1< Type, ZeroConstant< Type > >, FieldFunction1< scalar, quadraticRamp >, FieldFunction1< Type, Sine< Type > >, Square< Type >, Sine< Type >, Ramp< Function1Type >, Ramp< reverseRamp >, Ramp< quarterSineRamp >, Ramp< halfCosineRamp >, Ramp< quarterCosineRamp >, Ramp< quadraticRamp >, Ramp< linearRamp >, Coded< Type >, TableBase< Type, Function1Type >, TableBase< Type, Table< Type > >, TableBase< scalar, Table< scalar > >, TableBase< Type, TableFile< Type > >, TableBase< scalar, TableFile< scalar > >, reverseRamp, Polynomial< Type >, Constant< Type >, OneConstant< Type >, halfCosineRamp, linearRamp, quadraticRamp, quarterCosineRamp, quarterSineRamp, and ZeroConstant< Type >.
Referenced by function1Viscosity::correct(), waxSolventEvaporation::correctModel(), flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField(), flowRateOutletVelocityFvPatchVectorField::flowRateOutletVelocityFvPatchVectorField(), radial::operator()(), rigidBodyMeshMotionSolver::solve(), rigidBodyMeshMotion::solve(), temperatureDependentContactAngleForce::theta(), perturbedTemperatureDependentContactAngleForce::theta(), waveSuperposition::UGas(), waveSuperposition::ULiquid(), inclinedFilmNusseltHeightFvPatchScalarField::updateCoeffs(), inclinedFilmNusseltInletVelocityFvPatchVectorField::updateCoeffs(), translatingWallVelocityFvPatchVectorField::updateCoeffs(), surfaceNormalUniformFixedValueFvPatchVectorField::updateCoeffs(), outletPhaseMeanVelocityFvPatchVectorField::updateCoeffs(), pressureInletOutletVelocityFvPatchVectorField::updateCoeffs(), swirlInletVelocityFvPatchVectorField::updateCoeffs(), cylindricalInletVelocityFvPatchVectorField::updateCoeffs(), rotatingTotalPressureFvPatchScalarField::updateCoeffs(), rotatingWallVelocityFvPatchVectorField::updateCoeffs(), swirlFlowRateInletVelocityFvPatchVectorField::updateCoeffs(), and waveDisplacementPointPatchVectorField::updateCoeffs().
|
pure virtual |
Return value as a function of (scalar) independent variable.
Implemented in FieldFunction1< Type, Function1Type >, FieldFunction1< Type, Constant< Type > >, FieldFunction1< Type, Scale< Type > >, FieldFunction1< scalar, quarterCosineRamp >, FieldFunction1< Type, Table< Type > >, FieldFunction1< scalar, Function1Type >, FieldFunction1< Type, OneConstant< Type > >, FieldFunction1< scalar, halfCosineRamp >, FieldFunction1< scalar, Table< scalar > >, FieldFunction1< Type, Square< Type > >, FieldFunction1< scalar, quarterSineRamp >, FieldFunction1< Type, Polynomial< Type > >, FieldFunction1< Type, TableFile< Type > >, FieldFunction1< scalar, linearRamp >, FieldFunction1< scalar, reverseRamp >, FieldFunction1< scalar, TableFile< scalar > >, FieldFunction1< Type, ZeroConstant< Type > >, FieldFunction1< scalar, quadraticRamp >, FieldFunction1< Type, Sine< Type > >, and Coded< Type >.
|
pure virtual |
Integrate between two (scalar) values.
Implemented in Scale< Type >, FieldFunction1< Type, Function1Type >, FieldFunction1< Type, Constant< Type > >, FieldFunction1< Type, Scale< Type > >, FieldFunction1< scalar, quarterCosineRamp >, FieldFunction1< Type, Table< Type > >, FieldFunction1< scalar, Function1Type >, FieldFunction1< Type, OneConstant< Type > >, FieldFunction1< scalar, halfCosineRamp >, FieldFunction1< scalar, Table< scalar > >, FieldFunction1< Type, Square< Type > >, FieldFunction1< scalar, quarterSineRamp >, FieldFunction1< Type, Polynomial< Type > >, FieldFunction1< Type, TableFile< Type > >, FieldFunction1< scalar, linearRamp >, FieldFunction1< scalar, reverseRamp >, FieldFunction1< scalar, TableFile< scalar > >, FieldFunction1< Type, ZeroConstant< Type > >, FieldFunction1< scalar, quadraticRamp >, FieldFunction1< Type, Sine< Type > >, Square< Type >, Sine< Type >, Coded< Type >, TableBase< Type, Function1Type >, TableBase< Type, Table< Type > >, TableBase< scalar, Table< scalar > >, TableBase< Type, TableFile< Type > >, TableBase< scalar, TableFile< scalar > >, reverseRamp, Polynomial< Type >, Constant< Type >, OneConstant< Type >, halfCosineRamp, linearRamp, quadraticRamp, quarterCosineRamp, quarterSineRamp, and ZeroConstant< Type >.
|
pure virtual |
Integrate between two (scalar) values.
Implemented in FieldFunction1< Type, Function1Type >, FieldFunction1< Type, Constant< Type > >, FieldFunction1< Type, Scale< Type > >, FieldFunction1< scalar, quarterCosineRamp >, FieldFunction1< Type, Table< Type > >, FieldFunction1< scalar, Function1Type >, FieldFunction1< Type, OneConstant< Type > >, FieldFunction1< scalar, halfCosineRamp >, FieldFunction1< scalar, Table< scalar > >, FieldFunction1< Type, Square< Type > >, FieldFunction1< scalar, quarterSineRamp >, FieldFunction1< Type, Polynomial< Type > >, FieldFunction1< Type, TableFile< Type > >, FieldFunction1< scalar, linearRamp >, FieldFunction1< scalar, reverseRamp >, FieldFunction1< scalar, TableFile< scalar > >, FieldFunction1< Type, ZeroConstant< Type > >, FieldFunction1< scalar, quadraticRamp >, FieldFunction1< Type, Sine< Type > >, and Coded< Type >.
|
virtual |
Write in dictionary format.
Reimplemented in Scale< Type >, Square< Type >, Sine< Type >, Coded< Type >, Ramp< Function1Type >, Ramp< reverseRamp >, Ramp< quarterSineRamp >, Ramp< halfCosineRamp >, Ramp< quarterCosineRamp >, Ramp< quadraticRamp >, Ramp< linearRamp >, TableBase< Type, Function1Type >, TableBase< Type, Table< Type > >, TableBase< scalar, Table< scalar > >, TableBase< Type, TableFile< Type > >, TableBase< scalar, TableFile< scalar > >, reverseRamp, Polynomial< Type >, Constant< Type >, OneConstant< Type >, and ZeroConstant< Type >.
Definition at line 98 of file Function1.C.
Referenced by OneConstant< Type >::writeData(), Constant< Type >::writeData(), Polynomial< Type >::writeData(), Coded< Type >::writeData(), Sine< Type >::writeData(), Square< Type >::writeData(), Scale< Type >::writeData(), and Foam::writeEntry().
|
protected |
Name of entry.
Definition at line 70 of file Function1.H.
Referenced by Function1< sphericalTensor >::name(), and Function1< sphericalTensor >::writeData().
Definition at line 84 of file Function1.H.
Definition at line 84 of file Function1.H.
const word& entryName |
Definition at line 84 of file Function1.H.
const word const dictionary& dict |
Definition at line 84 of file Function1.H.
const word const dictionary entryName |
Definition at line 84 of file Function1.H.
const word const dictionary dict |
Definition at line 84 of file Function1.H.