55 positionName_(
word::null),
57 distanceName_(
word::null),
66 const word& positionName,
68 const word& distanceName,
77 isNull<pointField>(positions)
84 isNull<scalarField>(distances)
94 const bool contiguous,
95 const word& positionName,
116 const bool contiguous,
117 const word& distanceName,
169 <<
"Scalar coordinate requested from coordinate set with " 183 <<
"Scalar coordinate requested from coordinate set with " 199 <<
"Scalar coordinate requested from coordinate set with " 213 <<
"Scalar coordinate requested from coordinate set with " 229 <<
"Scalar name requested from coordinate set with " 244 <<
"Scalar coordinate requested from coordinate set with " 265 <<
"Point coordinate requested from coordinate set with " 271 <<
"Point coordinate requested from coordinate set with " 292 <<
"Point coordinate requested from coordinate set with " 298 <<
"Point coordinate requested from coordinate set with " 319 <<
"Point name requested from coordinate set with " 325 <<
"Point name requested from coordinate set with " 345 (pointi == 0 || s !=
segments_[pointi - 1])
349 vertices[nVertices ++] = pointi;
353 vertices.
resize(nVertices);
364 for (
label pointi = 0; pointi <
size() - 1; ++ pointi)
368 edges[nEdges ++] =
labelPair(pointi, pointi + 1);
405 return linesNonDynamic;
437 ListListOps::combine<List<point>>
448 ListListOps::combine<scalarList>
457 ListListOps::combine<labelList>
482 allSegments[a] < allSegments[
b] ? true
483 : allSegments[a] > allSegments[
b] ? false
484 : allDistances[a] < allDistances[
b];
495 return allSegments[a] < allSegments[
b];
501 set.segments_ =
labelField(allSegments, order);
505 set.positions_.set(
new pointField(allPositions, order));
510 set.distances_.set(
new scalarField(allDistances, order));
labelList segments_
Connected segments.
Field< label > labelField
Specialisation of Field<T> for label.
#define forAll(list, i)
Loop across all elements in list.
word axis() const
Return the axis name.
bool hasScalarAxis() const
Is the coordinate axis a scalar?
errorManipArg< error, int > exit(error &err, const int errNo=1)
autoPtr< scalarField > distances_
Scalar distances.
label size() const
Return the size.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 2-tuple for storing two objects of different types.
const Type1 & first() const
Return first.
void size(const label)
Override size to be inconsistent with allocated storage.
Tuple2< coordSet, labelList > gather() const
Combine coordinate sets onto the master. Return both the combined.
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m K].
word positionName_
Name of the positions.
labelList identity(const label len)
Create identity map (map[i] == i) of given length.
tmp< pointField > pointCoords() const
Get vector coordinate (axis is xyz)
void resize(const label)
Alias for setSize(const label)
autoPtr< pointField > positions_
Point positions.
static const NamedEnum< axisType, 6 > axisTypeNames_
String representation of axis enums.
Initialise the NamedEnum HashTable from the static list of names.
word scalarName() const
Return the name of the scalar coordinates.
bool hasPointAxis() const
Is the coordinate axis a point?
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
vectorField pointField
pointField is a vectorField.
Holds list of sampling positions.
word distanceName_
Name of the distances.
axisType
Enumeration defining the output format for coordinates.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
A class for handling words, derived from string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
point pointCoord(const label index) const
Get vector coordinate (axis is xyz)
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
static const word null
An empty word.
labelListList lines() const
Return a list of lines. These are lists of points which are in the.
Pair< label > labelPair
Label pair.
List< label > labelList
A List of labels.
labelList vertices() const
Return a list of isolated vertices. These are the points that are.
coordSet()
Construct null.
labelPairList edges() const
Return a list of edges. These are adjacent pairs of points which.
static label nProcs(const label communicator=0)
Number of processes in parallel run.
word pointName() const
Return the name of the point coordinates.
static const Field< scalar > & null()
Return a null field.
static Vector< scalar > uniform(const scalar &s)
Return a VectorSpace with all elements = s.
const Type2 & second() const
Return second.
A class for managing temporary objects.
void clear()
Clear the addressed list, i.e. set the size to zero.
void stableSort(UList< T > &)
static void gatherList(const List< commsStruct > &comms, List< T > &Values, const int tag, const label comm)
Gather data but keep individual values separate.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
tmp< scalarField > scalarCoords() const
Get scalar coordinates (axis is x, y, z or distance)
scalar scalarCoord(const label index) const
Get scalar coordinate (axis is x, y, z or distance)