lumpedMassTemperatureFvPatchScalarField: Updated dimension and unit handling in the constructor

This commit is contained in:
Henry Weller
2024-05-20 11:30:22 +01:00
parent 13ef92ba48
commit c437265c80

View File

@ -24,10 +24,10 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "lumpedMassTemperatureFvPatchScalarField.H" #include "lumpedMassTemperatureFvPatchScalarField.H"
#include "addToRunTimeSelectionTable.H"
#include "fieldMapper.H" #include "fieldMapper.H"
#include "thermophysicalTransportModel.H" #include "thermophysicalTransportModel.H"
#include "ZeroConstant.H" #include "ZeroConstant.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
@ -68,10 +68,21 @@ lumpedMassTemperatureFvPatchScalarField
Q_ Q_
( (
dict.found("Q") dict.found("Q")
? Function1<scalar>::New("Q", dict) ? Function1<scalar>::New
(
"Q",
db().time().userUnits(),
dimPower,
dict
)
: autoPtr<Function1<scalar>> : autoPtr<Function1<scalar>>
( (
new Function1s::ZeroConstant<scalar>("Q", dict) new Function1s::ZeroConstant<scalar>
(
"Q",
{db().time().userUnits(), dimPower},
dict
)
) )
), ),
V_(NaN) V_(NaN)