Skip to content
GitLab
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-plus
Commits
218875bf
Commit
218875bf
authored
Feb 20, 2015
by
Henry
Browse files
DSMC: Rationalization and addition of mapping support
parent
5cd0083d
Changes
51
Hide whitespace changes
Inline
Side-by-side
applications/solvers/discreteMethods/dsmc/dsmcFoam/Make/options
View file @
218875bf
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
-I$(LIB_SRC)/lagrangian/
dsmc
/lnInclude \
-I$(LIB_SRC)/lagrangian/
DSMC
/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \
-lmeshTools \
-lfiniteVolume \
-llagrangian \
-l
dsmc
-l
DSMC
applications/utilities/miscellaneous/foamDebugSwitches/Make/options
View file @
218875bf
...
...
@@ -12,7 +12,7 @@ EXE_LIBS = \
-ldecompositionMethods \
-ldistributed \
-ldistributionModels \
-l
dsmc
\
-l
DSMC
\
-ldynamicFvMesh \
-ldynamicMesh \
-ledgeMesh \
...
...
applications/utilities/postProcessing/miscellaneous/dsmcFieldsCalc/Make/options
View file @
218875bf
...
...
@@ -3,7 +3,7 @@ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
-I$(LIB_SRC)/postProcessing/functionObjects/utilities/lnInclude \
-I$(LIB_SRC)/lagrangian/
dsmc
/lnInclude \
-I$(LIB_SRC)/lagrangian/
DSMC
/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \
...
...
@@ -12,5 +12,4 @@ EXE_LIBS = \
-lfiniteVolume \
-lutilityFunctionObjects \
-llagrangian \
-ldsmc
-lDSMC
applications/utilities/preProcessing/dsmcInitialise/Make/options
View file @
218875bf
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
-I$(LIB_SRC)/lagrangian/
dsmc
/lnInclude \
-I$(LIB_SRC)/lagrangian/
DSMC
/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \
-lmeshTools \
-lfiniteVolume \
-llagrangian \
-l
dsmc
-l
DSMC
src/lagrangian/Allwmake
View file @
218875bf
...
...
@@ -12,7 +12,7 @@ wmake $targetType solidParticle
wmake
$targetType
intermediate
wmake
$targetType
turbulence
wmake
$targetType
spray
wmake
$targetType
dsmc
wmake
$targetType
DSMC
wmake
$targetType
coalCombustion
molecularDynamics/Allwmake
$targetType
$*
...
...
src/lagrangian/DSMC/Make/files
0 → 100644
View file @
218875bf
/* Parcels */
parcels/derived/dsmcParcel/dsmcParcel.C
/* Cloud base classes */
clouds/baseClasses/DSMCBaseCloud/DSMCBaseCloud.C
/* Sub-models */
parcels/derived/dsmcParcel/defineDSMCParcel.C
parcels/derived/dsmcParcel/makeDSMCParcelBinaryCollisionModels.C
parcels/derived/dsmcParcel/makeDSMCParcelWallInteractionModels.C
parcels/derived/dsmcParcel/makeDSMCParcelInflowBoundaryModels.C
LIB = $(FOAM_LIBBIN)/libDSMC
src/lagrangian/
dsmc
/Make/options
→
src/lagrangian/
DSMC
/Make/options
View file @
218875bf
File moved
src/lagrangian/
dsmc
/clouds/Templates/D
smc
Cloud/D
smc
Cloud.C
→
src/lagrangian/
DSMC
/clouds/Templates/D
SMC
Cloud/D
SMC
Cloud.C
View file @
218875bf
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2015
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -23,7 +23,7 @@ License
\*---------------------------------------------------------------------------*/
#include
"D
smc
Cloud.H"
#include
"D
SMC
Cloud.H"
#include
"BinaryCollisionModel.H"
#include
"WallInteractionModel.H"
#include
"InflowBoundaryModel.H"
...
...
@@ -33,11 +33,10 @@ License
using
namespace
Foam
::
constant
;
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template
<
class
ParcelType
>
void
Foam
::
D
smc
Cloud
<
ParcelType
>::
buildConstProps
()
void
Foam
::
D
SMC
Cloud
<
ParcelType
>::
buildConstProps
()
{
Info
<<
nl
<<
"Constructing constant properties for"
<<
endl
;
constProps_
.
setSize
(
typeIdList_
.
size
());
...
...
@@ -62,14 +61,14 @@ void Foam::DsmcCloud<ParcelType>::buildConstProps()
template
<
class
ParcelType
>
void
Foam
::
D
smc
Cloud
<
ParcelType
>::
buildCellOccupancy
()
void
Foam
::
D
SMC
Cloud
<
ParcelType
>::
buildCellOccupancy
()
{
forAll
(
cellOccupancy_
,
cO
)
{
cellOccupancy_
[
cO
].
clear
();
}
forAllIter
(
typename
D
smc
Cloud
<
ParcelType
>
,
*
this
,
iter
)
forAllIter
(
typename
D
SMC
Cloud
<
ParcelType
>
,
*
this
,
iter
)
{
cellOccupancy_
[
iter
().
cell
()].
append
(
&
iter
());
}
...
...
@@ -77,7 +76,7 @@ void Foam::DsmcCloud<ParcelType>::buildCellOccupancy()
template
<
class
ParcelType
>
void
Foam
::
D
smc
Cloud
<
ParcelType
>::
initialise
void
Foam
::
D
SMC
Cloud
<
ParcelType
>::
initialise
(
const
IOdictionary
&
dsmcInitialiseDict
)
...
...
@@ -134,7 +133,7 @@ void Foam::DsmcCloud<ParcelType>::initialise
if
(
typeId
==
-
1
)
{
FatalErrorIn
(
"Foam::D
smc
Cloud<ParcelType>::initialise"
)
FatalErrorIn
(
"Foam::D
SMC
Cloud<ParcelType>::initialise"
)
<<
"typeId "
<<
moleculeName
<<
"not defined."
<<
nl
<<
abort
(
FatalError
);
}
...
...
@@ -216,7 +215,7 @@ void Foam::DsmcCloud<ParcelType>::initialise
template
<
class
ParcelType
>
void
Foam
::
D
smc
Cloud
<
ParcelType
>::
collisions
()
void
Foam
::
D
SMC
Cloud
<
ParcelType
>::
collisions
()
{
if
(
!
binaryCollision
().
active
())
{
...
...
@@ -395,7 +394,7 @@ void Foam::DsmcCloud<ParcelType>::collisions()
template
<
class
ParcelType
>
void
Foam
::
D
smc
Cloud
<
ParcelType
>::
resetFields
()
void
Foam
::
D
SMC
Cloud
<
ParcelType
>::
resetFields
()
{
q_
=
dimensionedScalar
(
"zero"
,
dimensionSet
(
1
,
0
,
-
3
,
0
,
0
),
0
.
0
);
...
...
@@ -428,7 +427,7 @@ void Foam::DsmcCloud<ParcelType>::resetFields()
template
<
class
ParcelType
>
void
Foam
::
D
smc
Cloud
<
ParcelType
>::
calculateFields
()
void
Foam
::
D
SMC
Cloud
<
ParcelType
>::
calculateFields
()
{
scalarField
&
rhoN
=
rhoN_
.
internalField
();
...
...
@@ -444,7 +443,7 @@ void Foam::DsmcCloud<ParcelType>::calculateFields()
vectorField
&
momentum
=
momentum_
.
internalField
();
forAllConstIter
(
typename
D
smc
Cloud
<
ParcelType
>
,
*
this
,
iter
)
forAllConstIter
(
typename
D
SMC
Cloud
<
ParcelType
>
,
*
this
,
iter
)
{
const
ParcelType
&
p
=
iter
();
const
label
cellI
=
p
.
cell
();
...
...
@@ -489,7 +488,7 @@ void Foam::DsmcCloud<ParcelType>::calculateFields()
// * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * * //
template
<
class
ParcelType
>
void
Foam
::
D
smc
Cloud
<
ParcelType
>::
addNewParcel
void
Foam
::
D
SMC
Cloud
<
ParcelType
>::
addNewParcel
(
const
vector
&
position
,
const
vector
&
U
,
...
...
@@ -519,7 +518,7 @@ void Foam::DsmcCloud<ParcelType>::addNewParcel
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template
<
class
ParcelType
>
Foam
::
D
smc
Cloud
<
ParcelType
>::
D
smc
Cloud
Foam
::
D
SMC
Cloud
<
ParcelType
>::
D
SMC
Cloud
(
const
word
&
cloudName
,
const
fvMesh
&
mesh
,
...
...
@@ -527,7 +526,7 @@ Foam::DsmcCloud<ParcelType>::DsmcCloud
)
:
Cloud
<
ParcelType
>
(
mesh
,
cloudName
,
false
),
D
smc
BaseCloud
(),
D
SMC
BaseCloud
(),
cloudName_
(
cloudName
),
mesh_
(
mesh
),
particleProperties_
...
...
@@ -556,7 +555,17 @@ Foam::DsmcCloud<ParcelType>::DsmcCloud
),
mesh_
),
collisionSelectionRemainder_
(
mesh_
.
nCells
(),
0
),
collisionSelectionRemainder_
(
IOobject
(
this
->
name
()
+
":collisionSelectionRemainder"
,
mesh_
.
time
().
timeName
(),
mesh_
),
mesh_
,
dimensionedScalar
(
"collisionSelectionRemainder"
,
dimless
,
0
)
),
q_
(
IOobject
...
...
@@ -699,7 +708,7 @@ Foam::DsmcCloud<ParcelType>::DsmcCloud
),
binaryCollisionModel_
(
BinaryCollisionModel
<
D
smc
Cloud
<
ParcelType
>
>::
New
BinaryCollisionModel
<
D
SMC
Cloud
<
ParcelType
>
>::
New
(
particleProperties_
,
*
this
...
...
@@ -707,7 +716,7 @@ Foam::DsmcCloud<ParcelType>::DsmcCloud
),
wallInteractionModel_
(
WallInteractionModel
<
D
smc
Cloud
<
ParcelType
>
>::
New
WallInteractionModel
<
D
SMC
Cloud
<
ParcelType
>
>::
New
(
particleProperties_
,
*
this
...
...
@@ -715,7 +724,7 @@ Foam::DsmcCloud<ParcelType>::DsmcCloud
),
inflowBoundaryModel_
(
InflowBoundaryModel
<
D
smc
Cloud
<
ParcelType
>
>::
New
InflowBoundaryModel
<
D
SMC
Cloud
<
ParcelType
>
>::
New
(
particleProperties_
,
*
this
...
...
@@ -741,7 +750,7 @@ Foam::DsmcCloud<ParcelType>::DsmcCloud
template
<
class
ParcelType
>
Foam
::
D
smc
Cloud
<
ParcelType
>::
D
smc
Cloud
Foam
::
D
SMC
Cloud
<
ParcelType
>::
D
SMC
Cloud
(
const
word
&
cloudName
,
const
fvMesh
&
mesh
,
...
...
@@ -749,7 +758,7 @@ Foam::DsmcCloud<ParcelType>::DsmcCloud
)
:
Cloud
<
ParcelType
>
(
mesh
,
cloudName
,
false
),
D
smc
BaseCloud
(),
D
SMC
BaseCloud
(),
cloudName_
(
cloudName
),
mesh_
(
mesh
),
particleProperties_
...
...
@@ -780,7 +789,17 @@ Foam::DsmcCloud<ParcelType>::DsmcCloud
dimensionedScalar
(
"zero"
,
dimensionSet
(
0
,
3
,
-
1
,
0
,
0
),
0
.
0
),
zeroGradientFvPatchScalarField
::
typeName
),
collisionSelectionRemainder_
(),
collisionSelectionRemainder_
(
IOobject
(
this
->
name
()
+
":collisionSelectionRemainder"
,
mesh_
.
time
().
timeName
(),
mesh_
),
mesh_
,
dimensionedScalar
(
"collisionSelectionRemainder"
,
dimless
,
0
)
),
q_
(
IOobject
...
...
@@ -962,14 +981,14 @@ Foam::DsmcCloud<ParcelType>::DsmcCloud
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template
<
class
ParcelType
>
Foam
::
D
smc
Cloud
<
ParcelType
>::~
D
smc
Cloud
()
Foam
::
D
SMC
Cloud
<
ParcelType
>::~
D
SMC
Cloud
()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template
<
class
ParcelType
>
void
Foam
::
D
smc
Cloud
<
ParcelType
>::
evolve
()
void
Foam
::
D
SMC
Cloud
<
ParcelType
>::
evolve
()
{
typename
ParcelType
::
trackingData
td
(
*
this
);
...
...
@@ -999,12 +1018,12 @@ void Foam::DsmcCloud<ParcelType>::evolve()
template
<
class
ParcelType
>
void
Foam
::
D
smc
Cloud
<
ParcelType
>::
info
()
const
void
Foam
::
D
SMC
Cloud
<
ParcelType
>::
info
()
const
{
label
nD
smc
Particles
=
this
->
size
();
reduce
(
nD
smc
Particles
,
sumOp
<
label
>
());
label
nD
SMC
Particles
=
this
->
size
();
reduce
(
nD
SMC
Particles
,
sumOp
<
label
>
());
scalar
nMol
=
nD
smc
Particles
*
nParticle_
;
scalar
nMol
=
nD
SMC
Particles
*
nParticle_
;
vector
linearMomentum
=
linearMomentumOfSystem
();
reduce
(
linearMomentum
,
sumOp
<
vector
>
());
...
...
@@ -1017,10 +1036,10 @@ void Foam::DsmcCloud<ParcelType>::info() const
Info
<<
"Cloud name: "
<<
this
->
name
()
<<
nl
<<
" Number of dsmc particles = "
<<
nD
smc
Particles
<<
nD
SMC
Particles
<<
endl
;
if
(
nD
smc
Particles
)
if
(
nD
SMC
Particles
)
{
Info
<<
" Number of molecules = "
<<
nMol
<<
nl
...
...
@@ -1042,7 +1061,7 @@ void Foam::DsmcCloud<ParcelType>::info() const
template
<
class
ParcelType
>
Foam
::
vector
Foam
::
D
smc
Cloud
<
ParcelType
>::
equipartitionLinearVelocity
Foam
::
vector
Foam
::
D
SMC
Cloud
<
ParcelType
>::
equipartitionLinearVelocity
(
scalar
temperature
,
scalar
mass
...
...
@@ -1060,7 +1079,7 @@ Foam::vector Foam::DsmcCloud<ParcelType>::equipartitionLinearVelocity
template
<
class
ParcelType
>
Foam
::
scalar
Foam
::
D
smc
Cloud
<
ParcelType
>::
equipartitionInternalEnergy
Foam
::
scalar
Foam
::
D
SMC
Cloud
<
ParcelType
>::
equipartitionInternalEnergy
(
scalar
temperature
,
scalar
iDof
...
...
@@ -1101,7 +1120,7 @@ Foam::scalar Foam::DsmcCloud<ParcelType>::equipartitionInternalEnergy
template
<
class
ParcelType
>
void
Foam
::
D
smc
Cloud
<
ParcelType
>::
dumpParticlePositions
()
const
void
Foam
::
D
SMC
Cloud
<
ParcelType
>::
dumpParticlePositions
()
const
{
OFstream
pObj
(
...
...
@@ -1110,7 +1129,7 @@ void Foam::DsmcCloud<ParcelType>::dumpParticlePositions() const
+
this
->
db
().
time
().
timeName
()
+
".obj"
);
forAllConstIter
(
typename
D
smc
Cloud
<
ParcelType
>
,
*
this
,
iter
)
forAllConstIter
(
typename
D
SMC
Cloud
<
ParcelType
>
,
*
this
,
iter
)
{
const
ParcelType
&
p
=
iter
();
...
...
@@ -1124,4 +1143,20 @@ void Foam::DsmcCloud<ParcelType>::dumpParticlePositions() const
}
template
<
class
ParcelType
>
void
Foam
::
DSMCCloud
<
ParcelType
>::
autoMap
(
const
mapPolyMesh
&
mapper
)
{
typedef
typename
ParcelType
::
trackingData
tdType
;
tdType
td
(
*
this
);
Cloud
<
ParcelType
>::
template
autoMap
<
tdType
>
(
td
,
mapper
);
// Update the cell occupancy field
cellOccupancy_
.
setSize
(
mesh_
.
nCells
());
buildCellOccupancy
();
// Update the inflow BCs
this
->
inflowBoundary
().
autoMap
(
mapper
);
}
// ************************************************************************* //
src/lagrangian/
dsmc
/clouds/Templates/D
smc
Cloud/D
smc
Cloud.H
→
src/lagrangian/
DSMC
/clouds/Templates/D
SMC
Cloud/D
SMC
Cloud.H
View file @
218875bf
...
...
@@ -22,22 +22,22 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::D
smc
Cloud
Foam::D
SMC
Cloud
Description
Templated base class for dsmc cloud
SourceFiles
D
smc
CloudI.H
D
smc
Cloud.C
D
SMC
CloudI.H
D
SMC
Cloud.C
\*---------------------------------------------------------------------------*/
#ifndef D
smc
Cloud_H
#define D
smc
Cloud_H
#ifndef D
SMC
Cloud_H
#define D
SMC
Cloud_H
#include
"Cloud.H"
#include
"D
smc
BaseCloud.H"
#include
"D
SMC
BaseCloud.H"
#include
"IOdictionary.H"
#include
"autoPtr.H"
#include
"Random.H"
...
...
@@ -62,14 +62,14 @@ template<class CloudType>
class
InflowBoundaryModel
;
/*---------------------------------------------------------------------------*\
Class D
smc
Cloud Declaration
Class D
SMC
Cloud Declaration
\*---------------------------------------------------------------------------*/
template
<
class
ParcelType
>
class
D
smc
Cloud
class
D
SMC
Cloud
:
public
Cloud
<
ParcelType
>
,
public
D
smc
BaseCloud
public
D
SMC
BaseCloud
{
// Private data
...
...
@@ -101,7 +101,7 @@ class DsmcCloud
volScalarField
sigmaTcRMax_
;
//- A field holding the remainder from the previous collision selections
scalarField
collisionSelectionRemainder_
;
DimensionedField
<
scalar
,
volMesh
>
collisionSelectionRemainder_
;
//- Heat flux at surface field
volScalarField
q_
;
...
...
@@ -149,15 +149,15 @@ class DsmcCloud
// References to the cloud sub-models
//- Binary collision model
autoPtr
<
BinaryCollisionModel
<
D
smc
Cloud
<
ParcelType
>
>
>
autoPtr
<
BinaryCollisionModel
<
D
SMC
Cloud
<
ParcelType
>
>
>
binaryCollisionModel_
;
//- Wall interaction model
autoPtr
<
WallInteractionModel
<
D
smc
Cloud
<
ParcelType
>
>
>
autoPtr
<
WallInteractionModel
<
D
SMC
Cloud
<
ParcelType
>
>
>
wallInteractionModel_
;
//- Inflow boundary model
autoPtr
<
InflowBoundaryModel
<
D
smc
Cloud
<
ParcelType
>
>
>
autoPtr
<
InflowBoundaryModel
<
D
SMC
Cloud
<
ParcelType
>
>
>
inflowBoundaryModel_
;
...
...
@@ -182,10 +182,10 @@ class DsmcCloud
void
calculateFields
();
//- Disallow default bitwise copy construct
D
smc
Cloud
(
const
D
smc
Cloud
&
);
D
SMC
Cloud
(
const
D
SMC
Cloud
&
);
//- Disallow default bitwise assignment
void
operator
=
(
const
D
smc
Cloud
&
);
void
operator
=
(
const
D
SMC
Cloud
&
);
public:
...
...
@@ -194,7 +194,7 @@ public:
//- Construct given name and mesh, will read Parcels and fields from
// file
D
smc
Cloud
D
SMC
Cloud
(
const
word
&
cloudName
,
const
fvMesh
&
mesh
,
...
...
@@ -202,7 +202,7 @@ public:
);
//- Construct given name, mesh and initialisation dictionary.
D
smc
Cloud
D
SMC
Cloud
(
const
word
&
cloudName
,
const
fvMesh
&
mesh
,
...
...
@@ -211,7 +211,7 @@ public:
//- Destructor
virtual
~
D
smc
Cloud
();
virtual
~
D
SMC
Cloud
();
//- Type of parcel the cloud was instantiated for
...
...
@@ -398,27 +398,27 @@ public:
// Sub-models
//- Return reference to binary elastic collision model
inline
const
BinaryCollisionModel
<
D
smc
Cloud
<
ParcelType
>
>&
inline
const
BinaryCollisionModel
<
D
SMC
Cloud
<
ParcelType
>
>&
binaryCollision
()
const
;
//- Return non-const reference to binary elastic collision model
inline
BinaryCollisionModel
<
D
smc
Cloud
<
ParcelType
>
>&
inline
BinaryCollisionModel
<
D
SMC
Cloud
<
ParcelType
>
>&
binaryCollision
();
//- Return reference to wall interaction model
inline
const
WallInteractionModel
<
D
smc
Cloud
<
ParcelType
>
>&
inline
const
WallInteractionModel
<
D
SMC
Cloud
<
ParcelType
>
>&
wallInteraction
()
const
;
//- Return non-const reference to wall interaction model
inline
WallInteractionModel
<
D
smc
Cloud
<
ParcelType
>
>&
inline
WallInteractionModel
<
D
SMC
Cloud
<
ParcelType
>
>&
wallInteraction
();
//- Return reference to wall interaction model
inline
const
InflowBoundaryModel
<
D
smc
Cloud
<
ParcelType
>
>&
inline
const
InflowBoundaryModel
<
D
SMC
Cloud
<
ParcelType
>
>&
inflowBoundary
()
const
;
//- Return non-const reference to wall interaction model
inline
InflowBoundaryModel
<
D
smc
Cloud
<
ParcelType
>
>&
inline
InflowBoundaryModel
<
D
SMC
Cloud
<
ParcelType
>
>&
inflowBoundary
();
...
...
@@ -464,6 +464,12 @@ public:
//- Clear the Cloud
inline
void
clear
();
// Mapping
//- Remap the particles to the correct cells following mesh change
virtual
void
autoMap
(
const
mapPolyMesh
&
);
};
...
...
@@ -473,12 +479,12 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include
"D
smc
CloudI.H"
#include
"D
SMC
CloudI.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "D
smc
Cloud.C"
# include "D
SMC
Cloud.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
src/lagrangian/
dsmc
/clouds/Templates/D
smc
Cloud/D
smc
CloudI.H
→
src/lagrangian/
DSMC
/clouds/Templates/D
SMC
Cloud/D
SMC
CloudI.H
View file @
218875bf
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2015
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -31,14 +31,14 @@ using namespace Foam::constant::mathematical;
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template
<
class
ParcelType
>
inline
const
Foam
::
word
&
Foam
::
D
smc
Cloud
<
ParcelType
>::
cloudName
()
const
inline
const
Foam
::
word
&
Foam
::
D
SMC
Cloud
<
ParcelType
>::
cloudName
()
const
{
return
cloudName_
;
}
template
<
class
ParcelType
>
inline
const
Foam
::
fvMesh
&
Foam
::
D
smc
Cloud
<
ParcelType
>::
mesh
()
const
inline
const
Foam
::
fvMesh
&
Foam
::
D
SMC
Cloud
<
ParcelType
>::
mesh
()
const
{
return
mesh_
;
}
...
...
@@ -46,7 +46,7 @@ inline const Foam::fvMesh& Foam::DsmcCloud<ParcelType>::mesh() const
template
<
class
ParcelType
>
inline
const
Foam
::
IOdictionary
&
Foam
::
D
smc
Cloud
<
ParcelType
>::
particleProperties
()
const
Foam
::
D
SMC
Cloud
<
ParcelType
>::
particleProperties
()
const
{
return
particleProperties_
;
}
...
...
@@ -54,14 +54,14 @@ Foam::DsmcCloud<ParcelType>::particleProperties() const
template
<
class
ParcelType
>
inline
const
Foam
::
List
<
Foam
::
word
>&
Foam
::
D
smc
Cloud
<
ParcelType
>::
typeIdList
()
const
Foam
::
D
SMC
Cloud
<
ParcelType
>::
typeIdList
()
const
{
return
typeIdList_
;
}
template
<
class
ParcelType
>
inline
Foam
::
scalar
Foam
::
D
smc
Cloud
<
ParcelType
>::
nParticle
()
const
inline
Foam
::
scalar
Foam
::
D
SMC
Cloud
<
ParcelType
>::
nParticle
()
const
{
return
nParticle_
;
}
...
...
@@ -69,14 +69,14 @@ inline Foam::scalar Foam::DsmcCloud<ParcelType>::nParticle() const
template
<
class
ParcelType
>
inline
const
Foam
::
List
<
Foam
::
DynamicList
<
ParcelType
*>
>&
Foam
::
D
smc
Cloud
<
ParcelType
>::
cellOccupancy
()
const
Foam
::
D