diff --git a/src/sampling/Make/files b/src/sampling/Make/files index ecb8c16741..b36eca5a4f 100644 --- a/src/sampling/Make/files +++ b/src/sampling/Make/files @@ -11,6 +11,7 @@ sampledSet/face/faceOnlySet.C sampledSet/midPoint/midPointSet.C sampledSet/midPointAndFace/midPointAndFaceSet.C sampledSet/patchSeed/patchSeedSet.C +sampledSet/patchEdge/patchEdgeSet.C sampledSet/sampledSet/sampledSet.C sampledSet/sampledSets/sampledSets.C sampledSet/sampledSets/sampledSetsGrouping.C diff --git a/src/sampling/sampledSet/patchEdge/patchEdgeSet.C b/src/sampling/sampledSet/patchEdge/patchEdgeSet.C new file mode 100644 index 0000000000..df3e3fc8b3 --- /dev/null +++ b/src/sampling/sampledSet/patchEdge/patchEdgeSet.C @@ -0,0 +1,185 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 2019 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 "patchEdgeSet.H" +#include "polyMesh.H" +#include "addToRunTimeSelectionTable.H" +#include "searchableSurface.H" +#include "Time.H" + +// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // + +namespace Foam +{ + defineTypeNameAndDebug(patchEdgeSet, 0); + addToRunTimeSelectionTable(sampledSet, patchEdgeSet, word); +} + +// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // + +void Foam::patchEdgeSet::genSamples() +{ + // Storage for sample points + DynamicList samplingPts; + DynamicList