Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
bf172bbf
Commit
bf172bbf
authored
Feb 24, 2011
by
andy
Browse files
ENH: Re-worked lagrangian/coalCombustion
parent
e8ea1f03
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/coalCombustion/Make/files
View file @
bf172bbf
/* Coal parcel and sub-models */
coalParcel/coalParcel.C
coalParcel/defineCoalParcel.C
coalParcel/makeCoalParcelSubmodels.C
...
...
src/lagrangian/coalCombustion/coalCloud/coalCloud.H
View file @
bf172bbf
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2008-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2008-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -25,13 +25,17 @@ Class
CoalCloud
Description
C
oal cloud
C
loud class to introduce coal parcels
\*---------------------------------------------------------------------------*/
#ifndef coalCloud_H
#define coalCloud_H
#include
"Cloud.H"
#include
"KinematicCloud.H"
#include
"ThermoCloud.H"
#include
"ReactingCloud.H"
#include
"ReactingMultiphaseCloud.H"
#include
"coalParcel.H"
...
...
@@ -39,7 +43,22 @@ Description
namespace
Foam
{
typedef
ReactingMultiphaseCloud
<
coalParcel
>
coalCloud
;
typedef
ReactingMultiphaseCloud
<
ReactingCloud
<
ThermoCloud
<
KinematicCloud
<
Cloud
<
coalParcel
>
>
>
>
>
coalCloud
;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/lagrangian/coalCombustion/coalParcel/coalParcel.C
deleted
100644 → 0
View file @
e8ea1f03
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2008-2010 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 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
"coalParcel.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam
::
coalParcel
::
coalParcel
(
ReactingMultiphaseCloud
<
coalParcel
>&
owner
,
const
vector
&
position
,
const
label
cellI
,
const
label
tetFaceI
,
const
label
tetPtI
)
:
ReactingMultiphaseParcel
<
coalParcel
>
(
owner
,
position
,
cellI
,
tetFaceI
,
tetPtI
)
{}
Foam
::
coalParcel
::
coalParcel
(
ReactingMultiphaseCloud
<
coalParcel
>&
owner
,
const
vector
&
position
,
const
label
cellI
,
const
label
tetFaceI
,
const
label
tetPtI
,
const
label
typeId
,
const
scalar
nParticle0
,
const
scalar
d0
,
const
scalar
dTarget0
,
const
vector
&
U0
,
const
vector
&
f0
,
const
vector
&
pi0
,
const
vector
&
tau0
,
const
scalarField
&
YMixture0
,
const
scalarField
&
YGas0
,
const
scalarField
&
YLiquid0
,
const
scalarField
&
YSolid0
,
const
ReactingMultiphaseParcel
<
coalParcel
>::
constantProperties
&
constProps
)
:
ReactingMultiphaseParcel
<
coalParcel
>
(
owner
,
position
,
cellI
,
tetFaceI
,
tetPtI
,
typeId
,
nParticle0
,
d0
,
dTarget0
,
U0
,
f0
,
pi0
,
tau0
,
YMixture0
,
YGas0
,
YLiquid0
,
YSolid0
,
constProps
)
{}
Foam
::
coalParcel
::
coalParcel
(
const
Cloud
<
coalParcel
>&
cloud
,
Istream
&
is
,
bool
readFields
)
:
ReactingMultiphaseParcel
<
coalParcel
>
(
cloud
,
is
,
readFields
)
{}
Foam
::
coalParcel
::
coalParcel
(
const
coalParcel
&
p
)
:
ReactingMultiphaseParcel
<
coalParcel
>
(
p
)
{
}
Foam
::
coalParcel
::
coalParcel
(
const
coalParcel
&
p
,
const
ReactingMultiphaseCloud
<
coalParcel
>&
c
)
:
ReactingMultiphaseParcel
<
coalParcel
>
(
p
,
c
)
{}
// * * * * * * * * * * * * * * * * Destructors * * * * * * * * * * * * * * //
Foam
::
coalParcel
::~
coalParcel
()
{}
// ************************************************************************* //
src/lagrangian/coalCombustion/coalParcel/coalParcel.H
View file @
bf172bbf
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2008-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2008-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -25,7 +25,7 @@ Class
coalParcel
Description
C
oal parcel
class
Definition of c
oal parcel
SourceFiles
CoalParcel.C
...
...
@@ -35,112 +35,37 @@ SourceFiles
#ifndef coalParcel_H
#define coalParcel_H
#include
"contiguous.H"
#include
"particle.H"
#include
"KinematicParcel.H"
#include
"ThermoParcel.H"
#include
"ReactingParcel.H"
#include
"ReactingMultiphaseParcel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace
Foam
{
/*---------------------------------------------------------------------------*\
Class coalParcel Declaration
\*---------------------------------------------------------------------------*/
class
coalParcel
:
public
ReactingMultiphaseParcel
<
coalParcel
>
{
public:
// Run-time type information
TypeName
(
"coalParcel"
);
// Constructors
//- Construct from owner, position, and cloud owner
// Other properties initialised as null
coalParcel
(
ReactingMultiphaseCloud
<
coalParcel
>&
owner
,
const
vector
&
position
,
const
label
cellI
,
const
label
tetFaceI
,
const
label
tetPtI
);
//- Construct from components
coalParcel
(
ReactingMultiphaseCloud
<
coalParcel
>&
owner
,
const
vector
&
position
,
const
label
cellI
,
const
label
tetFaceI
,
const
label
tetPtI
,
const
label
typeId
,
const
scalar
nParticle0
,
const
scalar
d0
,
const
scalar
dTarget0
,
const
vector
&
U0
,
const
vector
&
f0
,
const
vector
&
pi0
,
const
vector
&
tau0
,
const
scalarField
&
YMixture0
,
const
scalarField
&
YGas0
,
const
scalarField
&
YLiquid0
,
const
scalarField
&
YSolid0
,
const
ReactingMultiphaseParcel
<
coalParcel
>::
constantProperties
&
constProps
);
//- Construct from Istream
coalParcel
(
const
Cloud
<
coalParcel
>&
c
,
Istream
&
is
,
bool
readFields
=
true
);
//- Construct as a copy
coalParcel
(
const
coalParcel
&
p
);
//- Construct as a copy
coalParcel
(
const
coalParcel
&
p
,
const
ReactingMultiphaseCloud
<
coalParcel
>&
c
);
//- Construct and return a (basic particle) clone
virtual
autoPtr
<
Particle
<
coalParcel
>
>
clone
()
const
{
return
autoPtr
<
Particle
<
coalParcel
>
>
(
new
coalParcel
(
*
this
));
}
//- Construct and return a (basic particle) clone
virtual
autoPtr
<
Particle
<
coalParcel
>
>
clone
(
const
Cloud
<
coalParcel
>&
c
)
const
{
return
autoPtr
<
Particle
<
coalParcel
>
>
(
new
coalParcel
(
*
this
,
static_cast
<
const
ReactingMultiphaseCloud
<
coalParcel
>&>
(
c
)
)
);
}
//- Destructor
virtual
~
coalParcel
();
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
}
// End namespace Foam
typedef
ReactingMultiphaseParcel
<
ReactingParcel
<
ThermoParcel
<
KinematicParcel
<
particle
>
>
>
>
coalParcel
;
template
<
>
inline
bool
contiguous
<
coalParcel
>
()
{
return
false
;
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/lagrangian/coalCombustion/coalParcel/defineCoalParcel.C
View file @
bf172bbf
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2008-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2008-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -30,7 +30,8 @@ License
namespace
Foam
{
createReactingMultiphaseParcelTypes
(
coalParcel
);
// createReactingMultiphaseParcelTypes(coalParcel);
// defineTemplateTypeNameAndDebug(Cloud<coalParcel>, 0);
}
...
...
src/lagrangian/coalCombustion/coalParcel/makeCoalParcelForces.C
deleted
100644 → 0
View file @
e8ea1f03
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2011 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 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
"coalParcel.H"
// Using thermodynamic variant
#include
"makeThermoParcelForces.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace
Foam
{
// Kinematic sub-models
makeThermoParcelForces
(
coalParcel
);
};
// ************************************************************************* //
src/lagrangian/coalCombustion/include/makeCoalParcelSurfaceReactionModels.H
View file @
bf172bbf
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2008-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2008-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -28,6 +28,10 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include
"Cloud.H"
#include
"KinematicCloud.H"
#include
"ThermoCloud.H"
#include
"ReactingCloud.H"
#include
"ReactingMultiphaseCloud.H"
#include
"NoSurfaceReaction.H"
...
...
@@ -39,31 +43,43 @@ License
#define makeCoalParcelSurfaceReactionModels(ParcelType) \
\
makeSurfaceReactionModel(ReactingMultiphaseCloud<ParcelType>); \
typedef ReactingMultiphaseCloud \
< \
ReactingCloud \
< \
ThermoCloud \
< \
KinematicCloud \
< \
Cloud \
< \
ParcelType \
> \
> \
> \
> \
> RMPRTKC##ParcelType; \
\
makeSurfaceReactionModel(RMPRTKC##ParcelType); \
makeSurfaceReactionModelType \
( \
NoSurfaceReaction, \
ReactingMultiphaseCloud, \
ParcelType \
RMPRTKC##ParcelType \
); \
makeSurfaceReactionModelType \
( \
COxidationDiffusionLimitedRate, \
ReactingMultiphaseCloud, \
ParcelType \
RMPRTKC##ParcelType \
); \
makeSurfaceReactionModelType \
( \
COxidationKineticDiffusionLimitedRate, \
ReactingMultiphaseCloud, \
ParcelType \
RMPRTKC##ParcelType \
); \
makeSurfaceReactionModelType \
( \
COxidationMurphyShaddix, \
ReactingMultiphaseCloud, \
ParcelType \
RMPRTKC##ParcelType \
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment