diff --git a/src/OpenFOAM/dimensionSet/dimensionSets.C b/src/OpenFOAM/dimensionSet/dimensionSets.C index 36fd3f0c6f1fb661030841ad225208236f16b822..a858f4cb29194b5744fe54a9571f388aa41bcdfe 100644 --- a/src/OpenFOAM/dimensionSet/dimensionSets.C +++ b/src/OpenFOAM/dimensionSet/dimensionSets.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -196,6 +196,7 @@ const dimensionSet dimPressure(dimForce/dimArea); const dimensionSet dimGasConstant(dimEnergy/dimMass/dimTemperature); const dimensionSet dimSpecificHeatCapacity(dimGasConstant); const dimensionSet dimViscosity(dimArea/dimTime); +const dimensionSet dimDynamicViscosity(dimDensity*dimViscosity); // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/OpenFOAM/dimensionSet/dimensionSets.H b/src/OpenFOAM/dimensionSet/dimensionSets.H index e5deea4420ee5d0568904cd0bea29dca610f0106..a2273176ae276b2385adc1c5aeef905dbe19ca2e 100644 --- a/src/OpenFOAM/dimensionSet/dimensionSets.H +++ b/src/OpenFOAM/dimensionSet/dimensionSets.H @@ -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-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -72,6 +72,7 @@ extern const dimensionSet dimPressure; extern const dimensionSet dimGasConstant; extern const dimensionSet dimSpecificHeatCapacity; extern const dimensionSet dimViscosity; +extern const dimensionSet dimDynamicViscosity; class dimensionSets diff --git a/src/regionModels/surfaceFilmModels/submodels/thermo/filmViscosityModel/constantViscosity/constantViscosity.C b/src/regionModels/surfaceFilmModels/submodels/thermo/filmViscosityModel/constantViscosity/constantViscosity.C index acff066c419c14c82c0d4f5bfd4ef2edc9c5178c..7e9f3e7310dd75a39a3b0f8898c667835315eee8 100644 --- a/src/regionModels/surfaceFilmModels/submodels/thermo/filmViscosityModel/constantViscosity/constantViscosity.C +++ b/src/regionModels/surfaceFilmModels/submodels/thermo/filmViscosityModel/constantViscosity/constantViscosity.C @@ -56,7 +56,7 @@ constantViscosity::constantViscosity ) : filmViscosityModel(typeName, owner, dict, mu), - mu0_(readScalar(coeffDict_.lookup("mu0"))) + mu0_("mu0", dimDynamicViscosity, coeffDict_.lookup("mu0")) { mu_ == mu0_; } diff --git a/src/regionModels/surfaceFilmModels/submodels/thermo/filmViscosityModel/constantViscosity/constantViscosity.H b/src/regionModels/surfaceFilmModels/submodels/thermo/filmViscosityModel/constantViscosity/constantViscosity.H index 87432ca2a0b263f603b3da7f85f20a4bcc284aa6..bca2c195d6de053a57e5feabd7778e9e7e2154a0 100644 --- a/src/regionModels/surfaceFilmModels/submodels/thermo/filmViscosityModel/constantViscosity/constantViscosity.H +++ b/src/regionModels/surfaceFilmModels/submodels/thermo/filmViscosityModel/constantViscosity/constantViscosity.H @@ -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-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -54,8 +54,6 @@ class constantViscosity : public filmViscosityModel { -private: - // Private member functions //- Disallow default bitwise copy construct @@ -70,7 +68,7 @@ protected: // Protected data //- Constant viscosity [Pa.s] - scalar mu0_; + dimensionedScalar mu0_; diff --git a/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.C b/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.C index aedf27e8eeebffc094d0d58731ae11652ecff7ba..bf0a4b5f6d52f84008b133ab157b198aa89360d0 100644 --- a/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.C +++ b/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.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-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -112,7 +112,7 @@ Foam::incompressibleTwoPhaseMixture::incompressibleTwoPhaseMixture U_.db() ), U_.mesh(), - dimensionedScalar("nu", dimensionSet(0, 2, -1, 0, 0), 0), + dimensionedScalar("nu", dimViscosity, 0), calculatedFvPatchScalarField::typeName ) { diff --git a/src/transportModels/incompressible/viscosityModels/Newtonian/Newtonian.C b/src/transportModels/incompressible/viscosityModels/Newtonian/Newtonian.C index 1d1fc36244c4205e417a5a70ca7190f8833d2ce3..622f1a01a1971e0e994cd6f9e90e6e270c17765c 100644 --- a/src/transportModels/incompressible/viscosityModels/Newtonian/Newtonian.C +++ b/src/transportModels/incompressible/viscosityModels/Newtonian/Newtonian.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-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -50,7 +50,7 @@ Foam::viscosityModels::Newtonian::Newtonian ) : viscosityModel(name, viscosityProperties, U, phi), - nu0_("nu", dimensionSet(0, 2, -1, 0, 0), viscosityProperties_.lookup("nu")), + nu0_("nu", dimViscosity, viscosityProperties_.lookup("nu")), nu_ ( IOobject