153 lines
3.7 KiB
C++
153 lines
3.7 KiB
C++
/*---------------------------------------------------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration |
|
|
\\ / A nd | Copyright (C) 2016 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::Electron
|
|
|
|
Description
|
|
|
|
SourceFiles
|
|
ElectronI.H
|
|
Electron.C
|
|
ElectronIO.C
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
#ifndef Electron_H
|
|
#define Electron_H
|
|
|
|
#include "Particle.H"
|
|
#include "hashedWordList.H"
|
|
#include "scalarList.H"
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
namespace Foam
|
|
{
|
|
|
|
// Forward declaration of classes
|
|
class Istream;
|
|
class Ostream;
|
|
|
|
// Forward declaration of friend functions and operators
|
|
class Electron;
|
|
Istream& operator>>(Istream&, Electron&);
|
|
Ostream& operator<<(Ostream&, const Electron&);
|
|
|
|
|
|
/*---------------------------------------------------------------------------*\
|
|
Class Electron Declaration
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
class Electron
|
|
:
|
|
public Particle
|
|
{
|
|
// Private data
|
|
|
|
//- Resonant charge transfer targets
|
|
const dictionary &fitDict_;
|
|
|
|
//- Resonant charge transfer targets
|
|
hashedWordList collisionTargets_;
|
|
|
|
//- Resonant charge transfer targets
|
|
PtrList<scalarList> DejFitCoefs_;
|
|
|
|
|
|
// Private Member Functions
|
|
|
|
//- Disallow default bitwise copy construct
|
|
Electron(const Electron&);
|
|
|
|
//- Disallow default bitwise assignment
|
|
void operator=(const Electron&);
|
|
|
|
|
|
public:
|
|
|
|
// Static data members
|
|
|
|
//- Static data staticData
|
|
// static const dataType staticData;
|
|
|
|
|
|
// Constructors
|
|
|
|
//- Construct from components
|
|
Electron(const dictionary& thermoDict, const dictionary& tranDict);
|
|
|
|
//- Construct from Istream
|
|
Electron(Istream&);
|
|
|
|
//- Construct as copy
|
|
// Electron(const Electron&);
|
|
|
|
|
|
//- Destructor
|
|
~Electron();
|
|
|
|
|
|
// Member Functions
|
|
|
|
// Access
|
|
inline bool isTarget(const word &target) const;
|
|
|
|
inline const scalarList& DejFitCoefs(const word &target) const;
|
|
|
|
// Check
|
|
|
|
// Edit
|
|
|
|
// Write
|
|
|
|
|
|
// Member Operators
|
|
|
|
// void operator=(const Electron&);
|
|
|
|
|
|
// Friend Functions
|
|
|
|
// Friend Operators
|
|
|
|
// IOstream Operators
|
|
|
|
friend Istream& operator>>(Istream&, Electron&);
|
|
friend Ostream& operator<<(Ostream&, const Electron&);
|
|
};
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
} // End namespace Foam
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
#include "ElectronI.H"
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
#endif
|
|
|
|
// ************************************************************************* //
|