diff --git a/applications/test/Function1/Make/files b/applications/test/Function1/Make/files
new file mode 100644
index 0000000000..6647a7cbbe
--- /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 cde0801610..ab4baee150 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 .
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
+ autoPtr> function1
(
- DataEntry::New
+ Function1::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 b2511690f4..07196014b7 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 c514002f99..0000000000
--- 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 87615d18e3..43597560f0 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 pData("pressure", dict, "Data");
+ Function1Types::CSV 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 c518262cd9..8095873f5a 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(dict.lookup("data"))),
fieldData_("fieldData", dict, p.size()),
- timeVsData_(DataEntry::New("timeVsData", dict)),
+ timeVsData_(Function1::New("timeVsData", dict)),
wordData_(dict.lookupOrDefault("wordName", "wordDefault")),
labelData_(-1),
boolData_(false)
@@ -203,7 +203,10 @@ void Foam::CLASS::updateCoeffs()
);
const scalarField& phip =
- this->patch().template lookupPatchField("phi");
+ this->patch().template lookupPatchField
+ (
+ "phi"
+ );
this->valueFraction() = 1.0 - pos(phip);
PARENT::updateCoeffs();
diff --git a/etc/codeTemplates/BC/BC.H b/etc/codeTemplates/BC/BC.H
index 14bbcb76cf..27e5ac12dd 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> timeVsData_;
+ autoPtr> 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 6fa473e688..fac98db233 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 6b271cfc1d..3f325fd453 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 ae42db3989..ec9dfa6ea4 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(p, iF, dict, false),
- uniformValue_(DataEntry::New("uniformValue", dict))
+ uniformValue_(Function1::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 0a3f45df6a..d0d76fd083 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> uniformValue_;
+ autoPtr> uniformValue_;
public:
@@ -150,7 +150,7 @@ public:
// Access
//- Return the fluctuation scale
- const DataEntry& uniformValue() const
+ const Function1& 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 a126e05dac..9ba3366732 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::readValue
+Foam::label Foam::Function1Types::CSV::readValue
(
const List& splitted
)
@@ -48,7 +48,7 @@ Foam::label Foam::DataEntryTypes::CSV::readValue
template<>
-Foam::scalar Foam::DataEntryTypes::CSV::readValue
+Foam::scalar Foam::Function1Types::CSV::readValue
(
const List& splitted
)
@@ -66,7 +66,7 @@ Foam::scalar Foam::DataEntryTypes::CSV::readValue
template
-Type Foam::DataEntryTypes::CSV::readValue(const List& splitted)
+Type Foam::Function1Types::CSV::readValue(const List& splitted)
{
Type result;
@@ -89,7 +89,7 @@ Type Foam::DataEntryTypes::CSV::readValue(const List& splitted)
template
-void Foam::DataEntryTypes::CSV::read()
+void Foam::Function1Types::CSV::read()
{
fileName expandedFile(fName_);
IFstream is(expandedFile.expand());
@@ -200,7 +200,7 @@ void Foam::DataEntryTypes::CSV::read()
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template
-Foam::DataEntryTypes::CSV::CSV
+Foam::Function1Types::CSV::CSV
(
const word& entryName,
const dictionary& dict,
@@ -231,7 +231,7 @@ Foam::DataEntryTypes::CSV::CSV
template
-Foam::DataEntryTypes::CSV::CSV(const CSV& tbl)
+Foam::Function1Types::CSV::CSV(const CSV& tbl)
:
TableBase(tbl),
nHeaderLine_(tbl.nHeaderLine_),
@@ -246,14 +246,14 @@ Foam::DataEntryTypes::CSV::CSV(const CSV& tbl)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template
-Foam::DataEntryTypes::CSV::~CSV()
+Foam::Function1Types::CSV::~CSV()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template
-const Foam::fileName& Foam::DataEntryTypes::CSV::fName() const
+const Foam::fileName& Foam::Function1Types::CSV::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 40bc214c69..08ff3d52ef 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 .
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 CSV;
};
template
-Ostream& operator<<(Ostream&, const DataEntryTypes::CSV&);
+Ostream& operator<<(Ostream&, const Function1Types::CSV&);
-namespace DataEntryTypes
+namespace Function1Types
{
/*---------------------------------------------------------------------------*\
@@ -139,9 +139,9 @@ public:
CSV(const CSV& tbl);
//- Construct and return a clone
- virtual tmp> clone() const
+ virtual tmp> clone() const
{
- return tmp>(new CSV(*this));
+ return tmp>(new CSV(*this));
}
@@ -180,7 +180,7 @@ Foam::scalar CSV::readValue(const List& 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 286072ec54..5b4785b50d 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
Foam::Ostream& Foam::operator<<
(
Ostream& os,
- const DataEntryTypes::CSV& tbl
+ const Function1Types::CSV& tbl
)
{
- os << static_cast& >(tbl)
+ os << static_cast& >(tbl)
<< token::SPACE << tbl.nHeaderLine_
<< token::SPACE << tbl.timeColumn_
<< token::SPACE << tbl.componentColumns_
@@ -50,9 +50,9 @@ Foam::Ostream& Foam::operator<<
template
-void Foam::DataEntryTypes::CSV::writeData(Ostream& os) const
+void Foam::Function1Types::CSV::writeData(Ostream& os) const
{
- DataEntry::writeData(os);
+ Function1::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 8a9758d4ca..ecc7ce732c 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
-Foam::DataEntryTypes::Constant::Constant
+Foam::Function1Types::Constant::Constant
(
const word& entryName,
const dictionary& dict
)
:
- DataEntry(entryName),
+ Function1(entryName),
value_(pTraits::zero)
{
Istream& is(dict.lookup(entryName));
@@ -44,21 +44,21 @@ Foam::DataEntryTypes::Constant::Constant
template
-Foam::DataEntryTypes::Constant::Constant
+Foam::Function1Types::Constant::Constant
(
const word& entryName,
Istream& is
)
:
- DataEntry(entryName),
+ Function1(entryName),
value_(pTraits(is))
{}
template
-Foam::DataEntryTypes::Constant::Constant(const Constant& cnst)
+Foam::Function1Types::Constant::Constant(const Constant& cnst)
:
- DataEntry(cnst),
+ Function1(cnst),
value_(cnst.value_)
{}
@@ -66,21 +66,21 @@ Foam::DataEntryTypes::Constant::Constant(const Constant& cnst)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template
-Foam::DataEntryTypes::Constant::~Constant()
+Foam::Function1Types::Constant::~Constant()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template
-Type Foam::DataEntryTypes::Constant::value(const scalar x) const
+Type Foam::Function1Types::Constant::value(const scalar x) const
{
return value_;
}
template
-Type Foam::DataEntryTypes::Constant::integrate
+Type Foam::Function1Types::Constant::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 a1e5df884f..756e65af53 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 .
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 Constant;
};
template
-Ostream& operator<<(Ostream&, const DataEntryTypes::Constant&);
+Ostream& operator<<(Ostream&, const Function1Types::Constant&);
-namespace DataEntryTypes
+namespace Function1Types
{
/*---------------------------------------------------------------------------*\
@@ -66,7 +66,7 @@ namespace DataEntryTypes
template
class Constant
:
- public DataEntry
+ public Function1
{
// 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& cnst);
//- Construct and return a clone
- virtual tmp> clone() const
+ virtual tmp> clone() const
{
- return tmp>(new Constant(*this));
+ return tmp>(new Constant(*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 f3b63b380a..bbc5141929 100644
--- a/src/OpenFOAM/primitives/functions/DataEntry/Constant/ConstantIO.C
+++ b/src/OpenFOAM/primitives/functions/Function1/Constant/ConstantIO.C
@@ -31,10 +31,10 @@ template
Foam::Ostream& Foam::operator<<
(
Ostream& os,
- const DataEntryTypes::Constant& cnst
+ const Function1Types::Constant& cnst
)
{
- os << static_cast& >(cnst)
+ os << static_cast& >(cnst)
<< token::SPACE << cnst.value_;
// Check state of Ostream
@@ -48,9 +48,9 @@ Foam::Ostream& Foam::operator<<
template
-void Foam::DataEntryTypes::Constant::writeData(Ostream& os) const
+void Foam::Function1Types::Constant::writeData(Ostream& os) const
{
- DataEntry::writeData(os);
+ Function1::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 ab14e40800..bfd21c2e30 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
-Foam::DataEntry::DataEntry(const word& entryName)
+Foam::Function1::Function1(const word& entryName)
:
refCount(),
name_(entryName)
@@ -37,7 +37,7 @@ Foam::DataEntry::DataEntry(const word& entryName)
template
-Foam::DataEntry::DataEntry(const DataEntry& de)
+Foam::Function1::Function1(const Function1& de)
:
refCount(),
name_(de.name_)
@@ -47,28 +47,28 @@ Foam::DataEntry::DataEntry(const DataEntry& de)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template
-Foam::DataEntry::~DataEntry()
+Foam::Function1::~Function1()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template
-const Foam::word& Foam::DataEntry::name() const
+const Foam::word& Foam::Function1::name() const
{
return name_;
}
template
-void Foam::DataEntry::convertTimeBase(const Time&)
+void Foam::Function1::convertTimeBase(const Time&)
{
// do nothing
}
template
-Type Foam::DataEntry::value(const scalar x) const
+Type Foam::Function1::value(const scalar x) const
{
NotImplemented;
@@ -77,7 +77,7 @@ Type Foam::DataEntry::value(const scalar x) const
template
-Type Foam::DataEntry::integrate(const scalar x1, const scalar x2) const
+Type Foam::Function1::integrate(const scalar x1, const scalar x2) const
{
NotImplemented;
@@ -86,7 +86,7 @@ Type Foam::DataEntry::integrate(const scalar x1, const scalar x2) const
template
-Foam::tmp> Foam::DataEntry::value
+Foam::tmp> Foam::Function1::value
(
const scalarField& x
) const
@@ -103,7 +103,7 @@ Foam::tmp> Foam::DataEntry::value
template
-Foam::tmp> Foam::DataEntry::integrate
+Foam::tmp> Foam::Function1::integrate
(
const scalarField& x1,
const scalarField& x2
@@ -122,6 +122,6 @@ Foam::tmp> Foam::DataEntry::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 63fd851b12..a5c77c2527 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 .
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 DataEntry;
-template Ostream& operator<<(Ostream&, const DataEntry&);
+template class Function1;
+template Ostream& operator<<(Ostream&, const Function1&);
/*---------------------------------------------------------------------------*\
- Class DataEntry Declaration
+ Class Function1 Declaration
\*---------------------------------------------------------------------------*/
template
-class DataEntry
+class Function1
:
public refCount
{
// Private Member Functions
//- Disallow default bitwise assignment
- void operator=(const DataEntry&);
+ void operator=(const Function1&);
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& de);
+ Function1(const Function1& de);
//- Construct and return a clone
- virtual tmp> clone() const
+ virtual tmp> clone() const
{
- return tmp>(new DataEntry(*this));
+ return tmp>(new Function1(*this));
}
//- Selector
- static autoPtr> New
+ static autoPtr> 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<<
(
Ostream& os,
- const DataEntry& de
+ const Function1& de
);
//- Write in dictionary format
@@ -176,29 +176,29 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-#define makeDataEntry(Type) \
+#define makeFunction1(Type) \
\
- defineNamedTemplateTypeNameAndDebug(DataEntry, 0); \
+ defineNamedTemplateTypeNameAndDebug(Function1, 0); \
\
defineTemplateRunTimeSelectionTable \
( \
- DataEntry, \
+ Function1, \
dictionary \
);
-#define makeDataEntryType(SS, Type) \
+#define makeFunction1Type(SS, Type) \
\
- defineNamedTemplateTypeNameAndDebug(DataEntryTypes::SS, 0); \
+ defineNamedTemplateTypeNameAndDebug(Function1Types::SS, 0); \
\
- DataEntry::adddictionaryConstructorToTable> \
+ Function1::adddictionaryConstructorToTable> \
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 326a2a4259..6e3b14ba0c 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