porosityModel, sampledIsoSurfaceSurface: Removed unused multi cellZone support

This reduces the code complexity and allows for a future plan to make zones
dynamic rather than a static fixed indexed list.
This commit is contained in:
Henry Weller
2023-11-08 14:37:29 +00:00
parent 89c8187135
commit b6d1d308d6
30 changed files with 399 additions and 531 deletions

View File

@ -991,21 +991,14 @@ void Foam::functionObjects::forces::calcForcesMoment()
const vectorField fPTot(pm.force(U, rho, mu));
const labelList& cellZoneIDs = pm.cellZoneIDs();
const cellZone& cZone = mesh_.cellZones()[pm.zoneName()];
const vectorField d(mesh_.C(), cZone);
const vectorField fP(fPTot, cZone);
const vectorField Md(d - coordSys_.origin());
forAll(cellZoneIDs, i)
{
const label zoneI = cellZoneIDs[i];
const cellZone& cZone = mesh_.cellZones()[zoneI];
const vectorField fDummy(Md.size(), Zero);
const vectorField d(mesh_.C(), cZone);
const vectorField fP(fPTot, cZone);
const vectorField Md(d - coordSys_.origin());
const vectorField fDummy(Md.size(), Zero);
applyBins(Md, fDummy, fDummy, fP, d);
}
applyBins(Md, fDummy, fDummy, fP, d);
}
}