filmViscosityModel/constantViscosity/constantViscosity: Add dimensions to mu0

This commit is contained in:
Henry Weller 2015-07-16 10:54:23 +01:00
parent bb12051b95
commit 9f58f7ede4
6 changed files with 11 additions and 11 deletions

View file

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -196,6 +196,7 @@ const dimensionSet dimPressure(dimForce/dimArea);
const dimensionSet dimGasConstant(dimEnergy/dimMass/dimTemperature); const dimensionSet dimGasConstant(dimEnergy/dimMass/dimTemperature);
const dimensionSet dimSpecificHeatCapacity(dimGasConstant); const dimensionSet dimSpecificHeatCapacity(dimGasConstant);
const dimensionSet dimViscosity(dimArea/dimTime); const dimensionSet dimViscosity(dimArea/dimTime);
const dimensionSet dimDynamicViscosity(dimDensity*dimViscosity);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -72,6 +72,7 @@ extern const dimensionSet dimPressure;
extern const dimensionSet dimGasConstant; extern const dimensionSet dimGasConstant;
extern const dimensionSet dimSpecificHeatCapacity; extern const dimensionSet dimSpecificHeatCapacity;
extern const dimensionSet dimViscosity; extern const dimensionSet dimViscosity;
extern const dimensionSet dimDynamicViscosity;
class dimensionSets class dimensionSets

View file

@ -56,7 +56,7 @@ constantViscosity::constantViscosity
) )
: :
filmViscosityModel(typeName, owner, dict, mu), filmViscosityModel(typeName, owner, dict, mu),
mu0_(readScalar(coeffDict_.lookup("mu0"))) mu0_("mu0", dimDynamicViscosity, coeffDict_.lookup("mu0"))
{ {
mu_ == mu0_; mu_ == mu0_;
} }

View file

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -54,8 +54,6 @@ class constantViscosity
: :
public filmViscosityModel public filmViscosityModel
{ {
private:
// Private member functions // Private member functions
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
@ -70,7 +68,7 @@ protected:
// Protected data // Protected data
//- Constant viscosity [Pa.s] //- Constant viscosity [Pa.s]
scalar mu0_; dimensionedScalar mu0_;

View file

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -112,7 +112,7 @@ Foam::incompressibleTwoPhaseMixture::incompressibleTwoPhaseMixture
U_.db() U_.db()
), ),
U_.mesh(), U_.mesh(),
dimensionedScalar("nu", dimensionSet(0, 2, -1, 0, 0), 0), dimensionedScalar("nu", dimViscosity, 0),
calculatedFvPatchScalarField::typeName calculatedFvPatchScalarField::typeName
) )
{ {

View file

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -50,7 +50,7 @@ Foam::viscosityModels::Newtonian::Newtonian
) )
: :
viscosityModel(name, viscosityProperties, U, phi), viscosityModel(name, viscosityProperties, U, phi),
nu0_("nu", dimensionSet(0, 2, -1, 0, 0), viscosityProperties_.lookup("nu")), nu0_("nu", dimViscosity, viscosityProperties_.lookup("nu")),
nu_ nu_
( (
IOobject IOobject