flowRateInletVelocityFvPatchVectorField: Avoid writing rho if not required

This commit is contained in:
Henry Weller
2023-07-06 18:21:32 +01:00
parent 36f5a4daa4
commit bd52f8c1a5

View File

@ -142,6 +142,7 @@ flowRateInletVelocityFvPatchVectorField
)
:
fixedValueFvPatchField<vector>(p, iF, dict, false),
rhoName_("rho"),
rhoInlet_(dict.lookupOrDefault<scalar>("rhoInlet", -vGreat)),
alphaName_(dict.lookupOrDefault<word>("alpha", word::null))
{