diff --git a/src/sampling/Make/files b/src/sampling/Make/files index 0c679f52d8..f7c4775e88 100644 --- a/src/sampling/Make/files +++ b/src/sampling/Make/files @@ -3,6 +3,7 @@ probes/patchProbes.C probes/probesGrouping.C probes/probesFunctionObject/probesFunctionObject.C +sampledSet/circle/circleSet.C sampledSet/cloud/cloudSet.C sampledSet/coordSet/coordSet.C sampledSet/patchCloud/patchCloudSet.C diff --git a/src/sampling/sampledSet/circle/circleSet.C b/src/sampling/sampledSet/circle/circleSet.C new file mode 100644 index 0000000000..b7d4d0dbd5 --- /dev/null +++ b/src/sampling/sampledSet/circle/circleSet.C @@ -0,0 +1,241 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\/ 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 2 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, write to the Free Software Foundation, + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +\*---------------------------------------------------------------------------*/ + +#include "circleSet.H" +#include "sampledSet.H" +#include "meshSearch.H" +#include "DynamicList.H" +#include "polyMesh.H" +#include "addToRunTimeSelectionTable.H" +#include "word.H" +#include "mathematicalConstants.H" + +// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // + +namespace Foam +{ + defineTypeNameAndDebug(circleSet, 0); + addToRunTimeSelectionTable(sampledSet, circleSet, word); +} + + +// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // + +void Foam::circleSet::calcSamples +( + DynamicList& samplingPts, + DynamicList