diff --git a/src/functionObjects/field/extractEulerianParticles/extractEulerianParticleDistribution/extractEulerianParticleDistribution.C b/src/functionObjects/field/extractEulerianParticles/extractEulerianParticleDistribution/extractEulerianParticleDistribution.C deleted file mode 100644 index 4f294689b4..0000000000 --- a/src/functionObjects/field/extractEulerianParticles/extractEulerianParticleDistribution/extractEulerianParticleDistribution.C +++ /dev/null @@ -1,370 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 2015-2016 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "extractEulerianParticleDistribution.H" -#include "addToRunTimeSelectionTable.H" - -// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // - -namespace Foam -{ -namespace functionObjects -{ - defineTypeNameAndDebug(extractEulerianParticleDistribution, 0); - - addToRunTimeSelectionTable - ( - functionObject, - extractEulerianParticleDistribution, - dictionary - ); -} -} - -// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // - -void -Foam::functionObjects::extractEulerianParticleDistribution::initialiseBins() -{ - DebugInFunction << endl; - - const faceZone& fz = mesh_.faceZones()[zoneID_]; - - // Agglomerate faceZone faces into nInjectorLocations_ global locations - const indirectPrimitivePatch patch - ( - IndirectList(mesh_.faces(), fz), - mesh_.points() - ); - - const label nFaces = fz.size(); - label nLocations = nInjectorLocations_; - - if (Pstream::parRun()) - { - label nGlobalFaces = returnReduce(nFaces, sumOp