mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: Updated reading of dimensioned types from transportProperties dictionary to avoid the need to provide the dimension set
This commit is contained in:
@ -1,37 +1,37 @@
|
||||
Info<< "Reading thermodynamicProperties\n" << endl;
|
||||
Info<< "Reading thermodynamicProperties\n" << endl;
|
||||
|
||||
IOdictionary thermodynamicProperties
|
||||
IOdictionary thermodynamicProperties
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"thermodynamicProperties",
|
||||
runTime.constant(),
|
||||
mesh,
|
||||
IOobject::MUST_READ_IF_MODIFIED,
|
||||
IOobject::NO_WRITE
|
||||
)
|
||||
);
|
||||
"thermodynamicProperties",
|
||||
runTime.constant(),
|
||||
mesh,
|
||||
IOobject::MUST_READ_IF_MODIFIED,
|
||||
IOobject::NO_WRITE
|
||||
)
|
||||
);
|
||||
|
||||
dimensionedScalar rho0
|
||||
(
|
||||
"rho0",
|
||||
dimDensity,
|
||||
thermodynamicProperties
|
||||
);
|
||||
dimensionedScalar rho0
|
||||
(
|
||||
"rho0",
|
||||
dimDensity,
|
||||
thermodynamicProperties
|
||||
);
|
||||
|
||||
dimensionedScalar p0
|
||||
(
|
||||
"p0",
|
||||
dimPressure,
|
||||
thermodynamicProperties
|
||||
);
|
||||
dimensionedScalar p0
|
||||
(
|
||||
"p0",
|
||||
dimPressure,
|
||||
thermodynamicProperties
|
||||
);
|
||||
|
||||
dimensionedScalar psi
|
||||
(
|
||||
"psi",
|
||||
dimCompressibility,
|
||||
thermodynamicProperties
|
||||
);
|
||||
dimensionedScalar psi
|
||||
(
|
||||
"psi",
|
||||
dimCompressibility,
|
||||
thermodynamicProperties
|
||||
);
|
||||
|
||||
// Density offset, i.e. the constant part of the density
|
||||
dimensionedScalar rhoO("rhoO", rho0 - psi*p0);
|
||||
// Density offset, i.e. the constant part of the density
|
||||
dimensionedScalar rhoO("rhoO", rho0 - psi*p0);
|
||||
|
||||
Reference in New Issue
Block a user