Function1< Type > Class Template Referenceabstract

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...

Inheritance diagram for Function1< Type >:
Collaboration diagram for Function1< Type >:

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 wordname () 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...
 
- 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 &entryName, const dictionary &dict)
 Selector. More...
 

Public Attributes

 Function1
 
 dictionary
 
const wordentryName
 
const word const dictionarydict
 
const word const dictionary entryName
 
const word const dictionary dict
 

Protected Attributes

const word name_
 Name of entry. More...
 

Friends

Ostreamoperator (Ostream &os, const Function1< Type > &func)
 Ostream Operator. More...
 

Additional Inherited Members

- Protected Member Functions inherited from refCount
 refCount ()
 Construct null initializing count to 0. More...
 

Detailed Description

template<class Type>
class Foam::Function1< Type >

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.

Source files

Definition at line 52 of file Function1.H.

Member Typedef Documentation

◆ returnType

typedef Type returnType

Definition at line 75 of file Function1.H.

Constructor & Destructor Documentation

◆ Function1() [1/2]

Function1 ( const word entryName)

Construct from entry name.

◆ Function1() [2/2]

Function1 ( const Function1< Type > &  f1)

Copy constructor.

◆ ~Function1()

~Function1 ( )
virtual

Destructor.

Definition at line 79 of file Function1.C.

Member Function Documentation

◆ TypeName()

TypeName ( "Function1< Type >"  )

Runtime type information.

Declare runtime constructor selection table

◆ clone()

◆ New()

◆ name()

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().

Here is the caller graph for this function:

◆ value() [1/2]

virtual Type value ( const scalar  x) const
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().

Here is the caller graph for this function:

◆ value() [2/2]

◆ integrate() [1/2]

◆ integrate() [2/2]

◆ writeData()

◆ operator=()

void operator= ( const Function1< Type > &  )
delete

Disallow default bitwise assignment.

Friends And Related Function Documentation

◆ operator

Ostream& operator ( Ostream os,
const Function1< Type > &  func 
)
friend

Ostream Operator.

Member Data Documentation

◆ name_

const word name_
protected

Name of entry.

Definition at line 70 of file Function1.H.

Referenced by Function1< sphericalTensor >::name(), and Function1< sphericalTensor >::writeData().

◆ Function1

Definition at line 84 of file Function1.H.

◆ dictionary

Definition at line 84 of file Function1.H.

◆ entryName [1/2]

const word& entryName

Definition at line 84 of file Function1.H.

◆ dict [1/2]

const word const dictionary& dict

Definition at line 84 of file Function1.H.

◆ entryName [2/2]

const word const dictionary entryName

Definition at line 84 of file Function1.H.

◆ dict [2/2]

const word const dictionary dict

Definition at line 84 of file Function1.H.


The documentation for this class was generated from the following files: