ENH: Updated pressure drop porosity after upstream porosity model changes

This commit is contained in:
andy
2013-01-21 16:49:19 +00:00
parent 3bd9426bbd
commit 66f1484143
3 changed files with 2 additions and 6 deletions

View File

@ -52,7 +52,6 @@ Foam::porosityModels::pressureDrop::pressureDrop
)
:
porosityModel(name, modelType, mesh, dict, cellZoneName),
coordSys_(coeffs_, mesh),
mDotvsDp_(DataEntry<scalar>::New("mDotvsDp", coeffs_)),
lRef_(readScalar(coeffs_.lookup("lRef"))),
rhoName_(coeffs_.lookupOrDefault<word>("rho", "rho"))

View File

@ -97,9 +97,6 @@ private:
// Private data
//- Local co-ordinate system
coordinateSystem coordSys_;
//- Pressure drop per unit length [Pa/m] as a function of
// mass flow rate [kg/s]
autoPtr<DataEntry<scalar> > mDotvsDp_;

View File

@ -35,7 +35,7 @@ void Foam::porosityModels::pressureDrop::apply
) const
{
// local-to-global transformation tensor
const tensor& E = coordSys_.R();
const tensor& E = coordSys_.R().R();
forAll(cellZoneIds_, zoneI)
{
@ -67,7 +67,7 @@ void Foam::porosityModels::pressureDrop::apply
) const
{
// local-to-global transformation tensor
const tensor& E = coordSys_.R();
const tensor& E = coordSys_.R().R();
forAll(cellZoneIds_, zoneI)
{