37 const point& position,
105 scalar magU =
mag(
U);
125 const point& position,
127 const label tetFacei,
129 const label meshEdgeStart,
130 const label diagEdge,
131 const bool trackForward,
145 trackForward_(trackForward),
190 trackForward_(
p.trackForward_),
191 lifeTime_(
p.lifeTime_),
192 sampledPositions_(
p.sampledPositions_),
193 sampledScalars_(
p.sampledScalars_),
194 sampledVectors_(
p.sampledVectors_)
216 c.checkFieldIOobject(c, lifeTime);
222 c.checkFieldIOobject(c, sampledPositions);
227 p.lifeTime_ = lifeTime[i];
228 p.sampledPositions_.
transfer(sampledPositions[i]);
241 const label np = c.size();
257 lifeTime[i] =
p.lifeTime_;
258 sampledPositions[i] =
p.sampledPositions_;
263 sampledPositions.
write();
275 os << static_cast<const wallBoundedParticle&>(
p)
Base cloud calls templated on particle type.
void append(const T &val)
Copy append an element to the end of this list.
Minimal example by using system/controlDict.functions:
A primitive field of type <T> with automated input and output.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void transfer(List< T > &list)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void size(const label n)
Older name for setAddressableSize.
T & last()
Return the last element of the list.
A cell is defined as a list of faces with extra functionality.
A face is a list of labels corresponding to mesh vertices.
void writeFields() const
Write fields.
Reads fields from the time directories and adds them to the mesh database for further post-processing...
void interpolateFields()
Linearly interpolate volume fields to generate surface fields.
vector position() const
Return current particle position.
Mesh consisting of general polyhedral cells.
virtual bool write(const bool valid=true) const
Write using setting from DB.
Particle class that tracks on triangles of boundary faces. Use trackToEdge similar to trackToFace on ...
Class used to pass tracking data to the trackToEdge function.
const PtrList< interpolation< vector > > & vvInterp_
const PtrList< interpolation< scalar > > & vsInterp_
Particle class that samples fields as it passes through. Used in streamline calculation.
label lifeTime_
Lifetime of particle. Particle dies when reaches 0.
DynamicList< point > sampledPositions_
Sampled positions.
bool trackForward_
Track with +U or -U.
List< DynamicList< vector > > sampledVectors_
Sampled vectors.
List< DynamicList< scalar > > sampledScalars_
Sampled scalars.
static void readFields(Cloud< wallBoundedStreamLineParticle > &)
Read.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
errorManip< error > abort(error &err)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
#define forAll(list, i)
Loop across all elements in list.
A non-counting (dummy) refCount.