diff --git a/src/transportModels/incompressible/viscosityModels/BirdCarreau/BirdCarreau.H b/src/transportModels/incompressible/viscosityModels/BirdCarreau/BirdCarreau.H index a036f10b8f049fd5030e61ff9d2239fb057b0d31..1a1db601f75b684efbd937cfc62fba40246e710c 100644 --- a/src/transportModels/incompressible/viscosityModels/BirdCarreau/BirdCarreau.H +++ b/src/transportModels/incompressible/viscosityModels/BirdCarreau/BirdCarreau.H @@ -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 @@ -95,32 +95,32 @@ public: //- Destructor - ~BirdCarreau() + virtual ~BirdCarreau() {} // Member Functions //- Return the laminar viscosity - tmp<volScalarField> nu() const + virtual tmp<volScalarField> nu() const { return nu_; } //- Return the laminar viscosity for patch - tmp<scalarField> nu(const label patchi) const + virtual tmp<scalarField> nu(const label patchi) const { return nu_.boundaryField()[patchi]; } //- Correct the laminar viscosity - void correct() + virtual void correct() { nu_ = calcNu(); } //- Read transportProperties dictionary - bool read(const dictionary& viscosityProperties); + virtual bool read(const dictionary& viscosityProperties); }; diff --git a/src/transportModels/incompressible/viscosityModels/CrossPowerLaw/CrossPowerLaw.H b/src/transportModels/incompressible/viscosityModels/CrossPowerLaw/CrossPowerLaw.H index 16ad05468dbef9f84dbf8cc91da4fcb85cff412c..a0f9ffe6baf2567b5454b5f64c22449daf4027fc 100644 --- a/src/transportModels/incompressible/viscosityModels/CrossPowerLaw/CrossPowerLaw.H +++ b/src/transportModels/incompressible/viscosityModels/CrossPowerLaw/CrossPowerLaw.H @@ -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 @@ -90,32 +90,32 @@ public: //- Destructor - ~CrossPowerLaw() + virtual ~CrossPowerLaw() {} // Member Functions //- Return the laminar viscosity - tmp<volScalarField> nu() const + virtual tmp<volScalarField> nu() const { return nu_; } //- Return the laminar viscosity for patch - tmp<scalarField> nu(const label patchi) const + virtual tmp<scalarField> nu(const label patchi) const { return nu_.boundaryField()[patchi]; } //- Correct the laminar viscosity - void correct() + virtual void correct() { nu_ = calcNu(); } //- Read transportProperties dictionary - bool read(const dictionary& viscosityProperties); + virtual bool read(const dictionary& viscosityProperties); }; diff --git a/src/transportModels/incompressible/viscosityModels/HerschelBulkley/HerschelBulkley.H b/src/transportModels/incompressible/viscosityModels/HerschelBulkley/HerschelBulkley.H index 5e97539f866d663b1f290f4f4f35d8746a12cb3f..df105b5807c93c597480026198a3e6da2060c462 100644 --- a/src/transportModels/incompressible/viscosityModels/HerschelBulkley/HerschelBulkley.H +++ b/src/transportModels/incompressible/viscosityModels/HerschelBulkley/HerschelBulkley.H @@ -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 @@ -91,32 +91,32 @@ public: //- Destructor - ~HerschelBulkley() + virtual ~HerschelBulkley() {} // Member Functions //- Return the laminar viscosity - tmp<volScalarField> nu() const + virtual tmp<volScalarField> nu() const { return nu_; } //- Return the laminar viscosity for patch - tmp<scalarField> nu(const label patchi) const + virtual tmp<scalarField> nu(const label patchi) const { return nu_.boundaryField()[patchi]; } //- Correct the laminar viscosity - void correct() + virtual void correct() { nu_ = calcNu(); } //- Read transportProperties dictionary - bool read(const dictionary& viscosityProperties); + virtual bool read(const dictionary& viscosityProperties); }; diff --git a/src/transportModels/incompressible/viscosityModels/Newtonian/Newtonian.H b/src/transportModels/incompressible/viscosityModels/Newtonian/Newtonian.H index d4758756da58e5e6c73075900495cd0b5590fcfe..481bbf945ecd40291662fc994048f288b8e53f00 100644 --- a/src/transportModels/incompressible/viscosityModels/Newtonian/Newtonian.H +++ b/src/transportModels/incompressible/viscosityModels/Newtonian/Newtonian.H @@ -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 @@ -80,30 +80,30 @@ public: //- Destructor - ~Newtonian() + virtual ~Newtonian() {} // Member Functions //- Return the laminar viscosity - tmp<volScalarField> nu() const + virtual tmp<volScalarField> nu() const { return nu_; } //- Return the laminar viscosity for patch - tmp<scalarField> nu(const label patchi) const + virtual tmp<scalarField> nu(const label patchi) const { return nu_.boundaryField()[patchi]; } //- Correct the laminar viscosity (not appropriate, viscosity constant) - void correct() + virtual void correct() {} //- Read transportProperties dictionary - bool read(const dictionary& viscosityProperties); + virtual bool read(const dictionary& viscosityProperties); }; diff --git a/src/transportModels/incompressible/viscosityModels/powerLaw/powerLaw.H b/src/transportModels/incompressible/viscosityModels/powerLaw/powerLaw.H index eb02c180056734a3fcbebff8fce60b52b8d6dbac..e355a319d85eabd83f826d697c081dbfaf8aaeb2 100644 --- a/src/transportModels/incompressible/viscosityModels/powerLaw/powerLaw.H +++ b/src/transportModels/incompressible/viscosityModels/powerLaw/powerLaw.H @@ -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 @@ -91,32 +91,32 @@ public: //- Destructor - ~powerLaw() + virtual ~powerLaw() {} // Member Functions //- Return the laminar viscosity - tmp<volScalarField> nu() const + virtual tmp<volScalarField> nu() const { return nu_; } //- Return the laminar viscosity for patch - tmp<scalarField> nu(const label patchi) const + virtual tmp<scalarField> nu(const label patchi) const { return nu_.boundaryField()[patchi]; } //- Correct the laminar viscosity - void correct() + virtual void correct() { nu_ = calcNu(); } //- Read transportProperties dictionary - bool read(const dictionary& viscosityProperties); + virtual bool read(const dictionary& viscosityProperties); };