mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
removing old (no longer used) tracking stuff
This commit is contained in:
@ -1,72 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
|
||||||
\\/ 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 2 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, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "ParticleTrackingData.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
Foam::label Foam::ParticleTrackingData<ParcelType>::PARTICLE_COUNT = 0;
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
Foam::ParticleTrackingData<ParcelType>::ParticleTrackingData
|
|
||||||
(
|
|
||||||
const Cloud<ParcelType>& cloud
|
|
||||||
)
|
|
||||||
:
|
|
||||||
cloud_(cloud),
|
|
||||||
origProc_(Pstream::myProcNo()),
|
|
||||||
id_(PARTICLE_COUNT++)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
Foam::ParticleTrackingData<ParcelType>::ParticleTrackingData
|
|
||||||
(
|
|
||||||
const ParticleTrackingData& ptd
|
|
||||||
)
|
|
||||||
:
|
|
||||||
cloud_(ptd.cloud_),
|
|
||||||
origProc_(ptd.origProc_),
|
|
||||||
id_(ptd.id_)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
Foam::ParticleTrackingData<ParcelType>::~ParticleTrackingData()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * IOStream operators * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#include "ParticleTrackingDataIO.C"
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,166 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
|
||||||
\\/ 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 2 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, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
Class
|
|
||||||
Foam::ParticleTrackingData
|
|
||||||
|
|
||||||
Description
|
|
||||||
Class to provide additional properties to allow construction of
|
|
||||||
particle tracks
|
|
||||||
|
|
||||||
SourceFiles
|
|
||||||
ParticleTrackingData.C
|
|
||||||
ParticleTrackingDataIO.C
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#ifndef ParticleTrackingData_H
|
|
||||||
#define ParticleTrackingData_H
|
|
||||||
|
|
||||||
#include "Cloud.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
|
|
||||||
// Forward declaration of classes and friend functions
|
|
||||||
template<class ParcelType>
|
|
||||||
class ParticleTrackingData;
|
|
||||||
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
Ostream& operator<<
|
|
||||||
(
|
|
||||||
Ostream&,
|
|
||||||
const ParticleTrackingData<ParcelType>&
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
Class ParticleTrackingData Declaration
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
class ParticleTrackingData
|
|
||||||
{
|
|
||||||
// Private data
|
|
||||||
|
|
||||||
//- Reference to the cloud
|
|
||||||
const Cloud<ParcelType>& cloud_;
|
|
||||||
|
|
||||||
//- Originating processor id
|
|
||||||
label origProc_;
|
|
||||||
|
|
||||||
//- Local particle id
|
|
||||||
label id_;
|
|
||||||
|
|
||||||
//- Cumulative particle count used for particle id
|
|
||||||
static label PARTICLE_COUNT;
|
|
||||||
|
|
||||||
|
|
||||||
// Private member functions
|
|
||||||
|
|
||||||
//- Write properties - particle count
|
|
||||||
static void writeProperties(const Cloud<ParcelType>& cloud);
|
|
||||||
|
|
||||||
//- Read properties - particle count
|
|
||||||
static void readProperties(const Cloud<ParcelType>& cloud);
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
// Constructors
|
|
||||||
|
|
||||||
//- Construct from cloud
|
|
||||||
ParticleTrackingData(const Cloud<ParcelType>& cloud);
|
|
||||||
|
|
||||||
//- Construct copy
|
|
||||||
ParticleTrackingData(const ParticleTrackingData& ptd);
|
|
||||||
|
|
||||||
//- Construct from Istream and mesh
|
|
||||||
ParticleTrackingData
|
|
||||||
(
|
|
||||||
const Cloud<ParcelType>& cloud,
|
|
||||||
Istream& is,
|
|
||||||
bool readFields
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
|
||||||
~ParticleTrackingData();
|
|
||||||
|
|
||||||
|
|
||||||
// Member functions
|
|
||||||
|
|
||||||
// Access
|
|
||||||
|
|
||||||
//- Return const access to the cloud
|
|
||||||
inline const Cloud<ParcelType>& cloud() const;
|
|
||||||
|
|
||||||
//- Return const access to the originating processor id
|
|
||||||
inline label origProc() const;
|
|
||||||
|
|
||||||
//- Return const access to the local particle id
|
|
||||||
inline label id() const;
|
|
||||||
|
|
||||||
|
|
||||||
// I-O
|
|
||||||
|
|
||||||
//- Read fields
|
|
||||||
static void readFields(Cloud<ParcelType>& c);
|
|
||||||
|
|
||||||
//- Write fields
|
|
||||||
static void writeFields(const Cloud<ParcelType>& c);
|
|
||||||
|
|
||||||
|
|
||||||
// Ostream Operator
|
|
||||||
|
|
||||||
friend Ostream& operator<< <ParcelType>
|
|
||||||
(
|
|
||||||
Ostream&,
|
|
||||||
const ParticleTrackingData<ParcelType>&
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
} // End namespace Foam
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#include "ParticleTrackingDataI.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#ifdef NoRepository
|
|
||||||
# include "ParticleTrackingData.C"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,49 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
|
||||||
\\/ 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 2 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, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
inline const Foam::Cloud<ParcelType>&
|
|
||||||
Foam::ParticleTrackingData<ParcelType>::cloud() const
|
|
||||||
{
|
|
||||||
return cloud_;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
inline Foam::label Foam::ParticleTrackingData<ParcelType>::origProc() const
|
|
||||||
{
|
|
||||||
return origProc_;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
inline Foam::label Foam::ParticleTrackingData<ParcelType>::id() const
|
|
||||||
{
|
|
||||||
return id_;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,233 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
|
||||||
\\/ 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 2 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, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "ParticleTrackingData.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
void Foam::ParticleTrackingData<ParcelType>::readProperties
|
|
||||||
(
|
|
||||||
const Cloud<ParcelType>& cloud
|
|
||||||
)
|
|
||||||
{
|
|
||||||
IOobject propsDictHeader
|
|
||||||
(
|
|
||||||
"particleTrackingProperties",
|
|
||||||
cloud.db().time().timeName(),
|
|
||||||
"uniform/Lagrangian"/cloud.name(),
|
|
||||||
cloud.db(),
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::NO_WRITE,
|
|
||||||
false
|
|
||||||
);
|
|
||||||
|
|
||||||
if (propsDictHeader.headerOk())
|
|
||||||
{
|
|
||||||
const IOdictionary propsDict(propsDictHeader);
|
|
||||||
|
|
||||||
word procName("processor" + name(Pstream::myProcNo()));
|
|
||||||
if (propsDict.found(procName))
|
|
||||||
{
|
|
||||||
propsDict.subDict(procName).lookup("particleCount") >>
|
|
||||||
PARTICLE_COUNT;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
void Foam::ParticleTrackingData<ParcelType>::writeProperties
|
|
||||||
(
|
|
||||||
const Cloud<ParcelType>& cloud
|
|
||||||
)
|
|
||||||
{
|
|
||||||
if (cloud.db().time().outputTime())
|
|
||||||
{
|
|
||||||
IOdictionary propsDict
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"particleTrackingProperties",
|
|
||||||
cloud.db().time().timeName(),
|
|
||||||
"uniform/Lagrangian"/cloud.name(),
|
|
||||||
cloud.db(),
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::NO_WRITE,
|
|
||||||
false
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
word procName("processor" + name(Pstream::myProcNo()));
|
|
||||||
propsDict.add(procName, dictionary());
|
|
||||||
propsDict.subDict(procName).add("particleCount", PARTICLE_COUNT);
|
|
||||||
|
|
||||||
propsDict.regIOobject::write();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
Foam::ParticleTrackingData<ParcelType>::ParticleTrackingData
|
|
||||||
(
|
|
||||||
const Cloud<ParcelType>& cloud,
|
|
||||||
Istream& is,
|
|
||||||
bool readFields
|
|
||||||
)
|
|
||||||
:
|
|
||||||
cloud_(cloud),
|
|
||||||
origProc_(-1),
|
|
||||||
id_(-1)
|
|
||||||
{
|
|
||||||
if (readFields)
|
|
||||||
{
|
|
||||||
if (is.format() == IOstream::ASCII)
|
|
||||||
{
|
|
||||||
is >> origProc_ >> id_;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
is.read
|
|
||||||
(
|
|
||||||
reinterpret_cast<char*>(&origProc_),
|
|
||||||
sizeof(origProc_) + sizeof(id_)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check state of Istream
|
|
||||||
is.check
|
|
||||||
(
|
|
||||||
"ParticleTrackingData<ParcelType>::ParticleTrackingData"
|
|
||||||
"("
|
|
||||||
"Istream&, "
|
|
||||||
"bool"
|
|
||||||
")"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
void Foam::ParticleTrackingData<ParcelType>::readFields
|
|
||||||
(
|
|
||||||
Cloud<ParcelType>& c
|
|
||||||
)
|
|
||||||
{
|
|
||||||
if (!c.size())
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
readProperties(c);
|
|
||||||
|
|
||||||
IOField<label> origProc(c.fieldIOobject("origProc", IOobject::MUST_READ));
|
|
||||||
c.checkFieldIOobject(c, origProc);
|
|
||||||
|
|
||||||
IOField<label> id(c.fieldIOobject("id", IOobject::MUST_READ));
|
|
||||||
c.checkFieldIOobject(c, id);
|
|
||||||
|
|
||||||
label i = 0;
|
|
||||||
forAllIter(typename Cloud<ParcelType>, c, iter)
|
|
||||||
{
|
|
||||||
ParcelType& p = iter();
|
|
||||||
p.origProc_ = origProc[i];
|
|
||||||
p.id_ = id[i];
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
void Foam::ParticleTrackingData<ParcelType>::writeFields
|
|
||||||
(
|
|
||||||
const Cloud<ParcelType>& c
|
|
||||||
)
|
|
||||||
{
|
|
||||||
writeProperties(c);
|
|
||||||
|
|
||||||
const label np = c.size();
|
|
||||||
|
|
||||||
IOField<label> origProc
|
|
||||||
(
|
|
||||||
c.fieldIOobject("origProc", IOobject::NO_READ),
|
|
||||||
np
|
|
||||||
);
|
|
||||||
IOField<label> id(c.fieldIOobject("id", IOobject::NO_READ), np);
|
|
||||||
|
|
||||||
label i = 0;
|
|
||||||
forAllConstIter(typename Cloud<ParcelType>, c, iter)
|
|
||||||
{
|
|
||||||
const ParcelType& p = iter();
|
|
||||||
|
|
||||||
origProc[i] = p.origProc();
|
|
||||||
id[i] = p.id();
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
origProc.write();
|
|
||||||
id.write();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
Foam::Ostream& Foam::operator<<
|
|
||||||
(
|
|
||||||
Ostream& os,
|
|
||||||
const ParticleTrackingData<ParcelType>& p
|
|
||||||
)
|
|
||||||
{
|
|
||||||
if (os.format() == IOstream::ASCII)
|
|
||||||
{
|
|
||||||
os << p.origProc_ << token::SPACE << p.id_ << token::SPACE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
os.write
|
|
||||||
(
|
|
||||||
reinterpret_cast<const char*>(&p.origProc_),
|
|
||||||
sizeof(p.origProc_) + sizeof(p.id_)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check state of Ostream
|
|
||||||
os.check
|
|
||||||
(
|
|
||||||
"Ostream& operator<<"
|
|
||||||
"("
|
|
||||||
"Ostream&, "
|
|
||||||
"const ParticleTrackingData<ParcelType>&"
|
|
||||||
")"
|
|
||||||
);
|
|
||||||
|
|
||||||
return os;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -23,7 +23,6 @@ $(DERIVEDCLOUDS)/basicKinematicCloud/basicKinematicCloud.C
|
|||||||
$(DERIVEDCLOUDS)/basicThermoCloud/basicThermoCloud.C
|
$(DERIVEDCLOUDS)/basicThermoCloud/basicThermoCloud.C
|
||||||
$(DERIVEDCLOUDS)/BasicReactingCloud/defineBasicReactingCloud.C
|
$(DERIVEDCLOUDS)/BasicReactingCloud/defineBasicReactingCloud.C
|
||||||
$(DERIVEDCLOUDS)/BasicReactingMultiphaseCloud/defineBasicReactingMultiphaseCloud.C
|
$(DERIVEDCLOUDS)/BasicReactingMultiphaseCloud/defineBasicReactingMultiphaseCloud.C
|
||||||
$(DERIVEDCLOUDS)/BasicTrackedReactingCloud/defineBasicTrackedReactingCloud.C
|
|
||||||
|
|
||||||
|
|
||||||
/* kinematic parcel sub-models */
|
/* kinematic parcel sub-models */
|
||||||
@ -46,12 +45,6 @@ $(REACTINGPARCEL)/defineBasicReactingParcel.C
|
|||||||
$(REACTINGPARCEL)/makeBasicReactingParcelSubmodels.C
|
$(REACTINGPARCEL)/makeBasicReactingParcelSubmodels.C
|
||||||
|
|
||||||
|
|
||||||
/* tracked reacting parcel sub-models */
|
|
||||||
TRACKEDREACTINGPARCEL=$(DERIVEDPARCELS)/BasicTrackedReactingParcel
|
|
||||||
$(TRACKEDREACTINGPARCEL)/defineTrackedReactingParcel.C
|
|
||||||
$(TRACKEDREACTINGPARCEL)/makeBasicTrackedReactingParcelSubmodels.C
|
|
||||||
|
|
||||||
|
|
||||||
/* reacting multiphase parcel sub-models */
|
/* reacting multiphase parcel sub-models */
|
||||||
REACTINGMPPARCEL=$(DERIVEDPARCELS)/BasicReactingMultiphaseParcel
|
REACTINGMPPARCEL=$(DERIVEDPARCELS)/BasicReactingMultiphaseParcel
|
||||||
$(REACTINGMPPARCEL)/defineBasicReactingMultiphaseParcel.C
|
$(REACTINGMPPARCEL)/defineBasicReactingMultiphaseParcel.C
|
||||||
|
|||||||
@ -1,70 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd.
|
|
||||||
\\/ 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 2 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, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "BasicTrackedReactingCloud.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class ThermoType>
|
|
||||||
Foam::BasicTrackedReactingCloud<ThermoType>::BasicTrackedReactingCloud
|
|
||||||
(
|
|
||||||
const word& cloudName,
|
|
||||||
const volScalarField& rho,
|
|
||||||
const volVectorField& U,
|
|
||||||
const dimensionedVector& g,
|
|
||||||
basicThermo& thermo
|
|
||||||
)
|
|
||||||
:
|
|
||||||
ReactingCloud<BasicTrackedReactingParcel<ThermoType> >
|
|
||||||
(
|
|
||||||
cloudName,
|
|
||||||
rho,
|
|
||||||
U,
|
|
||||||
g,
|
|
||||||
thermo
|
|
||||||
)
|
|
||||||
{
|
|
||||||
BasicTrackedReactingParcel<ThermoType>::readFields(*this);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class ThermoType>
|
|
||||||
Foam::BasicTrackedReactingCloud<ThermoType>::~BasicTrackedReactingCloud()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class ThermoType>
|
|
||||||
void Foam::BasicTrackedReactingCloud<ThermoType>::writeFields() const
|
|
||||||
{
|
|
||||||
BasicTrackedReactingParcel<ThermoType>::writeFields(*this);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,113 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd.
|
|
||||||
\\/ 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 2 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, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
Class
|
|
||||||
Foam::BasicTrackedReactingCloud
|
|
||||||
|
|
||||||
Description
|
|
||||||
Tracked racting cloud templated on the type of carrier phase thermodynamics
|
|
||||||
|
|
||||||
SourceFiles
|
|
||||||
BasicTrackedReactingCloud.C
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#ifndef BasicTrackedReactingCloud_H
|
|
||||||
#define BasicTrackedReactingCloud_H
|
|
||||||
|
|
||||||
#include "ReactingCloud.H"
|
|
||||||
#include "BasicTrackedReactingParcel.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
|
|
||||||
// Forward declaration of classes
|
|
||||||
template<class ThermoType>
|
|
||||||
class BasicTrackedReactingCloud;
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
Class BasicTrackedReactingCloud Declaration
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
template<class ThermoType>
|
|
||||||
class BasicTrackedReactingCloud
|
|
||||||
:
|
|
||||||
public ReactingCloud<BasicTrackedReactingParcel<ThermoType> >
|
|
||||||
{
|
|
||||||
// Private Member Functions
|
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
|
||||||
BasicTrackedReactingCloud(const BasicTrackedReactingCloud&);
|
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
|
||||||
void operator=(const BasicTrackedReactingCloud&);
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
//- Runtime type information
|
|
||||||
TypeName("BasicTrackedReactingCloud");
|
|
||||||
|
|
||||||
|
|
||||||
// Constructors
|
|
||||||
|
|
||||||
//- Construct given carrier gas fields
|
|
||||||
BasicTrackedReactingCloud
|
|
||||||
(
|
|
||||||
const word& cloudName,
|
|
||||||
const volScalarField& rho,
|
|
||||||
const volVectorField& U,
|
|
||||||
const dimensionedVector& g,
|
|
||||||
basicThermo& thermo
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
|
||||||
~BasicTrackedReactingCloud();
|
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
|
||||||
|
|
||||||
//- Write fields
|
|
||||||
void writeFields() const;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
} // End namespace Foam
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#ifdef NoRepository
|
|
||||||
#include "BasicTrackedReactingCloud.C"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,38 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd.
|
|
||||||
\\/ 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 2 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, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "createReactingCloudTypes.H"
|
|
||||||
#include "BasicTrackedReactingCloud.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
createReactingCloudType(BasicTrackedReactingCloud);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,47 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd.
|
|
||||||
\\/ 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 2 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, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "TrackedReactingParcel.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template <class ParcelType>
|
|
||||||
Foam::TrackedReactingParcel<ParcelType>::TrackedReactingParcel
|
|
||||||
(
|
|
||||||
const TrackedReactingParcel<ParcelType>& p
|
|
||||||
)
|
|
||||||
:
|
|
||||||
ReactingParcel<ParcelType>(p),
|
|
||||||
ParticleTrackingData<ParcelType>(p)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * IOStream operators * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#include "TrackedReactingParcelIO.C"
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
|
|
||||||
@ -1,169 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd.
|
|
||||||
\\/ 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 2 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, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
Class
|
|
||||||
Foam::TrackedReactingParcel
|
|
||||||
|
|
||||||
Description
|
|
||||||
Adds tracking to ReactingParcel
|
|
||||||
|
|
||||||
SourceFiles
|
|
||||||
TrackedReactingParcelI.H
|
|
||||||
TrackedReactingParcel.C
|
|
||||||
TrackedReactingParcelIO.C
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#ifndef TrackedReactingParcel_H
|
|
||||||
#define TrackedReactingParcel_H
|
|
||||||
|
|
||||||
#include "ReactingParcel.H"
|
|
||||||
#include "ParticleTrackingData.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
class TrackedReactingParcel;
|
|
||||||
|
|
||||||
// Forward declaration of friend functions
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
Ostream& operator<<
|
|
||||||
(
|
|
||||||
Ostream&,
|
|
||||||
const TrackedReactingParcel<ParcelType>&
|
|
||||||
);
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
Class TrackedReactingParcel Declaration
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
class TrackedReactingParcel
|
|
||||||
:
|
|
||||||
public ReactingParcel<ParcelType>,
|
|
||||||
public ParticleTrackingData<ParcelType>
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
typedef typename ReactingParcel<ParcelType>::constantProperties
|
|
||||||
constantProperties;
|
|
||||||
|
|
||||||
// Static data
|
|
||||||
|
|
||||||
//- Runtime type information
|
|
||||||
TypeName("TrackedReactingParcel");
|
|
||||||
|
|
||||||
|
|
||||||
// Constructors
|
|
||||||
|
|
||||||
//- Construct from owner, position, and cloud owner
|
|
||||||
// Other properties initialised as null
|
|
||||||
inline TrackedReactingParcel
|
|
||||||
(
|
|
||||||
ReactingCloud<ParcelType>& owner,
|
|
||||||
const vector& position,
|
|
||||||
const label cellI
|
|
||||||
);
|
|
||||||
|
|
||||||
//- Construct from components
|
|
||||||
inline TrackedReactingParcel
|
|
||||||
(
|
|
||||||
ReactingCloud<ParcelType>& owner,
|
|
||||||
const vector& position,
|
|
||||||
const label cellI,
|
|
||||||
const label typeId,
|
|
||||||
const scalar nParticle0,
|
|
||||||
const scalar d0,
|
|
||||||
const vector& U0,
|
|
||||||
const scalarField& Y0,
|
|
||||||
const constantProperties& constProps
|
|
||||||
);
|
|
||||||
|
|
||||||
//- Construct from Istream
|
|
||||||
TrackedReactingParcel
|
|
||||||
(
|
|
||||||
const Cloud<ParcelType>& c,
|
|
||||||
Istream& is,
|
|
||||||
bool readFields = true
|
|
||||||
);
|
|
||||||
|
|
||||||
//- Construct as a copy
|
|
||||||
TrackedReactingParcel(const TrackedReactingParcel& p);
|
|
||||||
|
|
||||||
//- Construct and return a clone
|
|
||||||
autoPtr<TrackedReactingParcel> clone() const
|
|
||||||
{
|
|
||||||
return
|
|
||||||
autoPtr<TrackedReactingParcel>
|
|
||||||
(
|
|
||||||
new TrackedReactingParcel(*this)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
|
||||||
|
|
||||||
// I-O
|
|
||||||
|
|
||||||
//- Read
|
|
||||||
static void readFields(ReactingCloud<ParcelType>& c);
|
|
||||||
|
|
||||||
//- Write
|
|
||||||
static void writeFields(const ReactingCloud<ParcelType>& c);
|
|
||||||
|
|
||||||
|
|
||||||
// Ostream Operator
|
|
||||||
|
|
||||||
friend Ostream& operator<< <ParcelType>
|
|
||||||
(
|
|
||||||
Ostream&,
|
|
||||||
const TrackedReactingParcel<ParcelType>&
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
} // End namespace Foam
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#include "TrackedReactingParcelI.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#ifdef NoRepository
|
|
||||||
#include "TrackedReactingParcel.C"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
|
|
||||||
@ -1,72 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd.
|
|
||||||
\\/ 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 2 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, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template <class ParcelType>
|
|
||||||
inline Foam::TrackedReactingParcel<ParcelType>::TrackedReactingParcel
|
|
||||||
(
|
|
||||||
ReactingCloud<ParcelType>& owner,
|
|
||||||
const vector& position,
|
|
||||||
const label cellI
|
|
||||||
)
|
|
||||||
:
|
|
||||||
ReactingParcel<ParcelType>(owner, position, cellI),
|
|
||||||
ParticleTrackingData<ParcelType>(owner)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
template <class ParcelType>
|
|
||||||
inline Foam::TrackedReactingParcel<ParcelType>::TrackedReactingParcel
|
|
||||||
(
|
|
||||||
ReactingCloud<ParcelType>& owner,
|
|
||||||
const vector& position,
|
|
||||||
const label cellI,
|
|
||||||
const label typeId,
|
|
||||||
const scalar nParticle0,
|
|
||||||
const scalar d0,
|
|
||||||
const vector& U0,
|
|
||||||
const scalarField& Y0,
|
|
||||||
const constantProperties& constProps
|
|
||||||
)
|
|
||||||
:
|
|
||||||
ReactingParcel<ParcelType>
|
|
||||||
(
|
|
||||||
owner,
|
|
||||||
position,
|
|
||||||
cellI,
|
|
||||||
typeId,
|
|
||||||
nParticle0,
|
|
||||||
d0,
|
|
||||||
U0,
|
|
||||||
Y0,
|
|
||||||
constProps
|
|
||||||
),
|
|
||||||
ParticleTrackingData<ParcelType>(owner)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,105 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd.
|
|
||||||
\\/ 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 2 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, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "TrackedReactingParcel.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template <class ParcelType>
|
|
||||||
Foam::TrackedReactingParcel<ParcelType>::TrackedReactingParcel
|
|
||||||
(
|
|
||||||
const Cloud<ParcelType>& cloud,
|
|
||||||
Istream& is,
|
|
||||||
bool readFields
|
|
||||||
)
|
|
||||||
:
|
|
||||||
ReactingParcel<ParcelType>(cloud, is, readFields),
|
|
||||||
ParticleTrackingData<ParcelType>(cloud, is, readFields)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
void Foam::TrackedReactingParcel<ParcelType>::readFields
|
|
||||||
(
|
|
||||||
ReactingCloud<ParcelType>& c
|
|
||||||
)
|
|
||||||
{
|
|
||||||
if (!c.size())
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
ReactingParcel<ParcelType>::readFields(c);
|
|
||||||
ParticleTrackingData<ParcelType>::readFields(c);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
void Foam::TrackedReactingParcel<ParcelType>::writeFields
|
|
||||||
(
|
|
||||||
const ReactingCloud<ParcelType>& c
|
|
||||||
)
|
|
||||||
{
|
|
||||||
ReactingParcel<ParcelType>::writeFields(c);
|
|
||||||
ParticleTrackingData<ParcelType>::writeFields(c);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
Foam::Ostream& Foam::operator<<
|
|
||||||
(
|
|
||||||
Ostream& os,
|
|
||||||
const TrackedReactingParcel<ParcelType>& p
|
|
||||||
)
|
|
||||||
{
|
|
||||||
if (os.format() == IOstream::ASCII)
|
|
||||||
{
|
|
||||||
os << static_cast<const ReactingParcel<ParcelType>&>(p)
|
|
||||||
<< static_cast<const ParticleTrackingData<ParcelType>&>(p);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
os << static_cast<const ReactingParcel<ParcelType>&>(p)
|
|
||||||
<< static_cast<const ParticleTrackingData<ParcelType>&>(p);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check state of Ostream
|
|
||||||
os.check
|
|
||||||
(
|
|
||||||
"Ostream& operator<<"
|
|
||||||
"("
|
|
||||||
"Ostream&, "
|
|
||||||
"const TrackedReactingParcel<ParcelType>&"
|
|
||||||
")"
|
|
||||||
);
|
|
||||||
|
|
||||||
return os;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,113 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd.
|
|
||||||
\\/ 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 2 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, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "BasicTrackedReactingParcel.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class ThermoType>
|
|
||||||
Foam::BasicTrackedReactingParcel<ThermoType>::BasicTrackedReactingParcel
|
|
||||||
(
|
|
||||||
ReactingCloud<BasicTrackedReactingParcel<ThermoType> >& owner,
|
|
||||||
const vector& position,
|
|
||||||
const label cellI
|
|
||||||
)
|
|
||||||
:
|
|
||||||
TrackedReactingParcel<BasicTrackedReactingParcel<ThermoType> >
|
|
||||||
(
|
|
||||||
owner,
|
|
||||||
position,
|
|
||||||
cellI
|
|
||||||
)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
template<class ThermoType>
|
|
||||||
Foam::BasicTrackedReactingParcel<ThermoType>::BasicTrackedReactingParcel
|
|
||||||
(
|
|
||||||
ReactingCloud<BasicTrackedReactingParcel<ThermoType> >& owner,
|
|
||||||
const vector& position,
|
|
||||||
const label cellI,
|
|
||||||
const label typeId,
|
|
||||||
const scalar nParticle0,
|
|
||||||
const scalar d0,
|
|
||||||
const vector& U0,
|
|
||||||
const scalarField& Y0,
|
|
||||||
const typename
|
|
||||||
TrackedReactingParcel<BasicTrackedReactingParcel<ThermoType> >::
|
|
||||||
constantProperties& constProps
|
|
||||||
)
|
|
||||||
:
|
|
||||||
TrackedReactingParcel<BasicTrackedReactingParcel<ThermoType> >
|
|
||||||
(
|
|
||||||
owner,
|
|
||||||
position,
|
|
||||||
cellI,
|
|
||||||
typeId,
|
|
||||||
nParticle0,
|
|
||||||
d0,
|
|
||||||
U0,
|
|
||||||
Y0,
|
|
||||||
constProps
|
|
||||||
)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
template<class ThermoType>
|
|
||||||
Foam::BasicTrackedReactingParcel<ThermoType>::BasicTrackedReactingParcel
|
|
||||||
(
|
|
||||||
const Cloud<BasicTrackedReactingParcel<ThermoType> >& cloud,
|
|
||||||
Istream& is,
|
|
||||||
bool readFields
|
|
||||||
)
|
|
||||||
:
|
|
||||||
TrackedReactingParcel<BasicTrackedReactingParcel<ThermoType> >
|
|
||||||
(
|
|
||||||
cloud,
|
|
||||||
is,
|
|
||||||
readFields
|
|
||||||
)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
template<class ThermoType>
|
|
||||||
Foam::BasicTrackedReactingParcel<ThermoType>::BasicTrackedReactingParcel
|
|
||||||
(
|
|
||||||
const BasicTrackedReactingParcel<ThermoType>& p
|
|
||||||
)
|
|
||||||
:
|
|
||||||
TrackedReactingParcel<BasicTrackedReactingParcel<ThermoType> >(p)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructors * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class ThermoType>
|
|
||||||
Foam::BasicTrackedReactingParcel<ThermoType>::~BasicTrackedReactingParcel()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,137 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd.
|
|
||||||
\\/ 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 2 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, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
Class
|
|
||||||
Foam::BasicTrackedReactingParcel
|
|
||||||
|
|
||||||
Description
|
|
||||||
|
|
||||||
|
|
||||||
SourceFiles
|
|
||||||
BasicTrackedReactingParcel.C
|
|
||||||
BasicTrackedReactingParcelIO.C
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#ifndef BasicTrackedReactingParcel_H
|
|
||||||
#define BasicTrackedReactingParcel_H
|
|
||||||
|
|
||||||
#include "TrackedReactingParcel.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
|
|
||||||
// Forward declaration of classes
|
|
||||||
template<class ThermoType>
|
|
||||||
class BasicTrackedReactingParcel;
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
Class BasicTrackedReactingParcel Declaration
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
template<class ThermoType>
|
|
||||||
class BasicTrackedReactingParcel
|
|
||||||
:
|
|
||||||
public TrackedReactingParcel<BasicTrackedReactingParcel<ThermoType> >
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
//- The type of thermodynamics this parcel was instantiated for
|
|
||||||
typedef ThermoType thermoType;
|
|
||||||
|
|
||||||
//- Run-time type information
|
|
||||||
TypeName("BasicTrackedReactingParcel");
|
|
||||||
|
|
||||||
// Constructors
|
|
||||||
|
|
||||||
//- Construct from owner, position, and cloud owner
|
|
||||||
// Other properties initialised as null
|
|
||||||
BasicTrackedReactingParcel
|
|
||||||
(
|
|
||||||
ReactingCloud<BasicTrackedReactingParcel>& owner,
|
|
||||||
const vector& position,
|
|
||||||
const label cellI
|
|
||||||
);
|
|
||||||
|
|
||||||
//- Construct from components
|
|
||||||
BasicTrackedReactingParcel
|
|
||||||
(
|
|
||||||
ReactingCloud<BasicTrackedReactingParcel>& owner,
|
|
||||||
const vector& position,
|
|
||||||
const label cellI,
|
|
||||||
const label typeId,
|
|
||||||
const scalar nParticle0,
|
|
||||||
const scalar d0,
|
|
||||||
const vector& U0,
|
|
||||||
const scalarField& Y0,
|
|
||||||
const typename
|
|
||||||
TrackedReactingParcel<BasicTrackedReactingParcel>::
|
|
||||||
constantProperties& constProps
|
|
||||||
);
|
|
||||||
|
|
||||||
//- Construct from Istream
|
|
||||||
BasicTrackedReactingParcel
|
|
||||||
(
|
|
||||||
const Cloud<BasicTrackedReactingParcel>& c,
|
|
||||||
Istream& is,
|
|
||||||
bool readFields = true
|
|
||||||
);
|
|
||||||
|
|
||||||
//- Construct as a copy
|
|
||||||
BasicTrackedReactingParcel(const BasicTrackedReactingParcel& p);
|
|
||||||
|
|
||||||
//- Construct and return a clone
|
|
||||||
autoPtr<BasicTrackedReactingParcel> clone() const
|
|
||||||
{
|
|
||||||
return
|
|
||||||
autoPtr<BasicTrackedReactingParcel>
|
|
||||||
(
|
|
||||||
new BasicTrackedReactingParcel(*this)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
|
||||||
virtual ~BasicTrackedReactingParcel();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
} // End namespace Foam
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#ifdef NoRepository
|
|
||||||
#include "BasicTrackedReactingParcel.C"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,38 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd.
|
|
||||||
\\/ 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 2 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, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "createTrackedReactingParcelTypes.H"
|
|
||||||
#include "BasicTrackedReactingParcel.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
createTrackedReactingParcelType(BasicTrackedReactingParcel);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,63 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd.
|
|
||||||
\\/ 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 2 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, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "BasicTrackedReactingParcel.H"
|
|
||||||
|
|
||||||
// Kinematic
|
|
||||||
#include "makeReactingParcelDispersionModels.H"
|
|
||||||
#include "makeReactingParcelDragModels.H"
|
|
||||||
#include "makeReactingParcelInjectionModels.H"
|
|
||||||
#include "makeReactingParcelPatchInteractionModels.H"
|
|
||||||
#include "makeReactingParcelPostProcessingModels.H"
|
|
||||||
|
|
||||||
// Thermo
|
|
||||||
#include "makeReactingParcelHeatTransferModels.H"
|
|
||||||
|
|
||||||
// Reacting
|
|
||||||
#include "makeReactingParcelCompositionModels.H"
|
|
||||||
#include "makeReactingParcelPhaseChangeModels.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
// Kinematic sub-models
|
|
||||||
makeReactingDispersionModels(BasicTrackedReactingParcel);
|
|
||||||
makeReactingDragModels(BasicTrackedReactingParcel);
|
|
||||||
makeReactingInjectionModels(BasicTrackedReactingParcel);
|
|
||||||
makeReactingPatchInteractionModels(BasicTrackedReactingParcel);
|
|
||||||
makeReactingPostProcessingModels(BasicTrackedReactingParcel);
|
|
||||||
|
|
||||||
// Thermo sub-models
|
|
||||||
makeReactingHeatTransferModels(BasicTrackedReactingParcel);
|
|
||||||
|
|
||||||
// Reacting sub-models
|
|
||||||
makeReactingCompositionModels(BasicTrackedReactingParcel);
|
|
||||||
makeReactingPhaseChangeModels(BasicTrackedReactingParcel);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
Reference in New Issue
Block a user