45 bool Foam::sampledSets::cellSet::calcSamples
47 DynamicList<point>& samplingPositions,
49 DynamicList<label>& samplingSegments,
50 DynamicList<label>& samplingCells,
51 DynamicList<label>& samplingFaces
57 IndirectList<point>(
mesh().cellCentres(), samplingCells);
59 samplingSegments =
identityMap(samplingCells.size());
61 samplingFaces =
labelList(samplingCells.size(), -1);
Macros for easy insertion into run-time selection tables.
List< Key > toc() const
Return the table of contents.
A collection of cell labels.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Mesh consisting of general polyhedral cells.
Holds list of sampling points which is filled at construction time. Various implementations of this b...
const polyMesh & mesh() const
Access the mesh.
Samples at the cell-centres of a given cell set.
virtual ~cellSet()
Destructor.
cellSet(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
Set of sets to sample. Call sampledSets.write() to sample&write files.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
defineTypeNameAndDebug(arcUniform, 0)
addToRunTimeSelectionTable(sampledSet, arcUniform, word)
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
List< label > labelList
A List of labels.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
labelList identityMap(const label len)
Create identity map (map[i] == i) of given length.