refactoring cloudType -> cloudName

This commit is contained in:
andy
2009-05-22 14:50:17 +01:00
parent 7c672a52a4
commit e009a15c83
26 changed files with 56 additions and 56 deletions

View File

@ -38,7 +38,7 @@ namespace Foam
Foam::coalCloud::coalCloud Foam::coalCloud::coalCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,
@ -48,7 +48,7 @@ Foam::coalCloud::coalCloud
: :
ReactingMultiphaseCloud<coalParcel> ReactingMultiphaseCloud<coalParcel>
( (
cloudType, cloudName,
rho, rho,
U, U,
g, g,

View File

@ -71,7 +71,7 @@ public:
//- Construct given carrier gas fields //- Construct given carrier gas fields
coalCloud coalCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,

View File

@ -527,20 +527,20 @@ void Foam::DsmcCloud<ParcelType>::addNewParcel
template<class ParcelType> template<class ParcelType>
Foam::DsmcCloud<ParcelType>::DsmcCloud Foam::DsmcCloud<ParcelType>::DsmcCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& T, const volScalarField& T,
const volVectorField& U const volVectorField& U
) )
: :
Cloud<ParcelType>(T.mesh(), cloudType, false), Cloud<ParcelType>(T.mesh(), cloudName, false),
DsmcBaseCloud(), DsmcBaseCloud(),
cloudType_(cloudType), cloudName_(cloudName),
mesh_(T.mesh()), mesh_(T.mesh()),
particleProperties_ particleProperties_
( (
IOobject IOobject
( (
cloudType + "Properties", cloudName + "Properties",
mesh_.time().constant(), mesh_.time().constant(),
mesh_, mesh_,
IOobject::MUST_READ, IOobject::MUST_READ,
@ -639,19 +639,19 @@ Foam::DsmcCloud<ParcelType>::DsmcCloud
template<class ParcelType> template<class ParcelType>
Foam::DsmcCloud<ParcelType>::DsmcCloud Foam::DsmcCloud<ParcelType>::DsmcCloud
( (
const word& cloudType, const word& cloudName,
const fvMesh& mesh const fvMesh& mesh
) )
: :
Cloud<ParcelType>(mesh, cloudType, false), Cloud<ParcelType>(mesh, cloudName, false),
DsmcBaseCloud(), DsmcBaseCloud(),
cloudType_(cloudType), cloudName_(cloudName),
mesh_(mesh), mesh_(mesh),
particleProperties_ particleProperties_
( (
IOobject IOobject
( (
cloudType + "Properties", cloudName + "Properties",
mesh_.time().constant(), mesh_.time().constant(),
mesh_, mesh_,
IOobject::MUST_READ, IOobject::MUST_READ,

View File

@ -76,7 +76,7 @@ class DsmcCloud
//- Cloud type - used to set the name of the parcel properties //- Cloud type - used to set the name of the parcel properties
// dictionary by appending "Properties" // dictionary by appending "Properties"
const word cloudType_; const word cloudName_;
//- References to the mesh and time databases //- References to the mesh and time databases
const fvMesh& mesh_; const fvMesh& mesh_;
@ -181,7 +181,7 @@ public:
//- Construct given name and mesh, will read Parcels from file //- Construct given name and mesh, will read Parcels from file
DsmcCloud DsmcCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& T, const volScalarField& T,
const volVectorField& U const volVectorField& U
); );
@ -189,7 +189,7 @@ public:
//- Construct given name and mesh. Used to initialise. //- Construct given name and mesh. Used to initialise.
DsmcCloud DsmcCloud
( (
const word& cloudType, const word& cloudName,
const fvMesh& mesh const fvMesh& mesh
); );
@ -205,7 +205,7 @@ public:
// References to the mesh and databases // References to the mesh and databases
//- Return the cloud type //- Return the cloud type
inline const word& cloudType() const; inline const word& cloudName() const;
//- Return refernce to the mesh //- Return refernce to the mesh
inline const fvMesh& mesh() const; inline const fvMesh& mesh() const;

View File

@ -27,9 +27,9 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class ParcelType> template<class ParcelType>
inline const Foam::word& Foam::DsmcCloud<ParcelType>::cloudType() const inline const Foam::word& Foam::DsmcCloud<ParcelType>::cloudName() const
{ {
return cloudType_; return cloudName_;
} }

View File

@ -38,12 +38,12 @@ namespace Foam
Foam::dsmcCloud::dsmcCloud Foam::dsmcCloud::dsmcCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& T, const volScalarField& T,
const volVectorField& U const volVectorField& U
) )
: :
DsmcCloud<dsmcParcel>(cloudType, T, U) DsmcCloud<dsmcParcel>(cloudName, T, U)
{ {
dsmcParcel::readFields(*this); dsmcParcel::readFields(*this);
} }
@ -51,11 +51,11 @@ Foam::dsmcCloud::dsmcCloud
Foam::dsmcCloud::dsmcCloud Foam::dsmcCloud::dsmcCloud
( (
const word& cloudType, const word& cloudName,
const fvMesh& mesh const fvMesh& mesh
) )
: :
DsmcCloud<dsmcParcel>(cloudType, mesh) DsmcCloud<dsmcParcel>(cloudName, mesh)
{} {}

View File

@ -72,7 +72,7 @@ public:
//- Construct from components //- Construct from components
dsmcCloud dsmcCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& T, const volScalarField& T,
const volVectorField& U const volVectorField& U
); );
@ -80,7 +80,7 @@ public:
//- Construct from name and mesh, used to initialise. //- Construct from name and mesh, used to initialise.
dsmcCloud dsmcCloud
( (
const word& cloudType, const word& cloudName,
const fvMesh& mesh const fvMesh& mesh
); );

View File

@ -72,22 +72,22 @@ void Foam::KinematicCloud<ParcelType>::addNewParcel
template<class ParcelType> template<class ParcelType>
Foam::KinematicCloud<ParcelType>::KinematicCloud Foam::KinematicCloud<ParcelType>::KinematicCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const volScalarField& mu, const volScalarField& mu,
const dimensionedVector& g const dimensionedVector& g
) )
: :
Cloud<ParcelType>(rho.mesh(), cloudType, false), Cloud<ParcelType>(rho.mesh(), cloudName, false),
kinematicCloud(), kinematicCloud(),
cloudType_(cloudType), cloudName_(cloudName),
mesh_(rho.mesh()), mesh_(rho.mesh()),
particleProperties_ particleProperties_
( (
IOobject IOobject
( (
cloudType + "Properties", cloudName + "Properties",
rho.mesh().time().constant(), rho.mesh().time().constant(),
rho.mesh(), rho.mesh(),
IOobject::MUST_READ, IOobject::MUST_READ,

View File

@ -91,7 +91,7 @@ class KinematicCloud
//- Cloud type - used to set the name of the parcel properties //- Cloud type - used to set the name of the parcel properties
// dictionary by appending "Properties" // dictionary by appending "Properties"
const word cloudType_; const word cloudName_;
//- References to the mesh and time databases //- References to the mesh and time databases
const fvMesh& mesh_; const fvMesh& mesh_;
@ -193,7 +193,7 @@ public:
//- Construct given carrier gas fields //- Construct given carrier gas fields
KinematicCloud KinematicCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const volScalarField& mu, const volScalarField& mu,
@ -216,7 +216,7 @@ public:
// References to the mesh and databases // References to the mesh and databases
//- Return the cloud type //- Return the cloud type
inline const word& cloudType() const; inline const word& cloudName() const;
//- Return the parcel type id //- Return the parcel type id
inline label parcelTypeId() const; inline label parcelTypeId() const;

View File

@ -29,9 +29,9 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class ParcelType> template<class ParcelType>
inline const Foam::word& Foam::KinematicCloud<ParcelType>::cloudType() const inline const Foam::word& Foam::KinematicCloud<ParcelType>::cloudName() const
{ {
return cloudType_; return cloudName_;
} }

View File

@ -67,7 +67,7 @@ void Foam::ReactingCloud<ParcelType>::addNewParcel
template<class ParcelType> template<class ParcelType>
Foam::ReactingCloud<ParcelType>::ReactingCloud Foam::ReactingCloud<ParcelType>::ReactingCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,
@ -75,7 +75,7 @@ Foam::ReactingCloud<ParcelType>::ReactingCloud
PtrList<specieReactingProperties>& carrierSpecies PtrList<specieReactingProperties>& carrierSpecies
) )
: :
ThermoCloud<ParcelType>(cloudType, rho, U, g, thermo), ThermoCloud<ParcelType>(cloudName, rho, U, g, thermo),
reactingCloud(), reactingCloud(),
constProps_(this->particleProperties()), constProps_(this->particleProperties()),
carrierThermo_(thermo), carrierThermo_(thermo),

View File

@ -122,7 +122,7 @@ public:
//- Construct given carrier gas fields //- Construct given carrier gas fields
ReactingCloud ReactingCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,

View File

@ -74,7 +74,7 @@ void Foam::ReactingMultiphaseCloud<ParcelType>::addNewParcel
template<class ParcelType> template<class ParcelType>
Foam::ReactingMultiphaseCloud<ParcelType>::ReactingMultiphaseCloud Foam::ReactingMultiphaseCloud<ParcelType>::ReactingMultiphaseCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,
@ -82,7 +82,7 @@ Foam::ReactingMultiphaseCloud<ParcelType>::ReactingMultiphaseCloud
PtrList<specieReactingProperties>& carrierSpecies PtrList<specieReactingProperties>& carrierSpecies
) )
: :
ReactingCloud<ParcelType>(cloudType, rho, U, g, thermo, carrierSpecies), ReactingCloud<ParcelType>(cloudName, rho, U, g, thermo, carrierSpecies),
reactingMultiphaseCloud(), reactingMultiphaseCloud(),
constProps_(this->particleProperties()), constProps_(this->particleProperties()),
devolatilisationModel_ devolatilisationModel_

View File

@ -116,7 +116,7 @@ public:
//- Construct given carrier gas fields //- Construct given carrier gas fields
ReactingMultiphaseCloud ReactingMultiphaseCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,

View File

@ -67,7 +67,7 @@ void Foam::ThermoCloud<ParcelType>::addNewParcel
template<class ParcelType> template<class ParcelType>
Foam::ThermoCloud<ParcelType>::ThermoCloud Foam::ThermoCloud<ParcelType>::ThermoCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,
@ -76,7 +76,7 @@ Foam::ThermoCloud<ParcelType>::ThermoCloud
: :
KinematicCloud<ParcelType> KinematicCloud<ParcelType>
( (
cloudType, cloudName,
rho, rho,
U, U,
thermo.mu(), thermo.mu(),

View File

@ -125,7 +125,7 @@ public:
//- Construct given carrier gas fields //- Construct given carrier gas fields
ThermoCloud ThermoCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,

View File

@ -38,14 +38,14 @@ namespace Foam
Foam::basicKinematicCloud::basicKinematicCloud Foam::basicKinematicCloud::basicKinematicCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const volScalarField& mu, const volScalarField& mu,
const dimensionedVector& g const dimensionedVector& g
) )
: :
KinematicCloud<basicKinematicParcel>(cloudType, rho, U, mu, g) KinematicCloud<basicKinematicParcel>(cloudName, rho, U, mu, g)
{ {
basicKinematicParcel::readFields(*this); basicKinematicParcel::readFields(*this);
} }

View File

@ -72,7 +72,7 @@ public:
//- Construct from components //- Construct from components
basicKinematicCloud basicKinematicCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const volScalarField& mu, const volScalarField& mu,

View File

@ -38,7 +38,7 @@ namespace Foam
Foam::basicReactingCloud::basicReactingCloud Foam::basicReactingCloud::basicReactingCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,
@ -48,7 +48,7 @@ Foam::basicReactingCloud::basicReactingCloud
: :
ReactingCloud<basicReactingParcel> ReactingCloud<basicReactingParcel>
( (
cloudType, cloudName,
rho, rho,
U, U,
g, g,

View File

@ -72,7 +72,7 @@ public:
//- Construct given carrier gas fields //- Construct given carrier gas fields
basicReactingCloud basicReactingCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,

View File

@ -38,7 +38,7 @@ namespace Foam
Foam::basicReactingMultiphaseCloud::basicReactingMultiphaseCloud Foam::basicReactingMultiphaseCloud::basicReactingMultiphaseCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,
@ -48,7 +48,7 @@ Foam::basicReactingMultiphaseCloud::basicReactingMultiphaseCloud
: :
ReactingMultiphaseCloud<basicReactingMultiphaseParcel> ReactingMultiphaseCloud<basicReactingMultiphaseParcel>
( (
cloudType, cloudName,
rho, rho,
U, U,
g, g,

View File

@ -72,7 +72,7 @@ public:
//- Construct given carrier gas fields //- Construct given carrier gas fields
basicReactingMultiphaseCloud basicReactingMultiphaseCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,

View File

@ -38,14 +38,14 @@ namespace Foam
Foam::basicThermoCloud::basicThermoCloud Foam::basicThermoCloud::basicThermoCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,
basicThermo& thermo basicThermo& thermo
) )
: :
ThermoCloud<basicThermoParcel>(cloudType, rho, U, g, thermo) ThermoCloud<basicThermoParcel>(cloudName, rho, U, g, thermo)
{ {
basicThermoParcel::readFields(*this); basicThermoParcel::readFields(*this);
} }

View File

@ -74,7 +74,7 @@ public:
//- Construct given carrier gas fields //- Construct given carrier gas fields
basicThermoCloud basicThermoCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,

View File

@ -38,7 +38,7 @@ namespace Foam
Foam::trackedReactingCloud::trackedReactingCloud Foam::trackedReactingCloud::trackedReactingCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,
@ -48,7 +48,7 @@ Foam::trackedReactingCloud::trackedReactingCloud
: :
ReactingCloud<trackedReactingParcel> ReactingCloud<trackedReactingParcel>
( (
cloudType, cloudName,
rho, rho,
U, U,
g, g,

View File

@ -72,7 +72,7 @@ public:
//- Construct given carrier gas fields //- Construct given carrier gas fields
trackedReactingCloud trackedReactingCloud
( (
const word& cloudType, const word& cloudName,
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const dimensionedVector& g, const dimensionedVector& g,