Commit 955a0411 authored by andy's avatar andy
Browse files

STYLE: code read-ability updates

parent 6c46cfb4
......@@ -107,9 +107,9 @@ Foam::SprayCloud<CloudType>::SprayCloud
{
parcelType::readFields(*this, this->composition());
}
}
Info << " Average parcel mass: " << averageParcelMass_ << endl;
Info << "Average parcel mass: " << averageParcelMass_ << endl;
}
}
......@@ -172,17 +172,20 @@ void Foam::SprayCloud<CloudType>::checkParcelProperties
fullyDescribed
);
const liquidMixtureProperties& liqMix = this->composition().liquids();
const scalarField& Y(parcel.Y());
scalarField X(this->composition().liquids().X(Y));
scalarField X(liqMix.X(Y));
// override rho and cp from constantProperties
parcel.Cp() = this->composition().liquids().Cp(parcel.pc(), parcel.T(), X);
parcel.rho() = this->composition().liquids().rho(parcel.pc(), parcel.T(), X);
// override rho and Cp from constantProperties
parcel.Cp() = liqMix.Cp(parcel.pc(), parcel.T(), X);
parcel.rho() = liqMix.rho(parcel.pc(), parcel.T(), X);
// store the injection position and initial drop size
parcel.position0() = parcel.position();
parcel.d0() = parcel.d();
parcel.y() = breakup().y0();
parcel.yDot() = breakup().yDot0();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment