146 lines
3.4 KiB
C++
146 lines
3.4 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::diffusivityModel
|
|
|
|
Description
|
|
|
|
SourceFiles
|
|
diffusivityModelI.H
|
|
diffusivityModel.C
|
|
diffusivityModelIO.C
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
#ifndef diffusivityModel_H
|
|
#define diffusivityModel_H
|
|
|
|
#include "scalar.H"
|
|
#include "autoPtr.H"
|
|
#include "psiReactionThermo.H"
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
namespace Foam
|
|
{
|
|
|
|
// Forward declaration of classes
|
|
|
|
// Forward declaration of friend functions and operators
|
|
class diffusivityModel;
|
|
|
|
|
|
/*---------------------------------------------------------------------------*\
|
|
Class diffusivityModel Declaration
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
class diffusivityModel
|
|
{
|
|
// Private data
|
|
|
|
//- Reference to thermo object
|
|
const psiReactionThermo& thermo_;
|
|
|
|
//- Mixture averaged diffusivities field
|
|
PtrList<volScalarField> D_;
|
|
|
|
|
|
// Private Member Functions
|
|
|
|
//- Disallow default bitwise copy construct
|
|
diffusivityModel(const diffusivityModel&);
|
|
|
|
//- Disallow default bitwise assignment
|
|
void operator=(const diffusivityModel&);
|
|
|
|
|
|
public:
|
|
|
|
// Static data members
|
|
|
|
//- Static data staticData
|
|
// static const dataType staticData;
|
|
|
|
|
|
// Constructors
|
|
|
|
//- Construct from mixture
|
|
diffusivityModel(const psiReactionThermo& thermo);
|
|
|
|
//- Construct from Istream
|
|
diffusivityModel(Istream&);
|
|
|
|
//- Construct as copy
|
|
// diffusivityModel(const diffusivityModel&);
|
|
|
|
|
|
// Selectors
|
|
|
|
//- Select null constructed
|
|
// static autoPtr<diffusivityModel> New();
|
|
|
|
|
|
//- Destructor
|
|
~diffusivityModel();
|
|
|
|
|
|
// Member Functions
|
|
|
|
//- Correct diffusivities
|
|
void correct();
|
|
|
|
// Access
|
|
|
|
// Check
|
|
|
|
// Edit
|
|
|
|
// Write
|
|
|
|
|
|
// Member Operators
|
|
|
|
// void operator=(const diffusivityModel&);
|
|
|
|
|
|
// Friend Functions
|
|
|
|
// Friend Operators
|
|
|
|
};
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
} // End namespace Foam
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
#include "diffusivityModelI.H"
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
#endif
|
|
|
|
// ************************************************************************* //
|