mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
The new NotImplemented macro uses __PRETTY_FUNCTION__ for GNU compatible compilers otherwise __func__ to provide the function name string.
203 lines
4.8 KiB
C++
203 lines
4.8 KiB
C++
/*---------------------------------------------------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration |
|
|
\\ / A nd | Copyright (C) 2011-2015 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 <http://www.gnu.org/licenses/>.
|
|
|
|
Class
|
|
Foam::kinematicParcelInjectionData
|
|
|
|
Description
|
|
Container class to provide injection data for kinematic parcels
|
|
|
|
SourceFiles
|
|
kinematicParcelInjectionData.C
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
#ifndef kinematicParcelInjectionData_H
|
|
#define kinematicParcelInjectionData_H
|
|
|
|
#include "dictionary.H"
|
|
#include "vector.H"
|
|
#include "point.H"
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
namespace Foam
|
|
{
|
|
|
|
// Forward declaration of classes
|
|
class kinematicParcelInjectionData;
|
|
|
|
// Forward declaration of friend functions
|
|
|
|
Ostream& operator<<
|
|
(
|
|
Ostream&,
|
|
const kinematicParcelInjectionData&
|
|
);
|
|
|
|
Istream& operator>>
|
|
(
|
|
Istream&,
|
|
kinematicParcelInjectionData&
|
|
);
|
|
|
|
/*---------------------------------------------------------------------------*\
|
|
Class kinematicParcelInjectionData Declaration
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
class kinematicParcelInjectionData
|
|
{
|
|
protected:
|
|
|
|
// Parcel properties
|
|
|
|
//- Position [m]
|
|
point x_;
|
|
|
|
//- Velocity [m/s]
|
|
vector U_;
|
|
|
|
//- Diameter [m]
|
|
scalar d_;
|
|
|
|
//- Density [kg/m3]
|
|
scalar rho_;
|
|
|
|
//- Mass flow rate [kg/s]
|
|
scalar mDot_;
|
|
|
|
|
|
public:
|
|
|
|
//- Runtime type information
|
|
TypeName("kinematicParcelInjectionData");
|
|
|
|
// Constructors
|
|
|
|
//- Null constructor
|
|
kinematicParcelInjectionData();
|
|
|
|
//- Construct from dictionary
|
|
kinematicParcelInjectionData(const dictionary& dict);
|
|
|
|
//- Construct from Istream
|
|
kinematicParcelInjectionData(Istream& is);
|
|
|
|
|
|
//-Destructor
|
|
virtual ~kinematicParcelInjectionData();
|
|
|
|
|
|
// Access
|
|
|
|
//- Return const access to the position
|
|
inline const point& x() const;
|
|
|
|
//- Return const access to the velocity
|
|
inline const vector& U() const;
|
|
|
|
//- Return const access to the diameter
|
|
inline scalar d() const;
|
|
|
|
//- Return const access to the density
|
|
inline scalar rho() const;
|
|
|
|
//- Return const access to the mass flow rate
|
|
inline scalar mDot() const;
|
|
|
|
|
|
// Edit
|
|
|
|
//- Return access to the position
|
|
inline point& x();
|
|
|
|
//- Return access to the velocity
|
|
inline vector& U();
|
|
|
|
//- Return access to the diameter
|
|
inline scalar& d();
|
|
|
|
//- Return access to the density
|
|
inline scalar& rho();
|
|
|
|
//- Return access to the mass flow rate
|
|
inline scalar& mDot();
|
|
|
|
|
|
// Friend Operators
|
|
|
|
friend bool operator==
|
|
(
|
|
const kinematicParcelInjectionData& a,
|
|
const kinematicParcelInjectionData& b
|
|
)
|
|
{
|
|
NotImplemented;
|
|
|
|
return false;
|
|
}
|
|
|
|
friend bool operator!=
|
|
(
|
|
const kinematicParcelInjectionData& a,
|
|
const kinematicParcelInjectionData& b
|
|
)
|
|
{
|
|
NotImplemented;
|
|
|
|
return false;
|
|
}
|
|
|
|
|
|
// I-O
|
|
|
|
//- Ostream operator
|
|
friend Ostream& operator<<
|
|
(
|
|
Ostream& os,
|
|
const kinematicParcelInjectionData& data
|
|
);
|
|
|
|
//- Istream operator
|
|
friend Istream& operator>>
|
|
(
|
|
Istream& is,
|
|
kinematicParcelInjectionData& data
|
|
);
|
|
};
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
} // End namespace Foam
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
#include "kinematicParcelInjectionDataI.H"
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
#endif
|
|
|
|
// ************************************************************************* //
|