Go to the documentation of this file.
78 if( nElmts >= pointField::size() )
89 if( capacity >
size() )
102 this->operator[](i) =
p;
108 return this->operator[](pI);
115 return (os << *
this).good();
122 this->operator[](pI) = pts[pI];
points setSize(newPointi)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
bool writeData(Ostream &) const
read/write the list onto disk
point & newElmt(const label)
return an element with bound checking
#define forAll(list, i)
Loop across all elements in list.
A List obtained as a section of another List.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void clear()
set the size to zero
void reserve(const label capacity)
pointFieldPMG(const pointFieldPMG &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Ostream & operator<<(Ostream &, const edgeMesh &)
label size() const
return the number of used elements
void setSize(const label nElmts)
set the number of used elements
void append(const point &)
add a point at the end of the list
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))
void operator=(const pointFieldPMG &)
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
label nElmts_
number of used elements
void close()
Close Istream.
Istream & operator>>(Istream &, edgeMesh &)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...