Input of dimensionedScalars: update read-construction of dimensionedScalar in applications
so that the specification of the name and dimensions are optional in property dictionaries. Update tutorials so that the name of the dimensionedScalar property is no longer duplicated but optional dimensions are still provided and are checked on read.
This commit is contained in:
@ -1,13 +1,18 @@
|
||||
singlePhaseTransportModel laminarTransport(U, phi);
|
||||
singlePhaseTransportModel laminarTransport(U, phi);
|
||||
|
||||
// Thermal expansion coefficient [1/K]
|
||||
dimensionedScalar beta(laminarTransport.lookup("beta"));
|
||||
// Thermal expansion coefficient [1/K]
|
||||
dimensionedScalar beta
|
||||
(
|
||||
"beta",
|
||||
dimless/dimTemperature,
|
||||
laminarTransport.lookup("beta")
|
||||
);
|
||||
|
||||
// Reference temperature [K]
|
||||
dimensionedScalar TRef(laminarTransport.lookup("TRef"));
|
||||
// Reference temperature [K]
|
||||
dimensionedScalar TRef("TRef", dimTemperature, laminarTransport.lookup("TRef"));
|
||||
|
||||
// Laminar Prandtl number
|
||||
dimensionedScalar Pr(laminarTransport.lookup("Pr"));
|
||||
// Laminar Prandtl number
|
||||
dimensionedScalar Pr("Pr", dimless, laminarTransport.lookup("Pr"));
|
||||
|
||||
// Turbulent Prandtl number
|
||||
dimensionedScalar Prt(laminarTransport.lookup("Prt"));
|
||||
// Turbulent Prandtl number
|
||||
dimensionedScalar Prt("Prt", dimless, laminarTransport.lookup("Prt"));
|
||||
|
||||
Reference in New Issue
Block a user