45 bool Foam::sampledSets::faceSet::calcSamples
47 DynamicList<point>& samplingPositions,
49 DynamicList<label>& samplingSegments,
50 DynamicList<label>& samplingCells,
51 DynamicList<label>& samplingFaces
57 IndirectList<point>(
mesh().cellCentres(), samplingFaces);
59 samplingSegments =
identityMap(samplingFaces.size());
62 labelList(UIndirectList<label>(
mesh().faceOwner(), samplingFaces));
Macros for easy insertion into run-time selection tables.
List< Key > toc() const
Return the table of contents.
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 face-centres of a given face set.
faceSet(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual ~faceSet()
Destructor.
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.