Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ENH: Updated FacePostProcessing cloud function object

  • Loading branch information...
commit a3b4e200d8b0f84808a7e1689839319090b567fb 1 parent 3cdcaca
andy authored
View
49 src/lagrangian/intermediate/submodels/CloudFunctionObjects/FacePostProcessing/FacePostProcessing.C
@@ -32,32 +32,6 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template<class CloudType>
-void Foam::FacePostProcessing<CloudType>::applyToFace
-(
- const label faceIn,
- label& zoneI,
- label& faceI
-) const
-{
- const faceZoneMesh& fzm = this->owner().mesh().faceZones();
-
- forAll(faceZoneIDs_, i)
- {
- const faceZone& fz = fzm[faceZoneIDs_[i]];
- forAll(fz, j)
- {
- if (fz[j] == faceIn)
- {
- zoneI = i;
- faceI = j;
- return;
- }
- }
- }
-}
-
-
-template<class CloudType>
void Foam::FacePostProcessing<CloudType>::makeLogFile
(
const word& zoneName,
@@ -401,13 +375,26 @@ void Foam::FacePostProcessing<CloudType>::postFace
|| this->owner().solution().transient()
)
{
- label zoneId = -1;
- label faceId = -1;
- applyToFace(faceI, zoneId, faceId);
+ const faceZoneMesh& fzm = this->owner().mesh().faceZones();
- if ((zoneId != -1) && (faceId != -1))
+ forAll(faceZoneIDs_, i)
{
- mass_[zoneId][faceId] += p.mass()*p.nParticle();
+ const faceZone& fz = fzm[faceZoneIDs_[i]];
+
+ label faceId = -1;
+ forAll(fz, j)
+ {
+ if (fz[j] == faceI)
+ {
+ faceId = j;
+ break;
+ }
+ }
+
+ if (faceId != -1)
+ {
+ mass_[i][faceId] += p.mass()*p.nParticle();
+ }
}
}
}
View
8 src/lagrangian/intermediate/submodels/CloudFunctionObjects/FacePostProcessing/FacePostProcessing.H
@@ -106,14 +106,6 @@ class FacePostProcessing
const scalar totArea
);
- //- Return index into storage lists if valid zone and face
- void applyToFace
- (
- const label faceIn,
- label& zoneI, label&
- faceI
- ) const;
-
protected:
Please sign in to comment.
Something went wrong with that request. Please try again.