45 void Foam::sampledSets::cellSet::genSamples()
51 List<point>(IndirectList<point>(
mesh().cellCentres(),
cells)),
70 setName_(
dict.lookup(
"set"))
Macros for easy insertion into run-time selection tables.
void size(const label)
Override size to be inconsistent with allocated storage.
A collection of cell labels.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
Mesh consisting of general polyhedral cells.
Holds list of sampling points which is filled at construction time. Various implementations of this b...
const labelList & cells() const
Access the cells.
void setSamples(const List< point > &samplingPositions, const labelList &samplingSegments, const labelList &samplingCells, const labelList &samplingFaces)
Sets sample data.
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 meshSearch &searchEngine, 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)
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.