mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated pressure drop porosity after upstream porosity model changes
This commit is contained in:
@ -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"))
|
||||
|
||||
@ -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_;
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user