dimensioned<Type>: Added constructor from name, dimensions and dictionary

to simplify construction of dimensionedScalar properties and avoid the
duplication of the name string in the constructor call.
This commit is contained in:
Henry Weller
2015-07-21 12:57:07 +01:00
parent 4c21f24a8c
commit 365f9b0006
103 changed files with 342 additions and 284 deletions

View File

@ -14,22 +14,30 @@ IOdictionary transportProperties
dimensionedScalar rho
(
transportProperties.lookup("rho")
"rho",
dimDensity,
transportProperties
);
dimensionedScalar nu
(
transportProperties.lookup("nu")
"nu",
dimViscosity,
transportProperties
);
dimensionedScalar mu
(
transportProperties.lookup("mu")
"mu",
dimensionSet(1, 1, -2, 0, 0, -2, 0),
transportProperties
);
dimensionedScalar sigma
(
transportProperties.lookup("sigma")
"sigma",
dimensionSet(-1, -3, 3, 0, 0, 2, 0),
transportProperties
);
Info<< "Reading field p\n" << endl;