45 void Foam::sampledSets::points::calcSamples
67 label segmenti = 0, samplei = 0, pointi0 =
labelMax, pointi = 0;
68 label nLocateBoundaryHits = 0;
73 for (
label pointj = pointi0; pointj < pointi; ++ pointj)
92 a.second() != -1 && b.second() != -1
93 ? a.first() < b.first() ? a : b
94 : a.second() != -1 ? a : b;
99 if (procAndCelli.
second() == -1)
139 particles.
first()->store(particles, td);
143 particles.
move(particles, td);
150 samplingPositions.
size() - samplingSegments.
size(),
159 const label samplei0 = samplei;
163 pointi += samplei - samplei0;
171 bool Foam::sampledSets::points::calcSamples
186 const point& pt = points_[i];
191 samplingPositions.
append(pt);
192 samplingSegments.
append(i);
193 samplingCells.
append(celli);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
Template class for intrusive linked lists.
void size(const label)
Override size to be inconsistent with allocated storage.
const Type & second() const
Return second.
const Type & first() const
Return first.
T * first()
Return the first entry.
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
void addParticle(ParticleType *pPtr)
Transfer particle to cloud.
void move(TrackCloudType &cloud, typename ParticleType::trackingData &td)
Move the particles.
Mesh object that implements searches within the local cells and faces.
label findCell(const point &p, const pointInCellShapes=pointInCellShapes::tets) const
Find the cell containing the given point.
static const meshSearch & New(const polyMesh &mesh, const pointInCellShapes=pointInCellShapes::tets)
Lookup or construct from mesh and cell decomposition option.
Mesh consisting of general polyhedral cells.
A Cloud of sampledSet particles.
Particle for generating line-type sampled sets.
Holds list of sampling points which is filled at construction time. Various implementations of this b...
const polyMesh & mesh() const
Access the mesh.
label size() const
Return the size.
Specified point samples. Optionally ordered into a continuous path. Ordering is an optimisation; it e...
virtual ~points()
Destructor.
points(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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
vectorField pointField
pointField is a vectorField.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
static const label labelMax