diff --git a/applications/test/Function1/Make/files b/applications/test/Function1/Make/files new file mode 100644 index 0000000000000000000000000000000000000000..6647a7cbbe8ec4641027fafc8480c731a3ffd1b8 --- /dev/null +++ b/applications/test/Function1/Make/files @@ -0,0 +1,3 @@ +Test-Function1.C + +EXE = $(FOAM_USER_APPBIN)/Test-Function1 diff --git a/applications/test/dataEntry/Make/options b/applications/test/Function1/Make/options similarity index 100% rename from applications/test/dataEntry/Make/options rename to applications/test/Function1/Make/options diff --git a/applications/test/dataEntry/Test-DataEntry.C b/applications/test/Function1/Test-Function1.C similarity index 82% rename from applications/test/dataEntry/Test-DataEntry.C rename to applications/test/Function1/Test-Function1.C index cde080161067e394605a875012f484a323922513..ab4baee1509f8dd10ac285939a2fb97e029f89f6 100644 --- a/applications/test/dataEntry/Test-DataEntry.C +++ b/applications/test/Function1/Test-Function1.C @@ -22,15 +22,15 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Application - testDataEntry + Test-Function1 Description - Tests DataEntry + Tests Function1 \*---------------------------------------------------------------------------*/ #include "fvCFD.H" -#include "DataEntry.H" +#include "Function1.H" #include "IOdictionary.H" #include "linearInterpolationWeights.H" #include "splineInterpolationWeights.H" @@ -54,8 +54,8 @@ int main(int argc, char *argv[]) //values[0] = 0.0; //values[1] = 1.0; - //linearInterpolationWeights interpolator - splineInterpolationWeights interpolator + linearInterpolationWeights interpolator + //splineInterpolationWeights interpolator ( samples ); @@ -98,11 +98,11 @@ int main(int argc, char *argv[]) return 1; } - IOdictionary dataEntryProperties + IOdictionary function1Properties ( IOobject ( - "dataEntryProperties", + "function1Properties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, @@ -110,19 +110,19 @@ int main(int argc, char *argv[]) ) ); - autoPtr<DataEntry<scalar>> dataEntry + autoPtr<Function1<scalar>> function1 ( - DataEntry<scalar>::New + Function1<scalar>::New ( - "dataEntry", - dataEntryProperties + "function1", + function1Properties ) ); - scalar x0 = readScalar(dataEntryProperties.lookup("x0")); - scalar x1 = readScalar(dataEntryProperties.lookup("x1")); + scalar x0 = readScalar(function1Properties.lookup("x0")); + scalar x1 = readScalar(function1Properties.lookup("x1")); - Info<< "Data entry type: " << dataEntry().type() << nl << endl; + Info<< "Data entry type: " << function1().type() << nl << endl; Info<< "Inputs" << nl << " x0 = " << x0 << nl @@ -130,12 +130,12 @@ int main(int argc, char *argv[]) << endl; Info<< "Interpolation" << nl - << " f(x0) = " << dataEntry().value(x0) << nl - << " f(x1) = " << dataEntry().value(x1) << nl + << " f(x0) = " << function1().value(x0) << nl + << " f(x1) = " << function1().value(x1) << nl << endl; Info<< "Integration" << nl - << " int(f(x)) lim(x0->x1) = " << dataEntry().integrate(x0, x1) << nl + << " int(f(x)) lim(x0->x1) = " << function1().integrate(x0, x1) << nl << endl; return 0; diff --git a/applications/test/dataEntry/dataEntryProperties b/applications/test/Function1/function1Properties similarity index 92% rename from applications/test/dataEntry/dataEntryProperties rename to applications/test/Function1/function1Properties index b2511690f4b0cb7296abecbeb8e172968405f5a1..07196014b7089250c6de6b74dc6a8c27e47ec93c 100644 --- a/applications/test/dataEntry/dataEntryProperties +++ b/applications/test/Function1/function1Properties @@ -11,7 +11,7 @@ FoamFile format ascii; class dictionary; location "constant"; - object dataEntryProperties; + object function1Properties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -19,7 +19,7 @@ x0 0.5; x1 1; -dataEntry table ((0 0)(10 1)); +function1 table ((0 0)(10 1)); // ************************************************************************* // diff --git a/applications/test/dataEntry/Make/files b/applications/test/dataEntry/Make/files deleted file mode 100644 index c514002f99e31cf9c1bad83a287c8b4e75ec16a1..0000000000000000000000000000000000000000 --- a/applications/test/dataEntry/Make/files +++ /dev/null @@ -1,3 +0,0 @@ -Test-DataEntry.C - -EXE = $(FOAM_USER_APPBIN)/Test-DataEntry diff --git a/applications/utilities/postProcessing/noise/noise.C b/applications/utilities/postProcessing/noise/noise.C index 87615d18e304abcae280ff01d394053584a56f00..43597560f0d91822a07aa4a2ec6687175354d8c2 100644 --- a/applications/utilities/postProcessing/noise/noise.C +++ b/applications/utilities/postProcessing/noise/noise.C @@ -135,7 +135,7 @@ int main(int argc, char *argv[]) #include "createFields.H" Info<< "Reading data file" << endl; - DataEntryTypes::CSV<scalar> pData("pressure", dict, "Data"); + Function1Types::CSV<scalar> pData("pressure", dict, "Data"); // time history data const scalarField t(pData.x()); diff --git a/etc/codeTemplates/BC/BC.C b/etc/codeTemplates/BC/BC.C index c518262cd9f661bee261b986e82eda20f04add95..8095873f5a1583982a51d5f2d0156ea4f1d97a61 100644 --- a/etc/codeTemplates/BC/BC.C +++ b/etc/codeTemplates/BC/BC.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -76,7 +76,7 @@ CONSTRUCT scalarData_(readScalar(dict.lookup("scalarData"))), data_(pTraits<TYPE>(dict.lookup("data"))), fieldData_("fieldData", dict, p.size()), - timeVsData_(DataEntry<TYPE>::New("timeVsData", dict)), + timeVsData_(Function1<TYPE>::New("timeVsData", dict)), wordData_(dict.lookupOrDefault<word>("wordName", "wordDefault")), labelData_(-1), boolData_(false) @@ -203,7 +203,10 @@ void Foam::CLASS::updateCoeffs() ); const scalarField& phip = - this->patch().template lookupPatchField<surfaceScalarField, scalar>("phi"); + this->patch().template lookupPatchField<surfaceScalarField, scalar> + ( + "phi" + ); this->valueFraction() = 1.0 - pos(phip); PARENT::updateCoeffs(); diff --git a/etc/codeTemplates/BC/BC.H b/etc/codeTemplates/BC/BC.H index 14bbcb76cf0bd0fdfc8423e842718798b9a19737..27e5ac12ddfe78bbd0f9800e102d2c6f896c3d25 100644 --- a/etc/codeTemplates/BC/BC.H +++ b/etc/codeTemplates/BC/BC.H @@ -80,7 +80,7 @@ SourceFiles #define CONSTRUCT_H #include "BASEFvPatchFields.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -110,7 +110,7 @@ class CONSTRUCT FIELD fieldData_; //- Type specified as a function of time for time-varying BCs - autoPtr<DataEntry<TYPE>> timeVsData_; + autoPtr<Function1<TYPE>> timeVsData_; //- Word entry, e.g. pName_ for name of the pressure field on database word wordData_; diff --git a/etc/controlDict b/etc/controlDict index 6fa473e688ad90a6e0e39739797b85bbb4a9f998..fac98db233e226596dde58826cd4570bda304dfd 100644 --- a/etc/controlDict +++ b/etc/controlDict @@ -123,7 +123,7 @@ DebugSwitches DICGaussSeidel 0; DILU 0; DILUGaussSeidel 0; - DataEntry 0; + Function1 0; DeardorffDiffStress 0; DispersionModel 0; DispersionRASModel 0; diff --git a/src/OpenFOAM/Make/files b/src/OpenFOAM/Make/files index 6b271cfc1d0e5493b23288cc125d2a431d1b3653..3f325fd4530cfcdfbaba6e06ff6d59c1f6d9f922 100644 --- a/src/OpenFOAM/Make/files +++ b/src/OpenFOAM/Make/files @@ -72,7 +72,7 @@ primitives/septernion/septernion.C primitives/triad/triad.C /* functions, data entries */ -primitives/functions/DataEntry/makeDataEntries.C +primitives/functions/Function1/makeDataEntries.C primitives/functions/Polynomial/polynomialFunction.C primitives/subModelBase/subModelBase.C diff --git a/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.C b/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.C index ae42db3989c2e7a66da0a931276b508bdd205333..ec9dfa6ea42a86db159c8d22a91ecf19fc64337d 100644 --- a/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.C +++ b/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -50,7 +50,7 @@ uniformFixedValuePointPatchField ) : fixedValuePointPatchField<Type>(p, iF, dict, false), - uniformValue_(DataEntry<Type>::New("uniformValue", dict)) + uniformValue_(Function1<Type>::New("uniformValue", dict)) { if (dict.found("value")) { diff --git a/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.H index 0a3f45df6aee18bcf2a8a6142c90c32f2626d2b6..d0d76fd0833972b48702dda1c135843b78bc8845 100644 --- a/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.H @@ -36,7 +36,7 @@ Description } \endverbatim - The uniformValue entry is a DataEntry type, able to describe time + The uniformValue entry is a Function1 type, able to describe time varying functions. The example above gives the usage for supplying a constant value. @@ -49,7 +49,7 @@ SourceFiles #define uniformFixedValuePointPatchField_H #include "fixedValuePointPatchField.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -67,7 +67,7 @@ class uniformFixedValuePointPatchField { // Private data - autoPtr<DataEntry<Type>> uniformValue_; + autoPtr<Function1<Type>> uniformValue_; public: @@ -150,7 +150,7 @@ public: // Access //- Return the fluctuation scale - const DataEntry<Type>& uniformValue() const + const Function1<Type>& uniformValue() const { return uniformValue_; } diff --git a/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.C b/src/OpenFOAM/primitives/functions/Function1/CSV/CSV.C similarity index 93% rename from src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.C rename to src/OpenFOAM/primitives/functions/Function1/CSV/CSV.C index a126e05daca20c11c5f020fd7c58ed448c07363e..9ba33667324e1c0985f1e9dfcfb4b0d724fee47c 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.C +++ b/src/OpenFOAM/primitives/functions/Function1/CSV/CSV.C @@ -30,7 +30,7 @@ License // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // template<> -Foam::label Foam::DataEntryTypes::CSV<Foam::label>::readValue +Foam::label Foam::Function1Types::CSV<Foam::label>::readValue ( const List<string>& splitted ) @@ -48,7 +48,7 @@ Foam::label Foam::DataEntryTypes::CSV<Foam::label>::readValue template<> -Foam::scalar Foam::DataEntryTypes::CSV<Foam::scalar>::readValue +Foam::scalar Foam::Function1Types::CSV<Foam::scalar>::readValue ( const List<string>& splitted ) @@ -66,7 +66,7 @@ Foam::scalar Foam::DataEntryTypes::CSV<Foam::scalar>::readValue template<class Type> -Type Foam::DataEntryTypes::CSV<Type>::readValue(const List<string>& splitted) +Type Foam::Function1Types::CSV<Type>::readValue(const List<string>& splitted) { Type result; @@ -89,7 +89,7 @@ Type Foam::DataEntryTypes::CSV<Type>::readValue(const List<string>& splitted) template<class Type> -void Foam::DataEntryTypes::CSV<Type>::read() +void Foam::Function1Types::CSV<Type>::read() { fileName expandedFile(fName_); IFstream is(expandedFile.expand()); @@ -200,7 +200,7 @@ void Foam::DataEntryTypes::CSV<Type>::read() // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // template<class Type> -Foam::DataEntryTypes::CSV<Type>::CSV +Foam::Function1Types::CSV<Type>::CSV ( const word& entryName, const dictionary& dict, @@ -231,7 +231,7 @@ Foam::DataEntryTypes::CSV<Type>::CSV template<class Type> -Foam::DataEntryTypes::CSV<Type>::CSV(const CSV<Type>& tbl) +Foam::Function1Types::CSV<Type>::CSV(const CSV<Type>& tbl) : TableBase<Type>(tbl), nHeaderLine_(tbl.nHeaderLine_), @@ -246,14 +246,14 @@ Foam::DataEntryTypes::CSV<Type>::CSV(const CSV<Type>& tbl) // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // template<class Type> -Foam::DataEntryTypes::CSV<Type>::~CSV() +Foam::Function1Types::CSV<Type>::~CSV() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template<class Type> -const Foam::fileName& Foam::DataEntryTypes::CSV<Type>::fName() const +const Foam::fileName& Foam::Function1Types::CSV<Type>::fName() const { return fName_; } diff --git a/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.H b/src/OpenFOAM/primitives/functions/Function1/CSV/CSV.H similarity index 93% rename from src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.H rename to src/OpenFOAM/primitives/functions/Function1/CSV/CSV.H index 40bc214c691bccc8a9403a8427d3616d360b390a..08ff3d52efc285252670b34c6d32366195379482 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.H +++ b/src/OpenFOAM/primitives/functions/Function1/CSV/CSV.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - Foam::DataEntryTypes::CSV + Foam::Function1Types::CSV Description Templated CSV container data entry. Reference column is always a scalar, @@ -51,7 +51,7 @@ SourceFiles #ifndef CSV_H #define CSV_H -#include "DataEntry.H" +#include "Function1.H" #include "TableBase.H" #include "Tuple2.H" #include "labelList.H" @@ -63,15 +63,15 @@ namespace Foam { // Forward declaration of friend functions and operators -namespace DataEntryTypes +namespace Function1Types { template<class Type> class CSV; }; template<class Type> -Ostream& operator<<(Ostream&, const DataEntryTypes::CSV<Type>&); +Ostream& operator<<(Ostream&, const Function1Types::CSV<Type>&); -namespace DataEntryTypes +namespace Function1Types { /*---------------------------------------------------------------------------*\ @@ -139,9 +139,9 @@ public: CSV(const CSV<Type>& tbl); //- Construct and return a clone - virtual tmp<DataEntry<Type>> clone() const + virtual tmp<Function1<Type>> clone() const { - return tmp<DataEntry<Type>>(new CSV<Type>(*this)); + return tmp<Function1<Type>>(new CSV<Type>(*this)); } @@ -180,7 +180,7 @@ Foam::scalar CSV<scalar>::readValue(const List<string>& splitted); // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -} // End namespace DataEntryTypes +} // End namespace Function1Types } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSVIO.C b/src/OpenFOAM/primitives/functions/Function1/CSV/CSVIO.C similarity index 93% rename from src/OpenFOAM/primitives/functions/DataEntry/CSV/CSVIO.C rename to src/OpenFOAM/primitives/functions/Function1/CSV/CSVIO.C index 286072ec544733ab736ba991f1160324301c6646..5b4785b50d6bf78605f1204abd9e372d045b62ce 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSVIO.C +++ b/src/OpenFOAM/primitives/functions/Function1/CSV/CSVIO.C @@ -23,7 +23,7 @@ License \*---------------------------------------------------------------------------*/ -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * // @@ -31,10 +31,10 @@ template<class Type> Foam::Ostream& Foam::operator<< ( Ostream& os, - const DataEntryTypes::CSV<Type>& tbl + const Function1Types::CSV<Type>& tbl ) { - os << static_cast<const DataEntry<Type>& >(tbl) + os << static_cast<const Function1<Type>& >(tbl) << token::SPACE << tbl.nHeaderLine_ << token::SPACE << tbl.timeColumn_ << token::SPACE << tbl.componentColumns_ @@ -50,9 +50,9 @@ Foam::Ostream& Foam::operator<< template<class Type> -void Foam::DataEntryTypes::CSV<Type>::writeData(Ostream& os) const +void Foam::Function1Types::CSV<Type>::writeData(Ostream& os) const { - DataEntry<Type>::writeData(os); + Function1<Type>::writeData(os); os << token::END_STATEMENT << nl; os << indent << word(this->name() + "Coeffs") << nl; os << indent << token::BEGIN_BLOCK << incrIndent << nl; diff --git a/src/OpenFOAM/primitives/functions/DataEntry/Constant/Constant.C b/src/OpenFOAM/primitives/functions/Function1/Constant/Constant.C similarity index 83% rename from src/OpenFOAM/primitives/functions/DataEntry/Constant/Constant.C rename to src/OpenFOAM/primitives/functions/Function1/Constant/Constant.C index 8a9758d4caf6535814e8aa88a9a1858569829a38..ecc7ce732ce3e57977c1c4679ac9be5421311040 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/Constant/Constant.C +++ b/src/OpenFOAM/primitives/functions/Function1/Constant/Constant.C @@ -28,13 +28,13 @@ License // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // template<class Type> -Foam::DataEntryTypes::Constant<Type>::Constant +Foam::Function1Types::Constant<Type>::Constant ( const word& entryName, const dictionary& dict ) : - DataEntry<Type>(entryName), + Function1<Type>(entryName), value_(pTraits<Type>::zero) { Istream& is(dict.lookup(entryName)); @@ -44,21 +44,21 @@ Foam::DataEntryTypes::Constant<Type>::Constant template<class Type> -Foam::DataEntryTypes::Constant<Type>::Constant +Foam::Function1Types::Constant<Type>::Constant ( const word& entryName, Istream& is ) : - DataEntry<Type>(entryName), + Function1<Type>(entryName), value_(pTraits<Type>(is)) {} template<class Type> -Foam::DataEntryTypes::Constant<Type>::Constant(const Constant<Type>& cnst) +Foam::Function1Types::Constant<Type>::Constant(const Constant<Type>& cnst) : - DataEntry<Type>(cnst), + Function1<Type>(cnst), value_(cnst.value_) {} @@ -66,21 +66,21 @@ Foam::DataEntryTypes::Constant<Type>::Constant(const Constant<Type>& cnst) // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // template<class Type> -Foam::DataEntryTypes::Constant<Type>::~Constant() +Foam::Function1Types::Constant<Type>::~Constant() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template<class Type> -Type Foam::DataEntryTypes::Constant<Type>::value(const scalar x) const +Type Foam::Function1Types::Constant<Type>::value(const scalar x) const { return value_; } template<class Type> -Type Foam::DataEntryTypes::Constant<Type>::integrate +Type Foam::Function1Types::Constant<Type>::integrate ( const scalar x1, const scalar x2 diff --git a/src/OpenFOAM/primitives/functions/DataEntry/Constant/Constant.H b/src/OpenFOAM/primitives/functions/Function1/Constant/Constant.H similarity index 88% rename from src/OpenFOAM/primitives/functions/DataEntry/Constant/Constant.H rename to src/OpenFOAM/primitives/functions/Function1/Constant/Constant.H index a1e5df884fcf4da9d70df1704dcaeca715761aab..756e65af53a7a3e240de02ddc9b1e6de8b62d21c 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/Constant/Constant.H +++ b/src/OpenFOAM/primitives/functions/Function1/Constant/Constant.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - Foam::DataEntryTypes::Constant + Foam::Function1Types::Constant Description Templated basic entry that holds a constant value. @@ -40,7 +40,7 @@ SourceFiles #ifndef Constant_H #define Constant_H -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -48,15 +48,15 @@ namespace Foam { // Forward declaration of friend functions and operators -namespace DataEntryTypes +namespace Function1Types { template<class Type> class Constant; }; template<class Type> -Ostream& operator<<(Ostream&, const DataEntryTypes::Constant<Type>&); +Ostream& operator<<(Ostream&, const Function1Types::Constant<Type>&); -namespace DataEntryTypes +namespace Function1Types { /*---------------------------------------------------------------------------*\ @@ -66,7 +66,7 @@ namespace DataEntryTypes template<class Type> class Constant : - public DataEntry<Type> + public Function1<Type> { // Private data @@ -92,7 +92,7 @@ public: Constant(const word& entryName, const dictionary& dict); //- Construct from entry name and Istream - // Reads the constant value without the DataEntry type + // Reads the constant value without the Function1 type // for backward compatibility Constant(const word& entryName, Istream& is); @@ -100,9 +100,9 @@ public: Constant(const Constant<Type>& cnst); //- Construct and return a clone - virtual tmp<DataEntry<Type>> clone() const + virtual tmp<Function1<Type>> clone() const { - return tmp<DataEntry<Type>>(new Constant<Type>(*this)); + return tmp<Function1<Type>>(new Constant<Type>(*this)); } @@ -135,14 +135,14 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -} // End namespace DataEntryTypes +} // End namespace Function1Types } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #ifdef NoRepository # include "Constant.C" -# include "DataEntryNew.C" +# include "Function1New.C" #endif // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/OpenFOAM/primitives/functions/DataEntry/Constant/ConstantIO.C b/src/OpenFOAM/primitives/functions/Function1/Constant/ConstantIO.C similarity index 89% rename from src/OpenFOAM/primitives/functions/DataEntry/Constant/ConstantIO.C rename to src/OpenFOAM/primitives/functions/Function1/Constant/ConstantIO.C index f3b63b380a3ae0b8252386d7a5ab9341e0dbfae7..bbc5141929d62c46e9352421be4c0fd0b22575fd 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/Constant/ConstantIO.C +++ b/src/OpenFOAM/primitives/functions/Function1/Constant/ConstantIO.C @@ -31,10 +31,10 @@ template<class Type> Foam::Ostream& Foam::operator<< ( Ostream& os, - const DataEntryTypes::Constant<Type>& cnst + const Function1Types::Constant<Type>& cnst ) { - os << static_cast<const DataEntry<Type>& >(cnst) + os << static_cast<const Function1<Type>& >(cnst) << token::SPACE << cnst.value_; // Check state of Ostream @@ -48,9 +48,9 @@ Foam::Ostream& Foam::operator<< template<class Type> -void Foam::DataEntryTypes::Constant<Type>::writeData(Ostream& os) const +void Foam::Function1Types::Constant<Type>::writeData(Ostream& os) const { - DataEntry<Type>::writeData(os); + Function1<Type>::writeData(os); os << token::SPACE << value_ << token::END_STATEMENT << nl; } diff --git a/src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntry.C b/src/OpenFOAM/primitives/functions/Function1/Function1/Function1.C similarity index 81% rename from src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntry.C rename to src/OpenFOAM/primitives/functions/Function1/Function1/Function1.C index ab14e408006d6ddfc1620794deee7b2acb8ca901..bfd21c2e3010498c6df0ed8c0bc555ab43b18713 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntry.C +++ b/src/OpenFOAM/primitives/functions/Function1/Function1/Function1.C @@ -23,13 +23,13 @@ License \*---------------------------------------------------------------------------*/ -#include "DataEntry.H" +#include "Function1.H" #include "Time.H" // * * * * * * * * * * * * * * * * Constructor * * * * * * * * * * * * * * * // template<class Type> -Foam::DataEntry<Type>::DataEntry(const word& entryName) +Foam::Function1<Type>::Function1(const word& entryName) : refCount(), name_(entryName) @@ -37,7 +37,7 @@ Foam::DataEntry<Type>::DataEntry(const word& entryName) template<class Type> -Foam::DataEntry<Type>::DataEntry(const DataEntry<Type>& de) +Foam::Function1<Type>::Function1(const Function1<Type>& de) : refCount(), name_(de.name_) @@ -47,28 +47,28 @@ Foam::DataEntry<Type>::DataEntry(const DataEntry<Type>& de) // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // template<class Type> -Foam::DataEntry<Type>::~DataEntry() +Foam::Function1<Type>::~Function1() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template<class Type> -const Foam::word& Foam::DataEntry<Type>::name() const +const Foam::word& Foam::Function1<Type>::name() const { return name_; } template<class Type> -void Foam::DataEntry<Type>::convertTimeBase(const Time&) +void Foam::Function1<Type>::convertTimeBase(const Time&) { // do nothing } template<class Type> -Type Foam::DataEntry<Type>::value(const scalar x) const +Type Foam::Function1<Type>::value(const scalar x) const { NotImplemented; @@ -77,7 +77,7 @@ Type Foam::DataEntry<Type>::value(const scalar x) const template<class Type> -Type Foam::DataEntry<Type>::integrate(const scalar x1, const scalar x2) const +Type Foam::Function1<Type>::integrate(const scalar x1, const scalar x2) const { NotImplemented; @@ -86,7 +86,7 @@ Type Foam::DataEntry<Type>::integrate(const scalar x1, const scalar x2) const template<class Type> -Foam::tmp<Foam::Field<Type>> Foam::DataEntry<Type>::value +Foam::tmp<Foam::Field<Type>> Foam::Function1<Type>::value ( const scalarField& x ) const @@ -103,7 +103,7 @@ Foam::tmp<Foam::Field<Type>> Foam::DataEntry<Type>::value template<class Type> -Foam::tmp<Foam::Field<Type>> Foam::DataEntry<Type>::integrate +Foam::tmp<Foam::Field<Type>> Foam::Function1<Type>::integrate ( const scalarField& x1, const scalarField& x2 @@ -122,6 +122,6 @@ Foam::tmp<Foam::Field<Type>> Foam::DataEntry<Type>::integrate // * * * * * * * * * * * * * * IOStream operators * * * * * * * * * * * * * // -#include "DataEntryIO.C" +#include "Function1IO.C" // ************************************************************************* // diff --git a/src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntry.H b/src/OpenFOAM/primitives/functions/Function1/Function1/Function1.H similarity index 82% rename from src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntry.H rename to src/OpenFOAM/primitives/functions/Function1/Function1/Function1.H index 63fd851b12741c9c164276ed419e3b051a33a362..a5c77c2527342131c2a710bfe54a06a83bbbe8cb 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntry.H +++ b/src/OpenFOAM/primitives/functions/Function1/Function1/Function1.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - Foam::DataEntry + Foam::Function1 Description Top level data entry class for use in dictionaries. Provides a mechanism @@ -31,13 +31,13 @@ Description limits. SourceFiles - DataEntry.C - DataEntryNew.C + Function1.C + Function1New.C \*---------------------------------------------------------------------------*/ -#ifndef DataEntry_H -#define DataEntry_H +#ifndef Function1_H +#define Function1_H #include "dictionary.H" #include "Field.H" @@ -51,22 +51,22 @@ namespace Foam class Time; // Forward declaration of friend functions and operators -template<class Type> class DataEntry; -template<class Type> Ostream& operator<<(Ostream&, const DataEntry<Type>&); +template<class Type> class Function1; +template<class Type> Ostream& operator<<(Ostream&, const Function1<Type>&); /*---------------------------------------------------------------------------*\ - Class DataEntry Declaration + Class Function1 Declaration \*---------------------------------------------------------------------------*/ template<class Type> -class DataEntry +class Function1 : public refCount { // Private Member Functions //- Disallow default bitwise assignment - void operator=(const DataEntry<Type>&); + void operator=(const Function1<Type>&); protected: @@ -80,13 +80,13 @@ protected: public: //- Runtime type information - TypeName("DataEntry") + TypeName("Function1") //- Declare runtime constructor selection table declareRunTimeSelectionTable ( autoPtr, - DataEntry, + Function1, dictionary, ( const word& entryName, @@ -99,20 +99,20 @@ public: // Constructor //- Construct from entry name - DataEntry(const word& entryName); + Function1(const word& entryName); //- Copy constructor - DataEntry(const DataEntry<Type>& de); + Function1(const Function1<Type>& de); //- Construct and return a clone - virtual tmp<DataEntry<Type>> clone() const + virtual tmp<Function1<Type>> clone() const { - return tmp<DataEntry<Type>>(new DataEntry<Type>(*this)); + return tmp<Function1<Type>>(new Function1<Type>(*this)); } //- Selector - static autoPtr<DataEntry<Type>> New + static autoPtr<Function1<Type>> New ( const word& entryName, const dictionary& dict @@ -120,7 +120,7 @@ public: //- Destructor - virtual ~DataEntry(); + virtual ~Function1(); // Member Functions @@ -162,7 +162,7 @@ public: friend Ostream& operator<< <Type> ( Ostream& os, - const DataEntry<Type>& de + const Function1<Type>& de ); //- Write in dictionary format @@ -176,29 +176,29 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -#define makeDataEntry(Type) \ +#define makeFunction1(Type) \ \ - defineNamedTemplateTypeNameAndDebug(DataEntry<Type>, 0); \ + defineNamedTemplateTypeNameAndDebug(Function1<Type>, 0); \ \ defineTemplateRunTimeSelectionTable \ ( \ - DataEntry<Type>, \ + Function1<Type>, \ dictionary \ ); -#define makeDataEntryType(SS, Type) \ +#define makeFunction1Type(SS, Type) \ \ - defineNamedTemplateTypeNameAndDebug(DataEntryTypes::SS<Type>, 0); \ + defineNamedTemplateTypeNameAndDebug(Function1Types::SS<Type>, 0); \ \ - DataEntry<Type>::adddictionaryConstructorToTable<DataEntryTypes::SS<Type>> \ + Function1<Type>::adddictionaryConstructorToTable<Function1Types::SS<Type>> \ add##SS##Type##ConstructorToTable_; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #ifdef NoRepository -# include "DataEntry.C" +# include "Function1.C" # include "Constant.H" #endif diff --git a/src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntryFwd.H b/src/OpenFOAM/primitives/functions/Function1/Function1/Function1Fwd.H similarity index 76% rename from src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntryFwd.H rename to src/OpenFOAM/primitives/functions/Function1/Function1/Function1Fwd.H index 326a2a425902c5c4ee7ae126d8960b69c41cd7c7..6e3b14ba0c064a97134e82fe2841bee31f494f8a 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntryFwd.H +++ b/src/OpenFOAM/primitives/functions/Function1/Function1/Function1Fwd.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -23,10 +23,10 @@ License \*---------------------------------------------------------------------------*/ -#ifndef DataEntryFws_H -#define DataEntryFws_H +#ifndef Function1Fws_H +#define Function1Fws_H -#include "DataEntry.H" +#include "Function1.H" #include "vector.H" #include "symmTensor.H" #include "sphericalTensor.H" @@ -36,12 +36,12 @@ License namespace Foam { - typedef DataEntry<label> labelDataEntry; - typedef DataEntry<scalar> scalarDataEntry; - typedef DataEntry<vector> vectorDataEntry; - typedef DataEntry<symmTensor> symmTensorDataEntry; - typedef DataEntry<sphericalTensor> sphericalTensorDataEntry; - typedef DataEntry<tensor> tensorDataEntry; + typedef Function1<label> labelFunction1; + typedef Function1<scalar> scalarFunction1; + typedef Function1<vector> vectorFunction1; + typedef Function1<symmTensor> symmTensorFunction1; + typedef Function1<sphericalTensor> sphericalTensorFunction1; + typedef Function1<tensor> tensorFunction1; } diff --git a/src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntryIO.C b/src/OpenFOAM/primitives/functions/Function1/Function1/Function1IO.C similarity index 85% rename from src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntryIO.C rename to src/OpenFOAM/primitives/functions/Function1/Function1/Function1IO.C index eabaadbcdc3a18c03deb4028c68905016aa2c3c6..a0835be61dc9e2076da5a022d7a63d0c65435a4e 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntryIO.C +++ b/src/OpenFOAM/primitives/functions/Function1/Function1/Function1IO.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -23,7 +23,7 @@ License \*---------------------------------------------------------------------------*/ -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * // @@ -31,13 +31,13 @@ template<class Type> Foam::Ostream& Foam::operator<< ( Ostream& os, - const DataEntry<Type>& de + const Function1<Type>& de ) { // Check state of Ostream os.check ( - "Ostream& operator<<(Ostream&, const DataEntry<Type>&)" + "Ostream& operator<<(Ostream&, const Function1<Type>&)" ); os << de.name_; @@ -47,7 +47,7 @@ Foam::Ostream& Foam::operator<< template<class Type> -void Foam::DataEntry<Type>::writeData(Ostream& os) const +void Foam::Function1<Type>::writeData(Ostream& os) const { os.writeKeyword(name_) << type(); } diff --git a/src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntryNew.C b/src/OpenFOAM/primitives/functions/Function1/Function1/Function1New.C similarity index 81% rename from src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntryNew.C rename to src/OpenFOAM/primitives/functions/Function1/Function1/Function1New.C index 49e394f2d03269e8126fe339649a73269843fdaa..81d45654011eb390d47b8013d2aedf0a0604bbc3 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntryNew.C +++ b/src/OpenFOAM/primitives/functions/Function1/Function1/Function1New.C @@ -28,7 +28,7 @@ License // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // template<class Type> -Foam::autoPtr<Foam::DataEntry<Type>> Foam::DataEntry<Type>::New +Foam::autoPtr<Foam::Function1<Type>> Foam::Function1<Type>::New ( const word& entryName, const dictionary& dict @@ -37,31 +37,31 @@ Foam::autoPtr<Foam::DataEntry<Type>> Foam::DataEntry<Type>::New Istream& is(dict.lookup(entryName, false)); token firstToken(is); - word DataEntryType; + word Function1Type; if (!firstToken.isWord()) { is.putBack(firstToken); - return autoPtr<DataEntry<Type>> + return autoPtr<Function1<Type>> ( - new DataEntryTypes::Constant<Type>(entryName, is) + new Function1Types::Constant<Type>(entryName, is) ); } else { - DataEntryType = firstToken.wordToken(); + Function1Type = firstToken.wordToken(); } typename dictionaryConstructorTable::iterator cstrIter = - dictionaryConstructorTablePtr_->find(DataEntryType); + dictionaryConstructorTablePtr_->find(Function1Type); if (cstrIter == dictionaryConstructorTablePtr_->end()) { FatalErrorInFunction - << "Unknown DataEntry type " - << DataEntryType << " for DataEntry " + << "Unknown Function1 type " + << Function1Type << " for Function1 " << entryName << nl << nl - << "Valid DataEntry types are:" << nl + << "Valid Function1 types are:" << nl << dictionaryConstructorTablePtr_->sortedToc() << nl << exit(FatalError); } diff --git a/src/OpenFOAM/primitives/functions/DataEntry/PolynomialEntry/PolynomialEntry.C b/src/OpenFOAM/primitives/functions/Function1/PolynomialEntry/PolynomialEntry.C similarity index 90% rename from src/OpenFOAM/primitives/functions/DataEntry/PolynomialEntry/PolynomialEntry.C rename to src/OpenFOAM/primitives/functions/Function1/PolynomialEntry/PolynomialEntry.C index 5385c761c5857f94994550f04ac3bfe5953e326a..67824da842dda99ba4a8fb002c2a9e47d76f3dc4 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/PolynomialEntry/PolynomialEntry.C +++ b/src/OpenFOAM/primitives/functions/Function1/PolynomialEntry/PolynomialEntry.C @@ -28,13 +28,13 @@ License // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // template<class Type> -Foam::DataEntryTypes::Polynomial<Type>::Polynomial +Foam::Function1Types::Polynomial<Type>::Polynomial ( const word& entryName, const dictionary& dict ) : - DataEntry<Type>(entryName), + Function1<Type>(entryName), coeffs_(), canIntegrate_(true) { @@ -72,13 +72,13 @@ Foam::DataEntryTypes::Polynomial<Type>::Polynomial template<class Type> -Foam::DataEntryTypes::Polynomial<Type>::Polynomial +Foam::Function1Types::Polynomial<Type>::Polynomial ( const word& entryName, const List<Tuple2<Type, Type>>& coeffs ) : - DataEntry<Type>(entryName), + Function1<Type>(entryName), coeffs_(coeffs), canIntegrate_(true) { @@ -111,9 +111,9 @@ Foam::DataEntryTypes::Polynomial<Type>::Polynomial template<class Type> -Foam::DataEntryTypes::Polynomial<Type>::Polynomial(const Polynomial& poly) +Foam::Function1Types::Polynomial<Type>::Polynomial(const Polynomial& poly) : - DataEntry<Type>(poly), + Function1<Type>(poly), coeffs_(poly.coeffs_), canIntegrate_(poly.canIntegrate_) {} @@ -122,14 +122,14 @@ Foam::DataEntryTypes::Polynomial<Type>::Polynomial(const Polynomial& poly) // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // template<class Type> -Foam::DataEntryTypes::Polynomial<Type>::~Polynomial() +Foam::Function1Types::Polynomial<Type>::~Polynomial() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template<class Type> -void Foam::DataEntryTypes::Polynomial<Type>::convertTimeBase(const Time& t) +void Foam::Function1Types::Polynomial<Type>::convertTimeBase(const Time& t) { forAll(coeffs_, i) { @@ -144,7 +144,7 @@ void Foam::DataEntryTypes::Polynomial<Type>::convertTimeBase(const Time& t) template<class Type> -Type Foam::DataEntryTypes::Polynomial<Type>::value(const scalar x) const +Type Foam::Function1Types::Polynomial<Type>::value(const scalar x) const { Type y(pTraits<Type>::zero); forAll(coeffs_, i) @@ -161,7 +161,7 @@ Type Foam::DataEntryTypes::Polynomial<Type>::value(const scalar x) const template<class Type> -Type Foam::DataEntryTypes::Polynomial<Type>::integrate +Type Foam::Function1Types::Polynomial<Type>::integrate ( const scalar x1, const scalar x2 diff --git a/src/OpenFOAM/primitives/functions/DataEntry/PolynomialEntry/PolynomialEntry.H b/src/OpenFOAM/primitives/functions/Function1/PolynomialEntry/PolynomialEntry.H similarity index 91% rename from src/OpenFOAM/primitives/functions/DataEntry/PolynomialEntry/PolynomialEntry.H rename to src/OpenFOAM/primitives/functions/Function1/PolynomialEntry/PolynomialEntry.H index c23a4dfc8a6c604f5b7833b4bb5e770f05bb6a6f..04ad5dfb7b7e71bbf994fb07e85362c918856a3b 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/PolynomialEntry/PolynomialEntry.H +++ b/src/OpenFOAM/primitives/functions/Function1/PolynomialEntry/PolynomialEntry.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - Foam::DataEntryTypes::PolynomialEntry + Foam::Function1Types::PolynomialEntry Description PolynomialEntry container data entry for scalars. Items are stored in a @@ -45,9 +45,9 @@ SourceFiles #ifndef PolynomialEntry_H #define PolynomialEntry_H -#include "DataEntry.H" +#include "Function1.H" #include "Tuple2.H" -#include "DataEntryFwd.H" +#include "Function1Fwd.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -55,15 +55,15 @@ namespace Foam { // Forward declaration of friend functions and operators -namespace DataEntryTypes +namespace Function1Types { template<class Type> class Polynomial; }; template<class Type> -Ostream& operator<<(Ostream&, const DataEntryTypes::Polynomial<Type>&); +Ostream& operator<<(Ostream&, const Function1Types::Polynomial<Type>&); -namespace DataEntryTypes +namespace Function1Types { /*---------------------------------------------------------------------------*\ @@ -73,7 +73,7 @@ namespace DataEntryTypes template<class Type> class Polynomial : - public DataEntry<Type> + public Function1<Type> { // Private data @@ -111,9 +111,9 @@ public: Polynomial(const Polynomial& poly); //- Construct and return a clone - virtual tmp<DataEntry<Type>> clone() const + virtual tmp<Function1<Type>> clone() const { - return tmp<DataEntry<Type>>(new Polynomial(*this)); + return tmp<Function1<Type>>(new Polynomial(*this)); } @@ -154,7 +154,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -} // End namespace DataEntryTypes +} // End namespace Function1Types } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/OpenFOAM/primitives/functions/DataEntry/PolynomialEntry/PolynomialEntryIO.C b/src/OpenFOAM/primitives/functions/Function1/PolynomialEntry/PolynomialEntryIO.C similarity index 89% rename from src/OpenFOAM/primitives/functions/DataEntry/PolynomialEntry/PolynomialEntryIO.C rename to src/OpenFOAM/primitives/functions/Function1/PolynomialEntry/PolynomialEntryIO.C index 6d9124602a35822b4aa1abe178e0b93d9f1ee791..80d4f00bcc98769d80eaea0ea6c092480de680c6 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/PolynomialEntry/PolynomialEntryIO.C +++ b/src/OpenFOAM/primitives/functions/Function1/PolynomialEntry/PolynomialEntryIO.C @@ -31,10 +31,10 @@ template<class Type> Foam::Ostream& Foam::operator<< ( Ostream& os, - const DataEntryTypes::Polynomial<Type>& poly + const Function1Types::Polynomial<Type>& poly ) { - os << static_cast<const DataEntry<Type>& >(poly) + os << static_cast<const Function1<Type>& >(poly) << token::SPACE << poly.coeffs_; // Check state of Ostream @@ -48,9 +48,9 @@ Foam::Ostream& Foam::operator<< template<class Type> -void Foam::DataEntryTypes::Polynomial<Type>::writeData(Ostream& os) const +void Foam::Function1Types::Polynomial<Type>::writeData(Ostream& os) const { - DataEntry<Type>::writeData(os); + Function1<Type>::writeData(os); os << nl << indent << coeffs_ << token::END_STATEMENT << nl; } diff --git a/src/OpenFOAM/primitives/functions/DataEntry/Sine/Sine.C b/src/OpenFOAM/primitives/functions/Function1/Sine/Sine.C similarity index 87% rename from src/OpenFOAM/primitives/functions/DataEntry/Sine/Sine.C rename to src/OpenFOAM/primitives/functions/Function1/Sine/Sine.C index 8bedc6324d4970dc9492addc3cf26f63731c4c87..ef2b529fe59598dcd6367c743bda850c58cb4de8 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/Sine/Sine.C +++ b/src/OpenFOAM/primitives/functions/Function1/Sine/Sine.C @@ -29,7 +29,7 @@ License // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // template<class Type> -void Foam::DataEntryTypes::Sine<Type>::read(const dictionary& coeffs) +void Foam::Function1Types::Sine<Type>::read(const dictionary& coeffs) { t0_ = coeffs.lookupOrDefault<scalar>("t0", 0); amplitude_ = coeffs.lookupOrDefault<scalar>("amplitude", 1); @@ -40,23 +40,23 @@ void Foam::DataEntryTypes::Sine<Type>::read(const dictionary& coeffs) template<class Type> -Foam::DataEntryTypes::Sine<Type>::Sine +Foam::Function1Types::Sine<Type>::Sine ( const word& entryName, const dictionary& dict, const word& ext ) : - DataEntry<Type>(entryName) + Function1<Type>(entryName) { read(dict.subDict(entryName + ext)); } template<class Type> -Foam::DataEntryTypes::Sine<Type>::Sine(const Sine<Type>& se) +Foam::Function1Types::Sine<Type>::Sine(const Sine<Type>& se) : - DataEntry<Type>(se), + Function1<Type>(se), t0_(se.t0_), amplitude_(se.amplitude_), frequency_(se.frequency_), @@ -67,14 +67,14 @@ Foam::DataEntryTypes::Sine<Type>::Sine(const Sine<Type>& se) // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // template<class Type> -Foam::DataEntryTypes::Sine<Type>::~Sine() +Foam::Function1Types::Sine<Type>::~Sine() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template<class Type> -Type Foam::DataEntryTypes::Sine<Type>::value(const scalar t) const +Type Foam::Function1Types::Sine<Type>::value(const scalar t) const { return amplitude_*sin(constant::mathematical::twoPi*frequency_*(t - t0_)) @@ -84,7 +84,7 @@ Type Foam::DataEntryTypes::Sine<Type>::value(const scalar t) const template<class Type> -Type Foam::DataEntryTypes::Sine<Type>::integrate +Type Foam::Function1Types::Sine<Type>::integrate ( const scalar t1, const scalar t2 diff --git a/src/OpenFOAM/primitives/functions/DataEntry/Sine/Sine.H b/src/OpenFOAM/primitives/functions/Function1/Sine/Sine.H similarity index 92% rename from src/OpenFOAM/primitives/functions/DataEntry/Sine/Sine.H rename to src/OpenFOAM/primitives/functions/Function1/Sine/Sine.H index 1c7d7adb28a6f2019282b481ebb6fdecd07fe88c..c5e852742aea78b35c2af4e022e21e1a5fda02ec 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/Sine/Sine.H +++ b/src/OpenFOAM/primitives/functions/Function1/Sine/Sine.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - Foam::DataEntryTypes::Sine + Foam::Function1Types::Sine Description Templated sine function with support for an offset level. @@ -74,7 +74,7 @@ SourceFiles #ifndef Sine_H #define Sine_H -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -82,15 +82,15 @@ namespace Foam { // Forward declaration of friend functions and operators -namespace DataEntryTypes +namespace Function1Types { template<class Type> class Sine; }; template<class Type> -Ostream& operator<<(Ostream&, const DataEntryTypes::Sine<Type>&); +Ostream& operator<<(Ostream&, const Function1Types::Sine<Type>&); -namespace DataEntryTypes +namespace Function1Types { /*---------------------------------------------------------------------------*\ @@ -100,7 +100,7 @@ namespace DataEntryTypes template<class Type> class Sine : - public DataEntry<Type> + public Function1<Type> { // Private data @@ -149,9 +149,9 @@ public: Sine(const Sine<Type>& se); //- Construct and return a clone - virtual tmp<DataEntry<Type>> clone() const + virtual tmp<Function1<Type>> clone() const { - return tmp<DataEntry<Type>>(new Sine<Type>(*this)); + return tmp<Function1<Type>>(new Sine<Type>(*this)); } @@ -184,7 +184,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -} // End namespace DataEntryTypes +} // End namespace Function1Types } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/OpenFOAM/primitives/functions/DataEntry/Sine/SineIO.C b/src/OpenFOAM/primitives/functions/Function1/Sine/SineIO.C similarity index 92% rename from src/OpenFOAM/primitives/functions/DataEntry/Sine/SineIO.C rename to src/OpenFOAM/primitives/functions/Function1/Sine/SineIO.C index afbaba8deee2582b2982a60b9b9f6d440be791d6..dc1ba58d41a6822b5b929396a150188e95d3ea1a 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/Sine/SineIO.C +++ b/src/OpenFOAM/primitives/functions/Function1/Sine/SineIO.C @@ -31,10 +31,10 @@ template<class Type> Foam::Ostream& Foam::operator<< ( Ostream& os, - const DataEntryTypes::Sine<Type>& se + const Function1Types::Sine<Type>& se ) { - os << static_cast<const DataEntry<Type>& >(se) + os << static_cast<const Function1<Type>& >(se) << token::SPACE << se.t0_ << token::SPACE << se.amplitude_ << token::SPACE << se.frequency_ @@ -52,9 +52,9 @@ Foam::Ostream& Foam::operator<< template<class Type> -void Foam::DataEntryTypes::Sine<Type>::writeData(Ostream& os) const +void Foam::Function1Types::Sine<Type>::writeData(Ostream& os) const { - DataEntry<Type>::writeData(os); + Function1<Type>::writeData(os); os << token::END_STATEMENT << nl; os << indent << word(this->name() + "Coeffs") << nl; os << indent << token::BEGIN_BLOCK << incrIndent << nl; diff --git a/src/OpenFOAM/primitives/functions/DataEntry/Table/Table.C b/src/OpenFOAM/primitives/functions/Function1/Table/Table.C similarity index 92% rename from src/OpenFOAM/primitives/functions/DataEntry/Table/Table.C rename to src/OpenFOAM/primitives/functions/Function1/Table/Table.C index 0927cc193bac0b4040bc02a64da802344d50e85d..92bbefc8cc05fb61c3830733edd907be8283e087 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/Table/Table.C +++ b/src/OpenFOAM/primitives/functions/Function1/Table/Table.C @@ -28,7 +28,7 @@ License // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // template<class Type> -Foam::DataEntryTypes::Table<Type>::Table +Foam::Function1Types::Table<Type>::Table ( const word& entryName, const dictionary& dict @@ -44,7 +44,7 @@ Foam::DataEntryTypes::Table<Type>::Table template<class Type> -Foam::DataEntryTypes::Table<Type>::Table(const Table<Type>& tbl) +Foam::Function1Types::Table<Type>::Table(const Table<Type>& tbl) : TableBase<Type>(tbl) {} @@ -53,7 +53,7 @@ Foam::DataEntryTypes::Table<Type>::Table(const Table<Type>& tbl) // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // template<class Type> -Foam::DataEntryTypes::Table<Type>::~Table() +Foam::Function1Types::Table<Type>::~Table() {} diff --git a/src/OpenFOAM/primitives/functions/DataEntry/Table/Table.H b/src/OpenFOAM/primitives/functions/Function1/Table/Table.H similarity index 90% rename from src/OpenFOAM/primitives/functions/DataEntry/Table/Table.H rename to src/OpenFOAM/primitives/functions/Function1/Table/Table.H index bcb25e57a496bdf948aa960ac8151c7a41ac24d6..afa30eec61519f20b40645ed04c66a03e91530d6 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/Table/Table.H +++ b/src/OpenFOAM/primitives/functions/Function1/Table/Table.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - Foam::DataEntryTypes::Table + Foam::Function1Types::Table Description Templated table container data entry. Items are stored in a list of @@ -45,7 +45,7 @@ SourceFiles #ifndef Table_H #define Table_H -#include "DataEntry.H" +#include "Function1.H" #include "Tuple2.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -54,15 +54,15 @@ namespace Foam { // Forward declaration of friend functions and operators -namespace DataEntryTypes +namespace Function1Types { template<class Type> class Table; }; template<class Type> -Ostream& operator<<(Ostream&, const DataEntryTypes::Table<Type>&); +Ostream& operator<<(Ostream&, const Function1Types::Table<Type>&); -namespace DataEntryTypes +namespace Function1Types { /*---------------------------------------------------------------------------*\ @@ -95,9 +95,9 @@ public: Table(const Table<Type>& tbl); //- Construct and return a clone - virtual tmp<DataEntry<Type>> clone() const + virtual tmp<Function1<Type>> clone() const { - return tmp<DataEntry<Type>>(new Table<Type>(*this)); + return tmp<Function1<Type>>(new Table<Type>(*this)); } @@ -108,7 +108,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -} // End namespace DataEntryTypes +} // End namespace Function1Types } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/OpenFOAM/primitives/functions/DataEntry/Table/TableBase.C b/src/OpenFOAM/primitives/functions/Function1/Table/TableBase.C similarity index 88% rename from src/OpenFOAM/primitives/functions/DataEntry/Table/TableBase.C rename to src/OpenFOAM/primitives/functions/Function1/Table/TableBase.C index e220f072ba5fc80237873fee5677abe9664ce752..7c2755e59a23290dbe3773703674d0b59ddf2001 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/Table/TableBase.C +++ b/src/OpenFOAM/primitives/functions/Function1/Table/TableBase.C @@ -31,7 +31,7 @@ License template<class Type> const Foam::interpolationWeights& -Foam::DataEntryTypes::TableBase<Type>::interpolator() const +Foam::Function1Types::TableBase<Type>::interpolator() const { if (interpolatorPtr_.empty()) { @@ -56,13 +56,13 @@ Foam::DataEntryTypes::TableBase<Type>::interpolator() const // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // template<class Type> -Foam::DataEntryTypes::TableBase<Type>::TableBase +Foam::Function1Types::TableBase<Type>::TableBase ( const word& name, const dictionary& dict ) : - DataEntry<Type>(name), + Function1<Type>(name), name_(name), boundsHandling_ ( @@ -80,9 +80,9 @@ Foam::DataEntryTypes::TableBase<Type>::TableBase template<class Type> -Foam::DataEntryTypes::TableBase<Type>::TableBase(const TableBase<Type>& tbl) +Foam::Function1Types::TableBase<Type>::TableBase(const TableBase<Type>& tbl) : - DataEntry<Type>(tbl), + Function1<Type>(tbl), name_(tbl.name_), boundsHandling_(tbl.boundsHandling_), interpolationScheme_(tbl.interpolationScheme_), @@ -95,14 +95,14 @@ Foam::DataEntryTypes::TableBase<Type>::TableBase(const TableBase<Type>& tbl) // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // template<class Type> -Foam::DataEntryTypes::TableBase<Type>::~TableBase() +Foam::Function1Types::TableBase<Type>::~TableBase() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template<class Type> -Foam::word Foam::DataEntryTypes::TableBase<Type>::boundsHandlingToWord +Foam::word Foam::Function1Types::TableBase<Type>::boundsHandlingToWord ( const boundsHandling& bound ) const @@ -138,8 +138,8 @@ Foam::word Foam::DataEntryTypes::TableBase<Type>::boundsHandlingToWord template<class Type> -typename Foam::DataEntryTypes::TableBase<Type>::boundsHandling -Foam::DataEntryTypes::TableBase<Type>::wordToBoundsHandling +typename Foam::Function1Types::TableBase<Type>::boundsHandling +Foam::Function1Types::TableBase<Type>::wordToBoundsHandling ( const word& bound ) const @@ -172,8 +172,8 @@ Foam::DataEntryTypes::TableBase<Type>::wordToBoundsHandling template<class Type> -typename Foam::DataEntryTypes::TableBase<Type>::boundsHandling -Foam::DataEntryTypes::TableBase<Type>::outOfBounds +typename Foam::Function1Types::TableBase<Type>::boundsHandling +Foam::Function1Types::TableBase<Type>::outOfBounds ( const boundsHandling& bound ) @@ -186,7 +186,7 @@ Foam::DataEntryTypes::TableBase<Type>::outOfBounds template<class Type> -void Foam::DataEntryTypes::TableBase<Type>::check() const +void Foam::Function1Types::TableBase<Type>::check() const { if (!table_.size()) { @@ -215,7 +215,7 @@ void Foam::DataEntryTypes::TableBase<Type>::check() const template<class Type> -bool Foam::DataEntryTypes::TableBase<Type>::checkMinBounds +bool Foam::Function1Types::TableBase<Type>::checkMinBounds ( const scalar x, scalar& xDash @@ -265,7 +265,7 @@ bool Foam::DataEntryTypes::TableBase<Type>::checkMinBounds template<class Type> -bool Foam::DataEntryTypes::TableBase<Type>::checkMaxBounds +bool Foam::Function1Types::TableBase<Type>::checkMaxBounds ( const scalar x, scalar& xDash @@ -315,7 +315,7 @@ bool Foam::DataEntryTypes::TableBase<Type>::checkMaxBounds template<class Type> -void Foam::DataEntryTypes::TableBase<Type>::convertTimeBase(const Time& t) +void Foam::Function1Types::TableBase<Type>::convertTimeBase(const Time& t) { forAll(table_, i) { @@ -329,7 +329,7 @@ void Foam::DataEntryTypes::TableBase<Type>::convertTimeBase(const Time& t) template<class Type> -Type Foam::DataEntryTypes::TableBase<Type>::value(const scalar x) const +Type Foam::Function1Types::TableBase<Type>::value(const scalar x) const { scalar xDash = x; @@ -357,7 +357,7 @@ Type Foam::DataEntryTypes::TableBase<Type>::value(const scalar x) const template<class Type> -Type Foam::DataEntryTypes::TableBase<Type>::integrate +Type Foam::Function1Types::TableBase<Type>::integrate ( const scalar x1, const scalar x2 @@ -377,7 +377,7 @@ Type Foam::DataEntryTypes::TableBase<Type>::integrate template<class Type> -Foam::tmp<Foam::scalarField> Foam::DataEntryTypes::TableBase<Type>::x() const +Foam::tmp<Foam::scalarField> Foam::Function1Types::TableBase<Type>::x() const { tmp<scalarField> tfld(new scalarField(table_.size(), 0.0)); scalarField& fld = tfld(); @@ -392,7 +392,7 @@ Foam::tmp<Foam::scalarField> Foam::DataEntryTypes::TableBase<Type>::x() const template<class Type> -Foam::tmp<Foam::Field<Type>> Foam::DataEntryTypes::TableBase<Type>::y() const +Foam::tmp<Foam::Field<Type>> Foam::Function1Types::TableBase<Type>::y() const { tmp<Field<Type>> tfld(new Field<Type>(table_.size(), pTraits<Type>::zero)); Field<Type>& fld = tfld(); diff --git a/src/OpenFOAM/primitives/functions/DataEntry/Table/TableBase.H b/src/OpenFOAM/primitives/functions/Function1/Table/TableBase.H similarity index 95% rename from src/OpenFOAM/primitives/functions/DataEntry/Table/TableBase.H rename to src/OpenFOAM/primitives/functions/Function1/Table/TableBase.H index 43af2d8bd0a8c999678ca650312ebda75d60719c..d3eb69e788a44bf1cc54f742cf877f05725f4b2f 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/Table/TableBase.H +++ b/src/OpenFOAM/primitives/functions/Function1/Table/TableBase.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - Foam::DataEntryTypes::TableBase + Foam::Function1Types::TableBase Description Base class for table with bounds handling, interpolation and integration @@ -35,7 +35,7 @@ SourceFiles #ifndef TableBase_H #define TableBase_H -#include "DataEntry.H" +#include "Function1.H" #include "Tuple2.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -46,15 +46,15 @@ namespace Foam class interpolationWeights; // Forward declaration of friend functions and operators -namespace DataEntryTypes +namespace Function1Types { template<class Type> class TableBase; }; template<class Type> -Ostream& operator<<(Ostream&, const DataEntryTypes::TableBase<Type>&); +Ostream& operator<<(Ostream&, const Function1Types::TableBase<Type>&); -namespace DataEntryTypes +namespace Function1Types { /*---------------------------------------------------------------------------*\ @@ -64,7 +64,7 @@ namespace DataEntryTypes template<class Type> class TableBase : - public DataEntry<Type> + public Function1<Type> { public: @@ -188,7 +188,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -} // End namespace DataEntryTypes +} // End namespace Function1Types } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/OpenFOAM/primitives/functions/DataEntry/Table/TableBaseIO.C b/src/OpenFOAM/primitives/functions/Function1/Table/TableBaseIO.C similarity index 87% rename from src/OpenFOAM/primitives/functions/DataEntry/Table/TableBaseIO.C rename to src/OpenFOAM/primitives/functions/Function1/Table/TableBaseIO.C index 436983326ed0beff5fbf6d43e5b38ef1aa688fb0..372317ae4e4e4252fc71119d231edc76e2f4560e 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/Table/TableBaseIO.C +++ b/src/OpenFOAM/primitives/functions/Function1/Table/TableBaseIO.C @@ -23,7 +23,7 @@ License \*---------------------------------------------------------------------------*/ -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * // @@ -31,10 +31,10 @@ template<class Type> Foam::Ostream& Foam::operator<< ( Ostream& os, - const DataEntryTypes::TableBase<Type>& tbl + const Function1Types::TableBase<Type>& tbl ) { - os << static_cast<const DataEntry<Type>&>(tbl); + os << static_cast<const Function1<Type>&>(tbl); os << token::SPACE << tbl.table_; // Check state of Ostream @@ -48,16 +48,16 @@ Foam::Ostream& Foam::operator<< template<class Type> -void Foam::DataEntryTypes::TableBase<Type>::writeData(Ostream& os) const +void Foam::Function1Types::TableBase<Type>::writeData(Ostream& os) const { - DataEntry<Type>::writeData(os); + Function1<Type>::writeData(os); os << nl << indent << table_ << token::END_STATEMENT << nl; writeEntries(os); } template<class Type> -void Foam::DataEntryTypes::TableBase<Type>::writeEntries(Ostream& os) const +void Foam::Function1Types::TableBase<Type>::writeEntries(Ostream& os) const { if (boundsHandling_ != CLAMP) { diff --git a/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFile.C b/src/OpenFOAM/primitives/functions/Function1/TableFile/TableFile.C similarity index 93% rename from src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFile.C rename to src/OpenFOAM/primitives/functions/Function1/TableFile/TableFile.C index 4fbe2ea29f998272f4e4966876545db0914bb062..071eaf09cf5381cecb967b62cb4f05ed28e86975 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFile.C +++ b/src/OpenFOAM/primitives/functions/Function1/TableFile/TableFile.C @@ -28,7 +28,7 @@ License // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // template<class Type> -Foam::DataEntryTypes::TableFile<Type>::TableFile +Foam::Function1Types::TableFile<Type>::TableFile ( const word& entryName, const dictionary& dict @@ -58,7 +58,7 @@ Foam::DataEntryTypes::TableFile<Type>::TableFile template<class Type> -Foam::DataEntryTypes::TableFile<Type>::TableFile(const TableFile<Type>& tbl) +Foam::Function1Types::TableFile<Type>::TableFile(const TableFile<Type>& tbl) : TableBase<Type>(tbl), fName_(tbl.fName_) @@ -68,7 +68,7 @@ Foam::DataEntryTypes::TableFile<Type>::TableFile(const TableFile<Type>& tbl) // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // template<class Type> -Foam::DataEntryTypes::TableFile<Type>::~TableFile() +Foam::Function1Types::TableFile<Type>::~TableFile() {} diff --git a/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFile.H b/src/OpenFOAM/primitives/functions/Function1/TableFile/TableFile.H similarity index 91% rename from src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFile.H rename to src/OpenFOAM/primitives/functions/Function1/TableFile/TableFile.H index 9cad75efb3ebeb8dec30463ec2d2eec040704216..2ce0e09597de65d0a7c089c6aead0391be4a3444 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFile.H +++ b/src/OpenFOAM/primitives/functions/Function1/TableFile/TableFile.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - Foam::DataEntryTypes::TableFile + Foam::Function1Types::TableFile Description Templated table container data entry where data is read from file. @@ -56,7 +56,7 @@ SourceFiles #ifndef TableFile_H #define TableFile_H -#include "DataEntry.H" +#include "Function1.H" #include "Tuple2.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -65,15 +65,15 @@ namespace Foam { // Forward declaration of friend functions and operators -namespace DataEntryTypes +namespace Function1Types { template<class Type> class TableFile; }; template<class Type> -Ostream& operator<<(Ostream&, const DataEntryTypes::TableFile<Type>&); +Ostream& operator<<(Ostream&, const Function1Types::TableFile<Type>&); -namespace DataEntryTypes +namespace Function1Types { /*---------------------------------------------------------------------------*\ @@ -112,9 +112,9 @@ public: TableFile(const TableFile<Type>& tbl); //- Construct and return a clone - virtual tmp<DataEntry<Type>> clone() const + virtual tmp<Function1<Type>> clone() const { - return tmp<DataEntry<Type>>(new TableFile<Type>(*this)); + return tmp<Function1<Type>>(new TableFile<Type>(*this)); } @@ -131,7 +131,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -} // End namespace DataEntryTypes +} // End namespace Function1Types } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFileIO.C b/src/OpenFOAM/primitives/functions/Function1/TableFile/TableFileIO.C similarity index 93% rename from src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFileIO.C rename to src/OpenFOAM/primitives/functions/Function1/TableFile/TableFileIO.C index 9c0a3bbb42a8f3f99224c52668532913089c110d..dbd39e21b527da97ccaad55c772a4c073371d9ee 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFileIO.C +++ b/src/OpenFOAM/primitives/functions/Function1/TableFile/TableFileIO.C @@ -23,14 +23,14 @@ License \*---------------------------------------------------------------------------*/ -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * // template<class Type> -void Foam::DataEntryTypes::TableFile<Type>::writeData(Ostream& os) const +void Foam::Function1Types::TableFile<Type>::writeData(Ostream& os) const { - DataEntry<Type>::writeData(os); + Function1<Type>::writeData(os); os << token::END_STATEMENT << nl << indent << word(this->name() + "Coeffs") << nl diff --git a/src/OpenFOAM/primitives/functions/DataEntry/makeDataEntries.C b/src/OpenFOAM/primitives/functions/Function1/makeDataEntries.C similarity index 52% rename from src/OpenFOAM/primitives/functions/DataEntry/makeDataEntries.C rename to src/OpenFOAM/primitives/functions/Function1/makeDataEntries.C index db8f3f7490cf414faa98e8ff981c695e30aabcd4..c8d06e5bbc1d29dacb1505d06a1eb6f04f62c29f 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/makeDataEntries.C +++ b/src/OpenFOAM/primitives/functions/Function1/makeDataEntries.C @@ -39,50 +39,50 @@ License namespace Foam { - makeDataEntry(label); - makeDataEntryType(Constant, label); + makeFunction1(label); + makeFunction1Type(Constant, label); // Polynomial functions and interpolation do evaluate to label // Instead evaluate a scalar and convert to label as appropriate - makeDataEntry(scalar); - makeDataEntryType(Constant, scalar); - makeDataEntryType(Polynomial, scalar); - makeDataEntryType(Sine, scalar); - makeDataEntryType(CSV, scalar); - makeDataEntryType(Table, scalar); - makeDataEntryType(TableFile, scalar); + makeFunction1(scalar); + makeFunction1Type(Constant, scalar); + makeFunction1Type(Polynomial, scalar); + makeFunction1Type(Sine, scalar); + makeFunction1Type(CSV, scalar); + makeFunction1Type(Table, scalar); + makeFunction1Type(TableFile, scalar); - makeDataEntry(vector); - makeDataEntryType(Constant, vector); - makeDataEntryType(Polynomial, vector); - makeDataEntryType(Sine, vector); - makeDataEntryType(CSV, vector); - makeDataEntryType(Table, vector); - makeDataEntryType(TableFile, vector); + makeFunction1(vector); + makeFunction1Type(Constant, vector); + makeFunction1Type(Polynomial, vector); + makeFunction1Type(Sine, vector); + makeFunction1Type(CSV, vector); + makeFunction1Type(Table, vector); + makeFunction1Type(TableFile, vector); - makeDataEntry(sphericalTensor); - makeDataEntryType(Constant, sphericalTensor); - makeDataEntryType(Polynomial, sphericalTensor); - makeDataEntryType(Sine, sphericalTensor); - makeDataEntryType(CSV, sphericalTensor); - makeDataEntryType(Table, sphericalTensor); - makeDataEntryType(TableFile, sphericalTensor); + makeFunction1(sphericalTensor); + makeFunction1Type(Constant, sphericalTensor); + makeFunction1Type(Polynomial, sphericalTensor); + makeFunction1Type(Sine, sphericalTensor); + makeFunction1Type(CSV, sphericalTensor); + makeFunction1Type(Table, sphericalTensor); + makeFunction1Type(TableFile, sphericalTensor); - makeDataEntry(symmTensor); - makeDataEntryType(Constant, symmTensor); - makeDataEntryType(Polynomial, symmTensor); - makeDataEntryType(Sine, symmTensor); - makeDataEntryType(CSV, symmTensor); - makeDataEntryType(Table, symmTensor); - makeDataEntryType(TableFile, symmTensor); + makeFunction1(symmTensor); + makeFunction1Type(Constant, symmTensor); + makeFunction1Type(Polynomial, symmTensor); + makeFunction1Type(Sine, symmTensor); + makeFunction1Type(CSV, symmTensor); + makeFunction1Type(Table, symmTensor); + makeFunction1Type(TableFile, symmTensor); - makeDataEntry(tensor); - makeDataEntryType(Constant, tensor); - makeDataEntryType(Polynomial, tensor); - makeDataEntryType(Sine, tensor); - makeDataEntryType(CSV, tensor); - makeDataEntryType(Table, tensor); - makeDataEntryType(TableFile, tensor); + makeFunction1(tensor); + makeFunction1Type(Constant, tensor); + makeFunction1Type(Polynomial, tensor); + makeFunction1Type(Sine, tensor); + makeFunction1Type(CSV, tensor); + makeFunction1Type(Table, tensor); + makeFunction1Type(TableFile, tensor); } diff --git a/src/OpenFOAM/primitives/functions/TimeDataEntry/TimeDataEntry/TimeDataEntry.C b/src/OpenFOAM/primitives/functions/TimeFunction1/TimeFunction1/TimeFunction1.C similarity index 78% rename from src/OpenFOAM/primitives/functions/TimeDataEntry/TimeDataEntry/TimeDataEntry.C rename to src/OpenFOAM/primitives/functions/TimeFunction1/TimeFunction1/TimeFunction1.C index e46962bd3137506d8afb671c92f6899ac0850c72..ed8b34ab0641605c8026552fe92fd8dbb20f7589 100644 --- a/src/OpenFOAM/primitives/functions/TimeDataEntry/TimeDataEntry/TimeDataEntry.C +++ b/src/OpenFOAM/primitives/functions/TimeFunction1/TimeFunction1/TimeFunction1.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -23,12 +23,12 @@ License \*---------------------------------------------------------------------------*/ -#include "TimeDataEntry.H" +#include "TimeFunction1.H" // * * * * * * * * * * * * * * * * Constructor * * * * * * * * * * * * * * * // template<class Type> -Foam::TimeDataEntry<Type>::TimeDataEntry +Foam::TimeFunction1<Type>::TimeFunction1 ( const Time& t, const word& name, @@ -37,14 +37,14 @@ Foam::TimeDataEntry<Type>::TimeDataEntry : time_(t), name_(name), - entry_(DataEntry<Type>::New(name, dict)) + entry_(Function1<Type>::New(name, dict)) { entry_->convertTimeBase(t); } template<class Type> -Foam::TimeDataEntry<Type>::TimeDataEntry(const Time& t, const word& name) +Foam::TimeFunction1<Type>::TimeFunction1(const Time& t, const word& name) : time_(t), name_(name), @@ -53,9 +53,9 @@ Foam::TimeDataEntry<Type>::TimeDataEntry(const Time& t, const word& name) template<class Type> -Foam::TimeDataEntry<Type>::TimeDataEntry +Foam::TimeFunction1<Type>::TimeFunction1 ( - const TimeDataEntry<Type>& tde + const TimeFunction1<Type>& tde ) : time_(tde.time_), @@ -72,18 +72,18 @@ Foam::TimeDataEntry<Type>::TimeDataEntry // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // template<class Type> -Foam::TimeDataEntry<Type>::~TimeDataEntry() +Foam::TimeFunction1<Type>::~TimeFunction1() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template<class Type> -void Foam::TimeDataEntry<Type>::reset(const dictionary& dict) +void Foam::TimeFunction1<Type>::reset(const dictionary& dict) { entry_.reset ( - DataEntry<Type>::New + Function1<Type>::New ( name_, dict @@ -95,21 +95,21 @@ void Foam::TimeDataEntry<Type>::reset(const dictionary& dict) template<class Type> -const Foam::word& Foam::TimeDataEntry<Type>::name() const +const Foam::word& Foam::TimeFunction1<Type>::name() const { return entry_->name(); } template<class Type> -Type Foam::TimeDataEntry<Type>::value(const scalar x) const +Type Foam::TimeFunction1<Type>::value(const scalar x) const { return entry_->value(x); } template<class Type> -Type Foam::TimeDataEntry<Type>::integrate +Type Foam::TimeFunction1<Type>::integrate ( const scalar x1, const scalar x2 @@ -125,7 +125,7 @@ template<class Type> Foam::Ostream& Foam::operator<< ( Ostream& os, - const TimeDataEntry<Type>& de + const TimeFunction1<Type>& de ) { return de.entry_->operator<<(os, de); @@ -133,7 +133,7 @@ Foam::Ostream& Foam::operator<< template<class Type> -void Foam::TimeDataEntry<Type>::writeData(Ostream& os) const +void Foam::TimeFunction1<Type>::writeData(Ostream& os) const { entry_->writeData(os); } diff --git a/src/OpenFOAM/primitives/functions/TimeDataEntry/TimeDataEntry/TimeDataEntry.H b/src/OpenFOAM/primitives/functions/TimeFunction1/TimeFunction1/TimeFunction1.H similarity index 84% rename from src/OpenFOAM/primitives/functions/TimeDataEntry/TimeDataEntry/TimeDataEntry.H rename to src/OpenFOAM/primitives/functions/TimeFunction1/TimeFunction1/TimeFunction1.H index 1b5ee544cd7f8e33637d38fba3ebd490d61cc2a7..80f1ed0b63409bf2a8f92abef6578dcbf93ff05e 100644 --- a/src/OpenFOAM/primitives/functions/TimeDataEntry/TimeDataEntry/TimeDataEntry.H +++ b/src/OpenFOAM/primitives/functions/TimeFunction1/TimeFunction1/TimeFunction1.H @@ -22,21 +22,21 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - Foam::TimeDataEntry + Foam::TimeFunction1 Description - Light wrapper around DataEntry to provide a mechanism to update time-based + Light wrapper around Function1 to provide a mechanism to update time-based entries. SourceFiles - TimeDataEntry.C + TimeFunction1.C \*---------------------------------------------------------------------------*/ -#ifndef TimeDataEntry_H -#define TimeDataEntry_H +#ifndef TimeFunction1_H +#define TimeFunction1_H -#include "DataEntry.H" +#include "Function1.H" #include "Time.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -44,21 +44,21 @@ SourceFiles namespace Foam { template<class Type> -class TimeDataEntry; +class TimeFunction1; template<class Type> Ostream& operator<< ( Ostream&, - const TimeDataEntry<Type>& + const TimeFunction1<Type>& ); /*---------------------------------------------------------------------------*\ - Class TimeDataEntry Declaration + Class TimeFunction1 Declaration \*---------------------------------------------------------------------------*/ template<class Type> -class TimeDataEntry +class TimeFunction1 { protected: @@ -71,8 +71,8 @@ protected: //- Name of the data entry const word name_; - //- The underlying DataEntry - autoPtr<DataEntry<Type>> entry_; + //- The underlying Function1 + autoPtr<Function1<Type>> entry_; public: @@ -80,7 +80,7 @@ public: // Constructor //- Construct from entry name - TimeDataEntry + TimeFunction1 ( const Time& t, const word& name, @@ -88,18 +88,18 @@ public: ); //- Construct null from entry name - TimeDataEntry + TimeFunction1 ( const Time& t, const word& entryName ); //- Copy constructor - TimeDataEntry(const TimeDataEntry<Type>& tde); + TimeFunction1(const TimeFunction1<Type>& tde); //- Destructor - virtual ~TimeDataEntry(); + virtual ~TimeFunction1(); // Member Functions @@ -128,7 +128,7 @@ public: friend Ostream& operator<< <Type> ( Ostream& os, - const TimeDataEntry<Type>& de + const TimeFunction1<Type>& de ); //- Write in dictionary format @@ -143,7 +143,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #ifdef NoRepository -# include "TimeDataEntry.C" +# include "TimeFunction1.C" #endif // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/dynamicFvMesh/solidBodyMotionFvMesh/solidBodyMotionFunctions/rotatingMotion/rotatingMotion.C b/src/dynamicFvMesh/solidBodyMotionFvMesh/solidBodyMotionFunctions/rotatingMotion/rotatingMotion.C index 8a31c71e61372def22d2c5c1b5d22f509a423c04..d4a6470249c9aab1d107d4649f09c0078f80ca4e 100644 --- a/src/dynamicFvMesh/solidBodyMotionFvMesh/solidBodyMotionFunctions/rotatingMotion/rotatingMotion.C +++ b/src/dynamicFvMesh/solidBodyMotionFvMesh/solidBodyMotionFunctions/rotatingMotion/rotatingMotion.C @@ -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; diff --git a/src/dynamicFvMesh/solidBodyMotionFvMesh/solidBodyMotionFunctions/rotatingMotion/rotatingMotion.H b/src/dynamicFvMesh/solidBodyMotionFvMesh/solidBodyMotionFunctions/rotatingMotion/rotatingMotion.H index d1d18511cfcbb968ad199a4932f77ca41d61ca09..404b450aa1ec8d35bec7086dc77063512a96be9d 100644 --- a/src/dynamicFvMesh/solidBodyMotionFvMesh/solidBodyMotionFunctions/rotatingMotion/rotatingMotion.H +++ b/src/dynamicFvMesh/solidBodyMotionFvMesh/solidBodyMotionFunctions/rotatingMotion/rotatingMotion.H @@ -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 diff --git a/src/finiteVolume/cfdTools/general/MRF/MRFZone.C b/src/finiteVolume/cfdTools/general/MRF/MRFZone.C index 42c6e048342a4aae96f9eebfeee7b193ce01142c..c350d14a0c54f2b7c27cca3302914e3437923b2f 100644 --- a/src/finiteVolume/cfdTools/general/MRF/MRFZone.C +++ b/src/finiteVolume/cfdTools/general/MRF/MRFZone.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -253,7 +253,7 @@ Foam::MRFZone::MRFZone ), origin_(coeffs_.lookup("origin")), axis_(coeffs_.lookup("axis")), - omega_(DataEntry<scalar>::New("omega", coeffs_)) + omega_(Function1<scalar>::New("omega", coeffs_)) { if (cellZoneName_ == word::null) { diff --git a/src/finiteVolume/cfdTools/general/MRF/MRFZone.H b/src/finiteVolume/cfdTools/general/MRF/MRFZone.H index c499cf91a2b7fdb4f4939703db1df856fdd395da..9054d20d3363005f51ca0d054e9e9b05888768c9 100644 --- a/src/finiteVolume/cfdTools/general/MRF/MRFZone.H +++ b/src/finiteVolume/cfdTools/general/MRF/MRFZone.H @@ -48,7 +48,7 @@ SourceFiles #include "surfaceFields.H" #include "fvMatricesFwd.H" #include "mapPolyMesh.H" -#include "DataEntry.H" +#include "Function1.H" #include "autoPtr.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -105,7 +105,7 @@ class MRFZone vector axis_; //- Angular velocty (rad/sec) - autoPtr<DataEntry<scalar>> omega_; + autoPtr<Function1<scalar>> omega_; // Private Member Functions diff --git a/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C index 3bdfa9e6e965c7b05fcd23e44467a3fbf4b26040..575eae01f7c0df060139446bc3c4206f4b183c65 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -77,9 +77,9 @@ cylindricalInletVelocityFvPatchVectorField fixedValueFvPatchField<vector>(p, iF, dict), centre_(dict.lookup("centre")), axis_(dict.lookup("axis")), - axialVelocity_(DataEntry<scalar>::New("axialVelocity", dict)), - radialVelocity_(DataEntry<scalar>::New("radialVelocity", dict)), - rpm_(DataEntry<scalar>::New("rpm", dict)) + axialVelocity_(Function1<scalar>::New("axialVelocity", dict)), + radialVelocity_(Function1<scalar>::New("radialVelocity", dict)), + rpm_(Function1<scalar>::New("rpm", dict)) {} diff --git a/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.H index db1307dabed45972257d94c6fa1ca7784a09ed0b..5861a2122620a9f264c0845e2deee83e43664a4b 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.H @@ -57,13 +57,13 @@ Description \endverbatim Note - The \c axialVelocity, \c radialVelocity and \c rpm entries are DataEntry + The \c axialVelocity, \c radialVelocity and \c rpm entries are Function1 types, able to describe time varying functions. The example above gives the usage for supplying constant values. SeeAlso Foam::fixedValueFvPatchField - Foam::DataEntry + Foam::Function1 SourceFiles cylindricalInletVelocityFvPatchVectorField.C @@ -74,7 +74,7 @@ SourceFiles #define cylindricalInletVelocityFvPatchVectorField_H #include "fixedValueFvPatchFields.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -97,13 +97,13 @@ class cylindricalInletVelocityFvPatchVectorField const vector axis_; //- Axial velocity - autoPtr<DataEntry<scalar>> axialVelocity_; + autoPtr<Function1<scalar>> axialVelocity_; //- Radial velocity - autoPtr<DataEntry<scalar>> radialVelocity_; + autoPtr<Function1<scalar>> radialVelocity_; //- RPM - autoPtr<DataEntry<scalar>> rpm_; + autoPtr<Function1<scalar>> rpm_; public: diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fan/fanFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/fan/fanFvPatchField.H index f6e560a7f8a1f91769a0bb4f185957a8bfe5fd35..52f1e2e682cd65a0eb902f9d2508ef90caf374e1 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fan/fanFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fan/fanFvPatchField.H @@ -31,7 +31,7 @@ Description This boundary condition provides a jump condition, using the \c cyclic condition as a base. - The jump is specified as a \c DataEntry type, to enable the use of, e.g. + The jump is specified as a \c Function1 type, to enable the use of, e.g. contant, polynomial, table values. \heading Patch usage @@ -70,7 +70,7 @@ Note The underlying \c patchType should be set to \c cyclic SeeAlso - Foam::DataEntry + Foam::Function1 SourceFiles fanFvPatchField.C @@ -84,7 +84,7 @@ SourceFiles #define fanFvPatchField_H #include "uniformJumpFvPatchField.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fan/fanFvPatchFields.C b/src/finiteVolume/fields/fvPatchFields/derived/fan/fanFvPatchFields.C index d8ac18af775d226e81dac900f11711dd1f4c7594..a4f2809df8c2d7a6fdb0b82c9978f1703b3fc37b 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fan/fanFvPatchFields.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fan/fanFvPatchFields.C @@ -98,13 +98,13 @@ Foam::fanFvPatchField<Foam::scalar>::fanFvPatchField this->jumpTable_.reset ( - new DataEntryTypes::Polynomial<scalar>("jumpTable", coeffs) + new Function1Types::Polynomial<scalar>("jumpTable", coeffs) ); } else { // Generic input constructed from dictionary - this->jumpTable_ = DataEntry<scalar>::New("jumpTable", dict); + this->jumpTable_ = Function1<scalar>::New("jumpTable", dict); } } diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.C index a9db1a70360f82b985d32a31870d40e224f0a8cd..681d04ab31c9311577803fd1b4b9e12cc6f35ef0 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -65,7 +65,7 @@ Foam::fixedProfileFvPatchField<Type>::fixedProfileFvPatchField ) : fixedValueFvPatchField<Type>(p, iF), - profile_(DataEntry<Type>::New("profile", dict)), + profile_(Function1<Type>::New("profile", dict)), dir_(dict.lookup("direction")), origin_(readScalar(dict.lookup("origin"))) { diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.H index 7d78126cf167f3c35cd12563712914002f478e63..7964848cf24e83737f8f2d89629d899344d6120e 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.H @@ -34,7 +34,7 @@ Description \table Property | Description | Required | Default value - profile | Profile DataEntry | yes | + profile | Profile Function1 | yes | direction | Profile direction | yes | origin | Profile origin | yes | \endtable @@ -79,12 +79,12 @@ Description \endverbatim Note - The profile entry is a DataEntry type. The example above gives the + The profile entry is a Function1 type. The example above gives the usage for supplying csv file. SeeAlso Foam::fixedValueFvPatchField - Foam::DataEntry + Foam::Function1 Foam::timeVaryingMappedFixedValueFvPatchField SourceFiles @@ -96,7 +96,7 @@ SourceFiles #define fixedProfileFvPatchField_H #include "fixedValueFvPatchFields.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -115,7 +115,7 @@ class fixedProfileFvPatchField // Private data //- Profile data - autoPtr<DataEntry<Type>> profile_; + autoPtr<Function1<Type>> profile_; //- Profile direction vector dir_; diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C index bd09517b1e96011b5c4b69ce625797d1a6ccf0ab..95dfaf31cd0dcdfdd3ef91c4139b2a2a59644924 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C @@ -84,13 +84,13 @@ flowRateInletVelocityFvPatchVectorField if (dict.found("volumetricFlowRate")) { volumetric_ = true; - flowRate_ = DataEntry<scalar>::New("volumetricFlowRate", dict); + flowRate_ = Function1<scalar>::New("volumetricFlowRate", dict); rhoName_ = "rho"; } else if (dict.found("massFlowRate")) { volumetric_ = false; - flowRate_ = DataEntry<scalar>::New("massFlowRate", dict); + flowRate_ = Function1<scalar>::New("massFlowRate", dict); rhoName_ = word(dict.lookupOrDefault<word>("rho", "rho")); } else diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H index cd46853c3be92ccddf46751eb13b2e8368e82062..2d0c139a4f56c2e2b9f62b62bf3106b3c4b3aa97 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H @@ -76,7 +76,7 @@ Description } \endverbatim - The \c flowRate entry is a \c DataEntry type, meaning that it can be + The \c flowRate entry is a \c Function1 type, meaning that it can be specified as constant, a polynomial fuction of time, and ... Note @@ -87,7 +87,7 @@ Note - Strange behaviour with potentialFoam since the U equation is not solved SeeAlso - Foam::DataEntry + Foam::Function1 Foam::fixedValueFvPatchField SourceFiles @@ -99,7 +99,7 @@ SourceFiles #define flowRateInletVelocityFvPatchVectorField_H #include "fixedValueFvPatchFields.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -117,7 +117,7 @@ class flowRateInletVelocityFvPatchVectorField // Private data //- Inlet integral flow rate - autoPtr<DataEntry<scalar>> flowRate_; + autoPtr<Function1<scalar>> flowRate_; //- Is volumetric? bool volumetric_; diff --git a/src/finiteVolume/fields/fvPatchFields/derived/oscillatingFixedValue/oscillatingFixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/oscillatingFixedValue/oscillatingFixedValueFvPatchField.C index 61e82b87e7af3e65ac293b8a1da762f69c650543..87d567747d5af1fd3c571871ffba712244c1bbf1 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/oscillatingFixedValue/oscillatingFixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/oscillatingFixedValue/oscillatingFixedValueFvPatchField.C @@ -68,8 +68,8 @@ Foam::oscillatingFixedValueFvPatchField<Type>::oscillatingFixedValueFvPatchField fixedValueFvPatchField<Type>(p, iF), refValue_("refValue", dict, p.size()), offset_(dict.lookupOrDefault<Type>("offset", pTraits<Type>::zero)), - amplitude_(DataEntry<scalar>::New("amplitude", dict)), - frequency_(DataEntry<scalar>::New("frequency", dict)), + amplitude_(Function1<scalar>::New("amplitude", dict)), + frequency_(Function1<scalar>::New("frequency", dict)), curTimeIndex_(-1) { if (dict.found("value")) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/oscillatingFixedValue/oscillatingFixedValueFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/oscillatingFixedValue/oscillatingFixedValueFvPatchField.H index 979f649b984ef9a3479a2db1a2643501cd929905..bfc323d70e5200a0be64147db783d1cddaa70a5e 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/oscillatingFixedValue/oscillatingFixedValueFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/oscillatingFixedValue/oscillatingFixedValueFvPatchField.H @@ -69,12 +69,12 @@ Description \endverbatim Note - The amplitude and frequency entries are DataEntry types, able to describe + The amplitude and frequency entries are Function1 types, able to describe time varying functions. The example above gives the usage for supplying constant values. SeeAlso - Foam::DataEntry + Foam::Function1 SourceFiles oscillatingFixedValueFvPatchField.C @@ -86,7 +86,7 @@ SourceFiles #include "Random.H" #include "fixedValueFvPatchFields.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -111,10 +111,10 @@ class oscillatingFixedValueFvPatchField Type offset_; //- Amplitude - autoPtr<DataEntry<scalar>> amplitude_; + autoPtr<Function1<scalar>> amplitude_; //- Frequency - autoPtr<DataEntry<scalar>> frequency_; + autoPtr<Function1<scalar>> frequency_; //- Current time index label curTimeIndex_; diff --git a/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.C index 3a49f4a6800fdf50716e4269ad27a132c64caf22..5a60acfab9315d082bbad319a687d646ad5f267b 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -86,7 +86,7 @@ rotatingPressureInletOutletVelocityFvPatchVectorField ) : pressureInletOutletVelocityFvPatchVectorField(p, iF, dict), - omega_(DataEntry<vector>::New("omega", dict)) + omega_(Function1<vector>::New("omega", dict)) { calcTangentialVelocity(); } diff --git a/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.H index 767856bbe188da9311e1e8b7eba80549ab5f33f5..2e7eb77d9a50782f3923a78a3f62a7436f1352cb 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.H @@ -53,7 +53,7 @@ Description } \endverbatim - The \c omega entry is a DataEntry type, able to describe time varying + The \c omega entry is a Function1 type, able to describe time varying functions. Note @@ -75,7 +75,7 @@ SourceFiles #include "fvPatchFields.H" #include "pressureInletOutletVelocityFvPatchVectorField.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -93,7 +93,7 @@ class rotatingPressureInletOutletVelocityFvPatchVectorField // Private data //- Angular velocity of the frame - autoPtr<DataEntry<vector>> omega_; + autoPtr<Function1<vector>> omega_; // Private Member Functions diff --git a/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.C index 83647fb78208f4dc312b8b07738e45b54b79ec28..5d1df66c792aa999803d775752b2069a265e756f 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -66,7 +66,7 @@ rotatingTotalPressureFvPatchScalarField ) : totalPressureFvPatchScalarField(p, iF, dict), - omega_(DataEntry<vector>::New("omega", dict)) + omega_(Function1<vector>::New("omega", dict)) {} diff --git a/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.H index 52e4e3572f3b4d4c3c0d7faef999731f9a704427..271b1cb09b805d9aacf22e4a818df7e618705664 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.H @@ -59,7 +59,7 @@ Description } \endverbatim - The \c omega entry is a DataEntry type, able to describe time varying + The \c omega entry is a Function1 type, able to describe time varying functions. SeeAlso @@ -74,7 +74,7 @@ SourceFiles #define rotatingTotalPressureFvPatchScalarField_H #include "totalPressureFvPatchScalarField.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -92,7 +92,7 @@ class rotatingTotalPressureFvPatchScalarField // Private data //- Angular velocity of the frame - autoPtr<DataEntry<vector>> omega_; + autoPtr<Function1<vector>> omega_; public: diff --git a/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.C index 82f5d2e28bb7ec389c5e3695f3ae53590fce1d20..791e07c799765675cf6d69efe41195f8afb27299 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -71,7 +71,7 @@ rotatingWallVelocityFvPatchVectorField fixedValueFvPatchField<vector>(p, iF), origin_(dict.lookup("origin")), axis_(dict.lookup("axis")), - omega_(DataEntry<scalar>::New("omega", dict)) + omega_(Function1<scalar>::New("omega", dict)) { if (dict.found("value")) { diff --git a/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.H index e4d38f3a3b4d0f5cfaf2f609b76f8916d699a0ae..c9ab99efc465f7ec54c8c400a1bfcb6dacea40d5 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.H @@ -50,11 +50,11 @@ Description } \endverbatim - The \c omega entry is a DataEntry type, able to describe time varying + The \c omega entry is a Function1 type, able to describe time varying functions. SeeAlso - Foam::DataEntry + Foam::Function1 Foam::fixedValueFvPatchField SourceFiles @@ -66,7 +66,7 @@ SourceFiles #define rotatingWallVelocityFvPatchVectorField_H #include "fixedValueFvPatchFields.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -90,7 +90,7 @@ class rotatingWallVelocityFvPatchVectorField vector axis_; //- Rotational speed - autoPtr<DataEntry<scalar>> omega_; + autoPtr<Function1<scalar>> omega_; public: diff --git a/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.C index a871e91de077886a7462c28f907adeeda3d269d4..7acfaf45ec0cffacdcd901a5715d825bd9126fe1 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -75,8 +75,8 @@ swirlFlowRateInletVelocityFvPatchVectorField fixedValueFvPatchField<vector>(p, iF, dict), phiName_(dict.lookupOrDefault<word>("phi", "phi")), rhoName_(dict.lookupOrDefault<word>("rho", "rho")), - flowRate_(DataEntry<scalar>::New("flowRate", dict)), - rpm_(DataEntry<scalar>::New("rpm", dict)) + flowRate_(Function1<scalar>::New("flowRate", dict)), + rpm_(Function1<scalar>::New("rpm", dict)) {} diff --git a/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.H index 8d81fe7440efd7d221c3083518fb013a7cc9f19e..118715a1aeeb81f7c7b73229c947b06164873864 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.H @@ -58,7 +58,7 @@ Description \endverbatim Note - - the \c flowRate and \c rpm entries are DataEntry types, able to describe + - the \c flowRate and \c rpm entries are Function1 types, able to describe time varying functions. The example above gives the usage for supplying constant values. - the value is positive into the domain @@ -75,7 +75,7 @@ SourceFiles #define swirlFlowRateInletVelocityFvPatchVectorField_H #include "fixedValueFvPatchFields.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -98,10 +98,10 @@ class swirlFlowRateInletVelocityFvPatchVectorField const word rhoName_; //- Inlet integral flow rate - autoPtr<DataEntry<scalar>> flowRate_; + autoPtr<Function1<scalar>> flowRate_; //- Angular speed in revolutions per minute (RPM) - autoPtr<DataEntry<scalar>> rpm_; + autoPtr<Function1<scalar>> rpm_; public: diff --git a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.C index c418fec1b33e20d2ccb07ebd78089944c20a404d..e7edad23a5f408c9fdedf31a25269e44f8cb8550 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.C @@ -82,7 +82,7 @@ timeVaryingMappedFixedValueFvPatchField endSampleTime_(-1), endSampledValues_(0), endAverage_(pTraits<Type>::zero), - offset_(DataEntry<Type>::New("offset", dict)) + offset_(Function1<Type>::New("offset", dict)) { if ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.H index bbe0d22cc857f0219322887a4ceb1767bb684d41..64c69b5c3a920b7b95ee744a6cc0de6542cce8d2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.H @@ -80,7 +80,7 @@ SourceFiles #include "FixedList.H" #include "instantList.H" #include "pointToPointPlanarInterpolation.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -135,7 +135,7 @@ class timeVaryingMappedFixedValueFvPatchField Type endAverage_; //- Time varying offset values to interpolated data - autoPtr<DataEntry<Type>> offset_; + autoPtr<Function1<Type>> offset_; public: diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.C index aa7c057a7a08fc27e9bcad818d17054d3a0388f0..298d5efc0762dc2b7a0d577e6dce519c0d00047b 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -61,7 +61,7 @@ Foam::uniformFixedGradientFvPatchField<Type>::uniformFixedGradientFvPatchField ) : fixedGradientFvPatchField<Type>(p, iF), - uniformGradient_(DataEntry<Type>::New("uniformGradient", dict)) + uniformGradient_(Function1<Type>::New("uniformGradient", dict)) { this->evaluate(); } diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.H index 5d14b0d899065692cebfc41edb67c48bc36854db..48c2abb813f9c31b53f6fbd0f31f0015ecb01ba0 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.H @@ -47,12 +47,12 @@ Description \endverbatim Note - The uniformGradient entry is a DataEntry type, able to describe time + The uniformGradient entry is a Function1 type, able to describe time varying functions. The example above gives the usage for supplying a constant value. SeeAlso - Foam::DataEntry + Foam::Function1 Foam::fixedGradientFvPatchField SourceFiles @@ -64,7 +64,7 @@ SourceFiles #define uniformFixedGradientFvPatchField_H #include "fixedGradientFvPatchFields.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -83,7 +83,7 @@ class uniformFixedGradientFvPatchField // Private data //- Gradient - autoPtr<DataEntry<Type>> uniformGradient_; + autoPtr<Function1<Type>> uniformGradient_; public: diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C index 8d52b8700d73d6a08a74c0278aeb18501b403773..ab03ec6b0e1e7093face4fb7f2f0b0a50cba85a2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -61,7 +61,7 @@ Foam::uniformFixedValueFvPatchField<Type>::uniformFixedValueFvPatchField ) : fixedValueFvPatchField<Type>(p, iF), - uniformValue_(DataEntry<Type>::New("uniformValue", dict)) + uniformValue_(Function1<Type>::New("uniformValue", dict)) { this->evaluate(); } diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.H index d586a202fcd755f7aacf05e7c8132814a891d4fc..d85a8ad390efbf92260b6e1e6b79ff40d9bfa008 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.H @@ -47,12 +47,12 @@ Description \endverbatim Note - The uniformValue entry is a DataEntry type, able to describe time + The uniformValue entry is a Function1 type, able to describe time varying functions. The example above gives the usage for supplying a constant value. SeeAlso - Foam::DataEntry + Foam::Function1 Foam::fixedValueFvPatchField SourceFiles @@ -64,7 +64,7 @@ SourceFiles #define uniformFixedValueFvPatchField_H #include "fixedValueFvPatchFields.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -82,7 +82,7 @@ class uniformFixedValueFvPatchField { // Private data - autoPtr<DataEntry<Type>> uniformValue_; + autoPtr<Function1<Type>> uniformValue_; public: diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.C index 9e9809c91f536171ebe9a087e26169c0ccdd8832..c68304a93bfee09c11d15642c59708b9ccfcc230 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -53,7 +53,7 @@ Foam::uniformInletOutletFvPatchField<Type>::uniformInletOutletFvPatchField : mixedFvPatchField<Type>(p, iF), phiName_(dict.lookupOrDefault<word>("phi", "phi")), - uniformInletValue_(DataEntry<Type>::New("uniformInletValue", dict)) + uniformInletValue_(Function1<Type>::New("uniformInletValue", dict)) { this->refValue() = uniformInletValue_->value(this->db().time().timeOutputValue()); diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.H index fd886ee3bb4fe0fdb4cfd68842630f8ddee27a5f..384bad76ef0565fbc6538a9f01d2d42021657a74 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.H @@ -69,7 +69,7 @@ SourceFiles #define uniformInletOutletFvPatchField_H #include "mixedFvPatchField.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -94,7 +94,7 @@ protected: word phiName_; //- Value - autoPtr<DataEntry<Type>> uniformInletValue_; + autoPtr<Function1<Type>> uniformInletValue_; public: diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.C index 046d9bbeb831a2c372165e985de005a00506bc8b..00f30731de9e16b09fae527a8c9460f33942b430 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -35,7 +35,7 @@ Foam::uniformJumpFvPatchField<Type>::uniformJumpFvPatchField ) : fixedJumpFvPatchField<Type>(p, iF), - jumpTable_(new DataEntry<Type>("jumpTable")) + jumpTable_(new Function1<Type>("jumpTable")) {} @@ -62,11 +62,11 @@ Foam::uniformJumpFvPatchField<Type>::uniformJumpFvPatchField ) : fixedJumpFvPatchField<Type>(p, iF), - jumpTable_(new DataEntry<Type>("jumpTable")) + jumpTable_(new Function1<Type>("jumpTable")) { if (this->cyclicPatch().owner()) { - jumpTable_ = DataEntry<Type>::New("jumpTable", dict); + jumpTable_ = Function1<Type>::New("jumpTable", dict); } if (dict.found("value")) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.H index 19b4a7f9b76536dfa4773497defb4966eeb718cc..8a3809c3791633f3e059d630e7c649dddca873a2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.H @@ -53,7 +53,7 @@ Description The above example shows the use of a fixed jump of '10'. Note - The uniformValue entry is a DataEntry type, able to describe time + The uniformValue entry is a Function1 type, able to describe time varying functions. The example above gives the usage for supplying a constant value. @@ -71,7 +71,7 @@ SourceFiles #define uniformJumpFvPatchField_H #include "fixedJumpFvPatchField.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -93,7 +93,7 @@ protected: // Protected data //- "jump" table - autoPtr<DataEntry<Type>> jumpTable_; + autoPtr<Function1<Type>> jumpTable_; public: diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.C index 7b2d55e1eb3e7cb00215bc1f86960941cd43c4af..61339e232ea07d38a9e2f3d7e08521c1f863ace9 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -62,11 +62,11 @@ Foam::uniformJumpAMIFvPatchField<Type>::uniformJumpAMIFvPatchField ) : fixedJumpAMIFvPatchField<Type>(p, iF), - jumpTable_(new DataEntry<Type>("jumpTable")) + jumpTable_(new Function1<Type>("jumpTable")) { if (this->cyclicAMIPatch().owner()) { - jumpTable_ = DataEntry<Type>::New("jumpTable", dict); + jumpTable_ = Function1<Type>::New("jumpTable", dict); } if (dict.found("value")) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.H index 392f09018bf998b854cdc2ead1d29829e9784471..b0b79cfab10bfa87eff4e0b08a57a8eb02ca1f53 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.H @@ -53,7 +53,7 @@ Description The above example shows the use of a fixed jump of '10'. Note - The uniformValue entry is a DataEntry type, able to describe time + The uniformValue entry is a Function1 type, able to describe time varying functions. The example above gives the usage for supplying a constant value. @@ -71,7 +71,7 @@ SourceFiles #define uniformJumpAMIFvPatchField_H #include "fixedJumpAMIFvPatchField.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -93,7 +93,7 @@ protected: // Protected data //- "jump" table - autoPtr<DataEntry<Type>> jumpTable_; + autoPtr<Function1<Type>> jumpTable_; public: diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.C index 52ecf6fe4f197f22ff7a82cc57f121a4f41f2bfd..29841b6932f801876a339fc7d9385e1df2b06572 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -62,7 +62,7 @@ uniformTotalPressureFvPatchScalarField rhoName_(dict.lookupOrDefault<word>("rho", "none")), psiName_(dict.lookupOrDefault<word>("psi", "none")), gamma_(readScalar(dict.lookup("gamma"))), - pressure_(DataEntry<scalar>::New("pressure", dict)) + pressure_(Function1<scalar>::New("pressure", dict)) { if (dict.found("value")) { diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.H index 17715b7fce68305d066a2cde05b4c2c21eb687ab..bc931db701446ebddf615b5329c194b2c411547b 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.H @@ -57,7 +57,7 @@ Description } \endverbatim - The \c pressure entry is specified as a DataEntry type, able to describe + The \c pressure entry is specified as a Function1 type, able to describe time varying functions. Note @@ -65,7 +65,7 @@ Note SeeAlso - Foam::DataEntry + Foam::Function1 Foam::uniformFixedValueFvPatchField Foam::totalPressureFvPatchField @@ -78,7 +78,7 @@ SourceFiles #define uniformTotalPressureFvPatchScalarField_H #include "fixedValueFvPatchFields.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -112,7 +112,7 @@ class uniformTotalPressureFvPatchScalarField scalar gamma_; //- Table of time vs total pressure, including the bounding treatment - autoPtr<DataEntry<scalar>> pressure_; + autoPtr<Function1<scalar>> pressure_; public: diff --git a/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.C b/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.C index 124d2408c53378d1478b977f91b3d9e8f65dc871..7d3b5a8d7c0ef16366fc6d8e7f0f311942efbc78 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.C +++ b/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.C @@ -121,7 +121,7 @@ timeVaryingMappedFixedValuePointPatchField { if (dict.found("offset")) { - offset_ = DataEntry<Type>::New("offset", dict); + offset_ = Function1<Type>::New("offset", dict); } dict.readIfPresent("fieldTableName", fieldTableName_); diff --git a/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.H b/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.H index 1dd70b70125cb0b5030be4a9b2197a45e3c5f063..d285b0b97db0259e1ebb8a481dfaba3aeea28125 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.H +++ b/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.H @@ -41,7 +41,7 @@ SourceFiles #include "fixedValuePointPatchField.H" #include "instantList.H" #include "pointToPointPlanarInterpolation.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -96,7 +96,7 @@ class timeVaryingMappedFixedValuePointPatchField Type endAverage_; //- Time varying offset values to interpolated data - autoPtr<DataEntry<Type>> offset_; + autoPtr<Function1<Type>> offset_; public: diff --git a/src/fvOptions/constraints/derived/fixedTemperatureConstraint/fixedTemperatureConstraint.C b/src/fvOptions/constraints/derived/fixedTemperatureConstraint/fixedTemperatureConstraint.C index f982abbb40a403bc6ea31eff0dd83dfc75f6ac2c..b95e2f8b2e72ffefe404e4646832257c554905ad 100644 --- a/src/fvOptions/constraints/derived/fixedTemperatureConstraint/fixedTemperatureConstraint.C +++ b/src/fvOptions/constraints/derived/fixedTemperatureConstraint/fixedTemperatureConstraint.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -78,7 +78,7 @@ Foam::fv::fixedTemperatureConstraint::fixedTemperatureConstraint { Tuniform_.reset ( - DataEntry<scalar>::New("temperature", coeffs_).ptr() + Function1<scalar>::New("temperature", coeffs_).ptr() ); break; } @@ -153,7 +153,7 @@ bool Foam::fv::fixedTemperatureConstraint::read(const dictionary& dict) { Tuniform_.reset ( - DataEntry<scalar>::New(Tuniform_->name(), dict).ptr() + Function1<scalar>::New(Tuniform_->name(), dict).ptr() ); } diff --git a/src/fvOptions/constraints/derived/fixedTemperatureConstraint/fixedTemperatureConstraint.H b/src/fvOptions/constraints/derived/fixedTemperatureConstraint/fixedTemperatureConstraint.H index 7c5ae7cecab55f4dde730c576a8d2dba6b5da043..f2b7029425a58d3ddf87b585a7507d92c18b2718 100644 --- a/src/fvOptions/constraints/derived/fixedTemperatureConstraint/fixedTemperatureConstraint.H +++ b/src/fvOptions/constraints/derived/fixedTemperatureConstraint/fixedTemperatureConstraint.H @@ -42,7 +42,7 @@ Description Note: The 'uniform' option allows the use of a time-varying uniform temperature - by means of the DataEntry type. + by means of the Function1 type. SourceFiles fvOption.C @@ -54,7 +54,7 @@ SourceFiles #include "cellSetOption.H" #include "NamedEnum.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -94,7 +94,7 @@ protected: temperatureMode mode_; //- Uniform temperature [K] - autoPtr<DataEntry<scalar>> Tuniform_; + autoPtr<Function1<scalar>> Tuniform_; //- Temperature field name word TName_; diff --git a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeInjection/ConeInjection.C b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeInjection/ConeInjection.C index d71e1b070eb8f89a70206b040814c6e671fa677d..34ef7c273fc3837ccb07ff967fe96b67bdf6249d 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeInjection/ConeInjection.C +++ b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeInjection/ConeInjection.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -24,7 +24,7 @@ License \*---------------------------------------------------------------------------*/ #include "ConeInjection.H" -#include "TimeDataEntry.H" +#include "TimeFunction1.H" #include "mathematicalConstants.H" #include "unitConversion.H" @@ -52,7 +52,7 @@ Foam::ConeInjection<CloudType>::ConeInjection ), flowRateProfile_ ( - TimeDataEntry<scalar> + TimeFunction1<scalar> ( owner.db().time(), "flowRateProfile", @@ -61,7 +61,7 @@ Foam::ConeInjection<CloudType>::ConeInjection ), Umag_ ( - TimeDataEntry<scalar> + TimeFunction1<scalar> ( owner.db().time(), "Umag", @@ -70,7 +70,7 @@ Foam::ConeInjection<CloudType>::ConeInjection ), thetaInner_ ( - TimeDataEntry<scalar> + TimeFunction1<scalar> ( owner.db().time(), "thetaInner", @@ -79,7 +79,7 @@ Foam::ConeInjection<CloudType>::ConeInjection ), thetaOuter_ ( - TimeDataEntry<scalar> + TimeFunction1<scalar> ( owner.db().time(), "thetaOuter", diff --git a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeInjection/ConeInjection.H b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeInjection/ConeInjection.H index 614ea43f615ad9b5a1a96774f90608bec6750d47..e993410345a99f9f79665686862dbe9b2ad4638a 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeInjection/ConeInjection.H +++ b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeInjection/ConeInjection.H @@ -45,7 +45,7 @@ SourceFiles #include "InjectionModel.H" #include "distributionModel.H" #include "vectorList.H" -#include "TimeDataEntry.H" +#include "TimeFunction1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -82,16 +82,16 @@ class ConeInjection const label parcelsPerInjector_; //- Flow rate profile relative to SOI [] - const TimeDataEntry<scalar> flowRateProfile_; + const TimeFunction1<scalar> flowRateProfile_; //- Parcel velocity magnitude relative to SOI [m/s] - const TimeDataEntry<scalar> Umag_; + const TimeFunction1<scalar> Umag_; //- Inner half-cone angle relative to SOI [deg] - const TimeDataEntry<scalar> thetaInner_; + const TimeFunction1<scalar> thetaInner_; //- Outer half-cone angle relative to SOI [deg] - const TimeDataEntry<scalar> thetaOuter_; + const TimeFunction1<scalar> thetaOuter_; //- Parcel size distribution model const autoPtr<distributionModels::distributionModel> sizeDistribution_; diff --git a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeNozzleInjection/ConeNozzleInjection.C b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeNozzleInjection/ConeNozzleInjection.C index 58538988d91af6d6aa66453da846e1f5cf899bfa..3100a6b7032283c9cbdb7dad530744ec4f8fb93e 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeNozzleInjection/ConeNozzleInjection.C +++ b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeNozzleInjection/ConeNozzleInjection.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -24,7 +24,7 @@ License \*---------------------------------------------------------------------------*/ #include "ConeNozzleInjection.H" -#include "TimeDataEntry.H" +#include "TimeFunction1.H" #include "mathematicalConstants.H" #include "distributionModel.H" @@ -119,7 +119,7 @@ Foam::ConeNozzleInjection<CloudType>::ConeNozzleInjection ), flowRateProfile_ ( - TimeDataEntry<scalar> + TimeFunction1<scalar> ( owner.db().time(), "flowRateProfile", @@ -128,7 +128,7 @@ Foam::ConeNozzleInjection<CloudType>::ConeNozzleInjection ), thetaInner_ ( - TimeDataEntry<scalar> + TimeFunction1<scalar> ( owner.db().time(), "thetaInner", @@ -137,7 +137,7 @@ Foam::ConeNozzleInjection<CloudType>::ConeNozzleInjection ), thetaOuter_ ( - TimeDataEntry<scalar> + TimeFunction1<scalar> ( owner.db().time(), "thetaOuter", diff --git a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeNozzleInjection/ConeNozzleInjection.H b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeNozzleInjection/ConeNozzleInjection.H index 0440265f07092b5c0774c45832f2a742a183f21a..a8fd69d9d1936de3b1bfba36b44d7a30ca302697 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeNozzleInjection/ConeNozzleInjection.H +++ b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/ConeNozzleInjection/ConeNozzleInjection.H @@ -63,7 +63,7 @@ namespace Foam // Forward declaration of classes template<class Type> -class TimeDataEntry; +class TimeFunction1; class distributionModel; @@ -132,13 +132,13 @@ private: const label parcelsPerSecond_; //- Flow rate profile relative to SOI [] - const TimeDataEntry<scalar> flowRateProfile_; + const TimeFunction1<scalar> flowRateProfile_; //- Inner half-cone angle relative to SOI [deg] - const TimeDataEntry<scalar> thetaInner_; + const TimeFunction1<scalar> thetaInner_; //- Outer half-cone angle relative to SOI [deg] - const TimeDataEntry<scalar> thetaOuter_; + const TimeFunction1<scalar> thetaOuter_; //- Parcel size PDF model const autoPtr<distributionModels::distributionModel> sizeDistribution_; @@ -162,10 +162,10 @@ private: scalar UMag_; //- Discharge coefficient, relative to SOI [m/s] - TimeDataEntry<scalar> Cd_; + TimeFunction1<scalar> Cd_; //- Injection pressure [Pa] - TimeDataEntry<scalar> Pinj_; + TimeFunction1<scalar> Pinj_; // Private Member Functions diff --git a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/InflationInjection/InflationInjection.C b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/InflationInjection/InflationInjection.C index d770ab18d76d9e70cbe33e393f938a3ce43193eb..f33f45d86efac7157d81db1dd6684240ca2f7bf1 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/InflationInjection/InflationInjection.C +++ b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/InflationInjection/InflationInjection.C @@ -49,7 +49,7 @@ Foam::InflationInjection<CloudType>::InflationInjection duration_(readScalar(this->coeffDict().lookup("duration"))), flowRateProfile_ ( - TimeDataEntry<scalar> + TimeFunction1<scalar> ( owner.db().time(), "flowRateProfile", @@ -58,7 +58,7 @@ Foam::InflationInjection<CloudType>::InflationInjection ), growthRate_ ( - TimeDataEntry<scalar> + TimeFunction1<scalar> ( owner.db().time(), "growthRate", diff --git a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/InflationInjection/InflationInjection.H b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/InflationInjection/InflationInjection.H index ec2d13eaa598a53ae515c6916a561319324d9ec2..799243fdaeb6a113ad29f2d346d70eb940cfb57f 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/InflationInjection/InflationInjection.H +++ b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/InflationInjection/InflationInjection.H @@ -84,10 +84,10 @@ class InflationInjection scalar duration_; //- Flow rate profile relative to SOI [m3/s] - TimeDataEntry<scalar> flowRateProfile_; + TimeFunction1<scalar> flowRateProfile_; //- Growth rate of particle diameters towards target [m/s] - TimeDataEntry<scalar> growthRate_; + TimeFunction1<scalar> growthRate_; //- Positions, velocities, diameters and target diameters of // new particles after splitting diff --git a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/InjectionModel/InjectionModel.H b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/InjectionModel/InjectionModel.H index 964194b6b6a5b075189fa77d664ecf88277674a0..1f3dd7beb59b37ad0ca48a9748171cf3ced92569 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/InjectionModel/InjectionModel.H +++ b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/InjectionModel/InjectionModel.H @@ -53,7 +53,7 @@ SourceFiles #include "runTimeSelectionTables.H" #include "CloudSubModelBase.H" #include "vector.H" -#include "TimeDataEntry.H" +#include "TimeFunction1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -104,7 +104,7 @@ protected: scalar massTotal_; //- Mass flow rate profile for steady calculations - TimeDataEntry<scalar> massFlowRate_; + TimeFunction1<scalar> massFlowRate_; //- Total mass injected to date [kg] scalar massInjected_; diff --git a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchFlowRateInjection/PatchFlowRateInjection.C b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchFlowRateInjection/PatchFlowRateInjection.C index da721e70b234ee48946ea3afffebd789e4eb24c4..b5dbd756ed4161124ffa79d484323fb35c454071 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchFlowRateInjection/PatchFlowRateInjection.C +++ b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchFlowRateInjection/PatchFlowRateInjection.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -24,7 +24,7 @@ License \*---------------------------------------------------------------------------*/ #include "PatchFlowRateInjection.H" -#include "TimeDataEntry.H" +#include "TimeFunction1.H" #include "distributionModel.H" #include "mathematicalConstants.H" #include "surfaceFields.H" @@ -46,7 +46,7 @@ Foam::PatchFlowRateInjection<CloudType>::PatchFlowRateInjection duration_(readScalar(this->coeffDict().lookup("duration"))), concentration_ ( - TimeDataEntry<scalar> + TimeFunction1<scalar> ( owner.db().time(), "concentration", diff --git a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchFlowRateInjection/PatchFlowRateInjection.H b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchFlowRateInjection/PatchFlowRateInjection.H index c733930a3618ded1b6fb571ad8df2622063028c0..e09bcbe3a600812563a02e0f4d551abc60ffa58e 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchFlowRateInjection/PatchFlowRateInjection.H +++ b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchFlowRateInjection/PatchFlowRateInjection.H @@ -47,7 +47,7 @@ SourceFiles #include "InjectionModel.H" #include "patchInjectionBase.H" -#include "TimeDataEntry.H" +#include "TimeFunction1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -78,7 +78,7 @@ class PatchFlowRateInjection scalar duration_; //- Concentration profile of particle volume to carrier volume [-] - const TimeDataEntry<scalar> concentration_; + const TimeFunction1<scalar> concentration_; //- Parcels to introduce per unit volume flow rate m3 [n/m3] const scalar parcelConcentration_; diff --git a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/PatchInjection.C b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/PatchInjection.C index c858a27d01dd866f40eaf76099cf07f3cc08b0ee..1a214708323594c9d887241a549be0b9ec8a70de 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/PatchInjection.C +++ b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/PatchInjection.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -24,7 +24,7 @@ License \*---------------------------------------------------------------------------*/ #include "PatchInjection.H" -#include "TimeDataEntry.H" +#include "TimeFunction1.H" #include "distributionModel.H" // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // @@ -47,7 +47,7 @@ Foam::PatchInjection<CloudType>::PatchInjection U0_(this->coeffDict().lookup("U0")), flowRateProfile_ ( - TimeDataEntry<scalar> + TimeFunction1<scalar> ( owner.db().time(), "flowRateProfile", diff --git a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/PatchInjection.H b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/PatchInjection.H index 47cf2eaa06af1b17c11a2008baf66b8bdd4a8ccb..2f53a8e03812bb6509552f4e6355bb55d005fae9 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/PatchInjection.H +++ b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/PatchInjection.H @@ -52,7 +52,7 @@ namespace Foam { template<class Type> -class TimeDataEntry; +class TimeFunction1; class distributionModel; @@ -78,7 +78,7 @@ class PatchInjection const vector U0_; //- Flow rate profile relative to SOI [] - const TimeDataEntry<scalar> flowRateProfile_; + const TimeFunction1<scalar> flowRateProfile_; //- Parcel size distribution model const autoPtr<distributionModels::distributionModel> sizeDistribution_; diff --git a/src/mesh/extrudeModel/radial/radial.C b/src/mesh/extrudeModel/radial/radial.C index c2aae13fedccdf3d7dc8eafbd0f8fb881f0bd618..a27ebad2c4e4727001e5ff72cdd6b654430c4742 100644 --- a/src/mesh/extrudeModel/radial/radial.C +++ b/src/mesh/extrudeModel/radial/radial.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -45,7 +45,7 @@ addToRunTimeSelectionTable(extrudeModel, radial, dictionary); radial::radial(const dictionary& dict) : extrudeModel(typeName, dict), - R_(DataEntry<scalar>::New("R", coeffDict_)) + R_(Function1<scalar>::New("R", coeffDict_)) {} diff --git a/src/mesh/extrudeModel/radial/radial.H b/src/mesh/extrudeModel/radial/radial.H index d05971ff0d2e44b43adf988cf2ce9da014022acb..2143cde47dd7d3e2f451ae31a30ee2348d19ac89 100644 --- a/src/mesh/extrudeModel/radial/radial.H +++ b/src/mesh/extrudeModel/radial/radial.H @@ -32,7 +32,7 @@ Description #define radial_H #include "extrudeModel.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -51,7 +51,7 @@ class radial { // Private data - autoPtr<DataEntry<scalar>> R_; + autoPtr<Function1<scalar>> R_; public: diff --git a/src/postProcessing/functionObjects/utilities/setTimeStep/setTimeStepFunctionObject.C b/src/postProcessing/functionObjects/utilities/setTimeStep/setTimeStepFunctionObject.C index e4c664e6c95f963b7c2fbc555a1efef551503a91..36cef8238563880c4e9984020ced6403120efca2 100644 --- a/src/postProcessing/functionObjects/utilities/setTimeStep/setTimeStepFunctionObject.C +++ b/src/postProcessing/functionObjects/utilities/setTimeStep/setTimeStepFunctionObject.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -120,7 +120,7 @@ bool Foam::setTimeStepFunctionObject::read(const dictionary& dict) if (enabled_) { - timeStepPtr_ = DataEntry<scalar>::New("deltaT", dict); + timeStepPtr_ = Function1<scalar>::New("deltaT", dict); // Check that time has adjustTimeStep const dictionary& controlDict = time_.controlDict(); diff --git a/src/postProcessing/functionObjects/utilities/setTimeStep/setTimeStepFunctionObject.H b/src/postProcessing/functionObjects/utilities/setTimeStep/setTimeStepFunctionObject.H index 3ecfa51e828efae55149c15d53796abfabb155ca..1749d3d4a74f71c5c2a05a98c09caba5750f226d 100644 --- a/src/postProcessing/functionObjects/utilities/setTimeStep/setTimeStepFunctionObject.H +++ b/src/postProcessing/functionObjects/utilities/setTimeStep/setTimeStepFunctionObject.H @@ -44,7 +44,7 @@ SourceFiles #include "functionObject.H" #include "dictionary.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -71,7 +71,7 @@ class setTimeStepFunctionObject bool enabled_; //- Time step - autoPtr<DataEntry<scalar>> timeStepPtr_; + autoPtr<Function1<scalar>> timeStepPtr_; //- Disallow default bitwise copy construct diff --git a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.C b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.C index 8bf37add3a0923f2bb929296f1fb66bf94011f8e..790ff3ab603139f8e687b183508c430997767b9b 100644 --- a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.C +++ b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -69,9 +69,9 @@ inclinedFilmNusseltHeightFvPatchScalarField ) : fixedValueFvPatchScalarField(p, iF), - GammaMean_(DataEntry<scalar>::New("GammaMean", dict)), - a_(DataEntry<scalar>::New("a", dict)), - omega_(DataEntry<scalar>::New("omega", dict)) + GammaMean_(Function1<scalar>::New("GammaMean", dict)), + a_(Function1<scalar>::New("a", dict)), + omega_(Function1<scalar>::New("omega", dict)) { fvPatchScalarField::operator=(scalarField("value", dict, p.size())); } diff --git a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.H b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.H index e9cd1669fb6aa9dd0f058513649ec0e39158cc66..151854be45a69d4f7aa8e855fafb0fbcc0ec8442 100644 --- a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.H +++ b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.H @@ -39,7 +39,7 @@ SourceFiles #include "fvPatchFields.H" #include "fixedValueFvPatchFields.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -57,13 +57,13 @@ class inclinedFilmNusseltHeightFvPatchScalarField // Private data //- Mean mass flow rate per unit length [kg/s/m] - autoPtr<DataEntry<scalar>> GammaMean_; + autoPtr<Function1<scalar>> GammaMean_; //- Perturbation amplitude [m] - autoPtr<DataEntry<scalar>> a_; + autoPtr<Function1<scalar>> a_; //- Perturbation frequency [rad/s/m] - autoPtr<DataEntry<scalar>> omega_; + autoPtr<Function1<scalar>> omega_; public: diff --git a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.C b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.C index a49c093b380528d1a41f404c5a395b98a5e418df..78f75a30a9620282eaff53924dfce47357c59eaa 100644 --- a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.C +++ b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -69,9 +69,9 @@ inclinedFilmNusseltInletVelocityFvPatchVectorField ) : fixedValueFvPatchVectorField(p, iF), - GammaMean_(DataEntry<scalar>::New("GammaMean", dict)), - a_(DataEntry<scalar>::New("a", dict)), - omega_(DataEntry<scalar>::New("omega", dict)) + GammaMean_(Function1<scalar>::New("GammaMean", dict)), + a_(Function1<scalar>::New("a", dict)), + omega_(Function1<scalar>::New("omega", dict)) { fvPatchVectorField::operator=(vectorField("value", dict, p.size())); } diff --git a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.H b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.H index 40327fa796d2654bcd22dba7686961933cecdd9e..5e56c6c9e7746719376d0897fc5a947da44b4b81 100644 --- a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.H +++ b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.H @@ -39,7 +39,7 @@ SourceFiles #include "fvPatchFields.H" #include "fixedValueFvPatchFields.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -57,13 +57,13 @@ class inclinedFilmNusseltInletVelocityFvPatchVectorField // Private data //- Mean mass flow rate per unit length [kg/s/m] - autoPtr<DataEntry<scalar>> GammaMean_; + autoPtr<Function1<scalar>> GammaMean_; //- Perturbation amplitude [m] - autoPtr<DataEntry<scalar>> a_; + autoPtr<Function1<scalar>> a_; //- Perturbation frequency [rad/s/m] - autoPtr<DataEntry<scalar>> omega_; + autoPtr<Function1<scalar>> omega_; public: diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.H b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.H index d79893cc0bf2b585e02b6be0af28c975866422a2..44c95ab72bc37292fe989f08dd960a75dbf79328 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.H +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.H @@ -44,7 +44,7 @@ SourceFiles #define energyJumpFvPatchScalarField_H #include "fixedJumpFvPatchField.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/transportModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.C b/src/transportModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.C index e39da64c06712b6429facde9593317cf45fe28a1..5eba3cc0b6c371746f979128a3aa7fe8e86c456b 100644 --- a/src/transportModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.C +++ b/src/transportModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -53,7 +53,7 @@ temperatureDependentAlphaContactAngleFvPatchScalarField : alphaContactAngleFvPatchScalarField(p, iF, dict), TName_(dict.lookupOrDefault<word>("T", "T")), - theta0_(DataEntry<scalar>::New("theta0", dict)) + theta0_(Function1<scalar>::New("theta0", dict)) { evaluate(); } diff --git a/src/transportModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.H b/src/transportModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.H index 64c766bf7bd97eb0ae410c243f83fb6de7ce5313..4725daa9c9fd7631303e7a8ef44c06cabbc4f0d9 100644 --- a/src/transportModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.H +++ b/src/transportModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.H @@ -57,7 +57,7 @@ SourceFiles #define temperatureDependentAlphaContactAngleFvPatchScalarField_H #include "alphaContactAngleFvPatchScalarField.H" -#include "DataEntry.H" +#include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -78,7 +78,7 @@ class temperatureDependentAlphaContactAngleFvPatchScalarField word TName_; //- Equilibrium contact angle table - autoPtr<DataEntry<scalar>> theta0_; + autoPtr<Function1<scalar>> theta0_; public: