ConeInjection: Permit unit specification for dInner/dOuter

This commit is contained in:
Will Bainbridge
2023-08-08 16:21:34 +01:00
parent a693bf009d
commit 9a7b9e9229

View File

@ -52,8 +52,10 @@ void Foam::ConeInjection<CloudType>::setInjectionMethod()
{
injectionMethod_ = imDisc;
this->coeffDict().lookup("dInner") >> dInner_;
this->coeffDict().lookup("dOuter") >> dOuter_;
dInner_ =
dimensionedScalar("dInner", dimLength, this->coeffDict()).value();
dOuter_ =
dimensionedScalar("dOuter", dimLength, this->coeffDict()).value();
}
else
{
@ -108,8 +110,10 @@ void Foam::ConeInjection<CloudType>::setFlowType()
{
flowType_ = ftFlowRateAndDischarge;
this->coeffDict().lookup("dInner") >> dInner_;
this->coeffDict().lookup("dOuter") >> dOuter_;
dInner_ =
dimensionedScalar("dInner", dimLength, this->coeffDict()).value();
dOuter_ =
dimensionedScalar("dOuter", dimLength, this->coeffDict()).value();
Cd_.reset
(