functionObjects::Peclet -> functionObjects::PecletNo for consistency with functionObjects::CourantNo

This commit is contained in:
Henry Weller
2016-05-22 11:18:16 +01:00
parent 8f68a493e8
commit 43110ffd38
3 changed files with 18 additions and 18 deletions

View File

@ -40,6 +40,6 @@ vorticity/vorticity.C
Q/Q.C Q/Q.C
Lambda2/Lambda2.C Lambda2/Lambda2.C
CourantNo/CourantNo.C CourantNo/CourantNo.C
Peclet/Peclet.C PecletNo/PecletNo.C
LIB = $(FOAM_LIBBIN)/libfieldFunctionObjects LIB = $(FOAM_LIBBIN)/libfieldFunctionObjects

View File

@ -23,7 +23,7 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "Peclet.H" #include "PecletNo.H"
#include "turbulenceModel.H" #include "turbulenceModel.H"
#include "surfaceInterpolate.H" #include "surfaceInterpolate.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
@ -34,12 +34,12 @@ namespace Foam
{ {
namespace functionObjects namespace functionObjects
{ {
defineTypeNameAndDebug(Peclet, 0); defineTypeNameAndDebug(PecletNo, 0);
addToRunTimeSelectionTable addToRunTimeSelectionTable
( (
functionObject, functionObject,
Peclet, PecletNo,
dictionary dictionary
); );
} }
@ -48,7 +48,7 @@ namespace functionObjects
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::functionObjects::Peclet::Peclet Foam::functionObjects::PecletNo::PecletNo
( (
const word& name, const word& name,
const Time& runTime, const Time& runTime,
@ -63,13 +63,13 @@ Foam::functionObjects::Peclet::Peclet
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::functionObjects::Peclet::~Peclet() Foam::functionObjects::PecletNo::~PecletNo()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool Foam::functionObjects::Peclet::read(const dictionary& dict) bool Foam::functionObjects::PecletNo::read(const dictionary& dict)
{ {
fieldExpression::read(dict); fieldExpression::read(dict);
@ -79,7 +79,7 @@ bool Foam::functionObjects::Peclet::read(const dictionary& dict)
} }
bool Foam::functionObjects::Peclet::execute(const bool postProcess) bool Foam::functionObjects::PecletNo::execute(const bool postProcess)
{ {
if (foundField<surfaceScalarField>(phiName_)) if (foundField<surfaceScalarField>(phiName_))
{ {

View File

@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class Class
Foam::functionObjects::Peclet Foam::functionObjects::PecletNo
Group Group
grpUtilitiesFunctionObjects grpUtilitiesFunctionObjects
@ -36,12 +36,12 @@ SeeAlso
Foam::functionObjects::fvMeshFunctionObject Foam::functionObjects::fvMeshFunctionObject
SourceFiles SourceFiles
Peclet.C PecletNo.C
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#ifndef functionObjects_Peclet_H #ifndef functionObjects_PecletNo_H
#define functionObjects_Peclet_H #define functionObjects_PecletNo_H
#include "fieldExpression.H" #include "fieldExpression.H"
@ -53,10 +53,10 @@ namespace functionObjects
{ {
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class Peclet Declaration Class PecletNo Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
class Peclet class PecletNo
: :
public fieldExpression public fieldExpression
{ {
@ -69,14 +69,14 @@ class Peclet
public: public:
//- Runtime type information //- Runtime type information
TypeName("Peclet"); TypeName("PecletNo");
// Constructors // Constructors
//- Construct for given objectRegistry and dictionary. //- Construct for given objectRegistry and dictionary.
// Allow the possibility to load fields from files // Allow the possibility to load fields from files
Peclet PecletNo
( (
const word& name, const word& name,
const Time& runTime, const Time& runTime,
@ -85,12 +85,12 @@ public:
//- Destructor //- Destructor
virtual ~Peclet(); virtual ~PecletNo();
// Member Functions // Member Functions
//- Read the Peclet data //- Read the PecletNo data
virtual bool read(const dictionary&); virtual bool read(const dictionary&);
//- Calculate the Peclet number field //- Calculate the Peclet number field