/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2025 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see .
Class
Foam::streamlinesParticle
Description
Particle class that samples fields as it passes through. Used in streamlines
calculation.
SourceFiles
streamlinesParticle.C
\*---------------------------------------------------------------------------*/
#ifndef streamlinesParticle_H
#define streamlinesParticle_H
#include "particle.H"
#include "Cloud.H"
#include "autoPtr.H"
#include "interpolation.H"
#include "vectorList.H"
#include "DynamicField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// Forward declaration of friend functions and operators
class streamlinesParticle;
class streamlinesCloud;
Ostream& operator<<(Ostream&, const streamlinesParticle&);
/*---------------------------------------------------------------------------*\
Class streamlinesParticle Declaration
\*---------------------------------------------------------------------------*/
class streamlinesParticle
:
public particle
{
public:
class trackingData
:
public particle::trackingData
{
public:
// Public data
#define DeclareTypeInterpolator(Type, nullArg) \
const PtrList>& Type##Interp_;
FOR_ALL_FIELD_TYPES(DeclareTypeInterpolator);
#undef DeclareTypeInterpolator
const interpolation& UInterp_;
bool trackForward_;
bool trackOutside_;
const label nSubCycle_;
const scalar trackLength_;
label tracki;
DynamicField& allPositions_;
DynamicField