ThermoMPPICCloud to accept ThermoCloud
This commit is contained in:
parent
211cb97540
commit
c0264dcdfa
5 changed files with 217 additions and 7 deletions
|
|
@ -70,12 +70,12 @@ Foam::MPPICCloud<CloudType>::MPPICCloud
|
|||
const word& cloudName,
|
||||
const volScalarField& rho,
|
||||
const volVectorField& U,
|
||||
const volScalarField& mu,
|
||||
const dimensionedVector& g,
|
||||
const SLGThermo& thermo,
|
||||
bool readFields
|
||||
)
|
||||
:
|
||||
CloudType(cloudName, rho, U, g, thermo, false),
|
||||
CloudType(cloudName, rho, U, mu, g, false),
|
||||
packingModel_(NULL),
|
||||
dampingModel_(NULL),
|
||||
isotropyModel_(NULL)
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@ SourceFiles
|
|||
#include "fvMesh.H"
|
||||
#include "volFields.H"
|
||||
|
||||
#include "ThermoCloud.H"
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
|
|
@ -134,8 +133,8 @@ public:
|
|||
const word& cloudName,
|
||||
const volScalarField& rho,
|
||||
const volVectorField& U,
|
||||
const volScalarField& mu,
|
||||
const dimensionedVector& g,
|
||||
const SLGThermo& thermo,
|
||||
bool readFields = true
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,76 @@
|
|||
/*---------------------------------------------------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2013-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/>.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "ThermoMPPICCloud.H"
|
||||
#include "PackingModel.H"
|
||||
#include "ParticleStressModel.H"
|
||||
#include "DampingModel.H"
|
||||
#include "IsotropyModel.H"
|
||||
#include "TimeScaleModel.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
template<class CloudType>
|
||||
Foam::ThermoMPPICCloud<CloudType>::ThermoMPPICCloud
|
||||
(
|
||||
const word& cloudName,
|
||||
const volScalarField& rho,
|
||||
const volVectorField& U,
|
||||
const dimensionedVector& g,
|
||||
const SLGThermo& thermo,
|
||||
bool readFields
|
||||
)
|
||||
:
|
||||
CloudType(cloudName, rho, U, g, thermo, false)
|
||||
{
|
||||
this->packingModel_.clear();
|
||||
this->dampingModel_.clear();
|
||||
this->isotropyModel_.clear();
|
||||
|
||||
if (this->solution().steadyState())
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "MPPIC modelling not available for steady state calculations"
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
if (this->solution().active())
|
||||
{
|
||||
this->setModels();
|
||||
|
||||
if (readFields)
|
||||
{
|
||||
parcelType::readFields(*this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
template<class CloudType>
|
||||
Foam::ThermoMPPICCloud<CloudType>::~ThermoMPPICCloud()
|
||||
{}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
@ -0,0 +1,135 @@
|
|||
/*---------------------------------------------------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2013-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::ThermoMPPICCloud
|
||||
|
||||
Description
|
||||
Adds MPPIC modelling to kinematic clouds
|
||||
|
||||
SourceFiles
|
||||
ThermoMPPICCloudI.H
|
||||
ThermoMPPICCloud.C
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef ThermoMPPICCloud_H
|
||||
#define ThermoMPPICCloud_H
|
||||
|
||||
#include "particle.H"
|
||||
#include "Cloud.H"
|
||||
#include "IOdictionary.H"
|
||||
#include "autoPtr.H"
|
||||
#include "fvMesh.H"
|
||||
#include "volFields.H"
|
||||
#include "SLGThermo.H"
|
||||
#include "MPPICCloud.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
// Forward declaration of classes
|
||||
|
||||
template<class CloudType>
|
||||
class PackingModel;
|
||||
|
||||
template<class CloudType>
|
||||
class DampingModel;
|
||||
|
||||
template<class CloudType>
|
||||
class IsotropyModel;
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class ThermoMPPICCloud Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
template<class CloudType>
|
||||
class ThermoMPPICCloud
|
||||
:
|
||||
public MPPICCloud<CloudType>
|
||||
{
|
||||
public:
|
||||
|
||||
// Public typedefs
|
||||
|
||||
//- Type of cloud this cloud was instantiated for
|
||||
typedef CloudType cloudType;
|
||||
|
||||
//- Type of parcel the cloud was instantiated for
|
||||
typedef typename CloudType::parcelType parcelType;
|
||||
|
||||
//- Convenience typedef for this cloud type
|
||||
typedef ThermoMPPICCloud<CloudType> ThermoMPPICCloudType;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
ThermoMPPICCloud(const ThermoMPPICCloud&);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const ThermoMPPICCloud&);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct given carrier gas fields
|
||||
ThermoMPPICCloud
|
||||
(
|
||||
const word& cloudName,
|
||||
const volScalarField& rho,
|
||||
const volVectorField& U,
|
||||
const dimensionedVector& g,
|
||||
const SLGThermo& thermo,
|
||||
bool readFields = true
|
||||
);
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~ThermoMPPICCloud();
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#ifdef NoRepository
|
||||
#include "ThermoMPPICCloud.C"
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#endif
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
@ -34,16 +34,16 @@ Description
|
|||
|
||||
#include "Cloud.H"
|
||||
#include "KinematicCloud.H"
|
||||
#include "MPPICCloud.H"
|
||||
#include "ThermoCloud.H"
|
||||
#include "ThermoMPPICCloud.H"
|
||||
#include "basicThermoKinematicMPPICParcel.H"
|
||||
|
||||
#include "ThermoCloud.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
typedef MPPICCloud
|
||||
typedef ThermoMPPICCloud
|
||||
<
|
||||
ThermoCloud
|
||||
<
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue