mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: injectors: positions are a global quantity.
This commit is contained in:
@ -262,11 +262,32 @@ public:
|
||||
//- Inherit read from regIOobject
|
||||
using regIOobject::read;
|
||||
|
||||
//- Is object global
|
||||
virtual bool global() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//- Return complete path + object name if the file exists
|
||||
// either in the case/processor or case otherwise null
|
||||
virtual fileName filePath() const
|
||||
{
|
||||
return globalFilePath();
|
||||
}
|
||||
|
||||
//- Read porosity dictionary
|
||||
virtual bool read(const dictionary& dict);
|
||||
};
|
||||
|
||||
|
||||
//- Template function for obtaining global status
|
||||
template<>
|
||||
inline bool typeGlobal<porosityModel>()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -50,6 +50,7 @@ SourceFiles
|
||||
#include "InjectionModel.H"
|
||||
#include "distributionModel.H"
|
||||
#include "volFieldsFwd.H"
|
||||
#include "globalIOFields.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -85,7 +86,7 @@ class FieldActivatedInjection
|
||||
const word positionsFile_;
|
||||
|
||||
//- Field of injector (x,y,z) positions
|
||||
vectorIOField positions_;
|
||||
vectorGlobalIOField positions_;
|
||||
|
||||
//- List of cell labels corresponding to injector positions
|
||||
labelList injectorCells_;
|
||||
|
||||
@ -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-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -29,7 +29,11 @@ License
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
defineTemplateTypeNameAndDebug(IOList<kinematicParcelInjectionData>, 0);
|
||||
defineTemplateTypeNameAndDebug
|
||||
(
|
||||
GlobalIOList<kinematicParcelInjectionData>,
|
||||
0
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -34,14 +34,14 @@ SourceFiles
|
||||
#ifndef kinematicParcelInjectionDataIOList_H
|
||||
#define kinematicParcelInjectionDataIOList_H
|
||||
|
||||
#include "IOList.H"
|
||||
#include "GlobalIOList.H"
|
||||
#include "kinematicParcelInjectionData.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
typedef IOList<kinematicParcelInjectionData>
|
||||
typedef GlobalIOList<kinematicParcelInjectionData>
|
||||
kinematicParcelInjectionDataIOList;
|
||||
}
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -47,6 +47,7 @@ SourceFiles
|
||||
#include "InjectionModel.H"
|
||||
#include "distributionModel.H"
|
||||
#include "Switch.H"
|
||||
#include "globalIOFields.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -68,7 +69,7 @@ class ManualInjection
|
||||
const word positionsFile_;
|
||||
|
||||
//- Field of parcel positions
|
||||
vectorIOField positions_;
|
||||
vectorGlobalIOField positions_;
|
||||
|
||||
//- Field of parcel diameters
|
||||
scalarList diameters_;
|
||||
|
||||
@ -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-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -29,7 +29,11 @@ License
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
defineTemplateTypeNameAndDebug(IOList<reactingParcelInjectionData>, 0);
|
||||
defineTemplateTypeNameAndDebug
|
||||
(
|
||||
GlobalIOList<reactingParcelInjectionData>,
|
||||
0
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -34,14 +34,14 @@ SourceFiles
|
||||
#ifndef reactingParcelInjectionDataIOList_H
|
||||
#define reactingParcelInjectionDataIOList_H
|
||||
|
||||
#include "IOList.H"
|
||||
#include "GlobalIOList.H"
|
||||
#include "reactingParcelInjectionData.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
typedef IOList<reactingParcelInjectionData>
|
||||
typedef GlobalIOList<reactingParcelInjectionData>
|
||||
reactingParcelInjectionDataIOList;
|
||||
}
|
||||
|
||||
|
||||
@ -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-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -31,7 +31,7 @@ namespace Foam
|
||||
{
|
||||
defineTemplateTypeNameAndDebug
|
||||
(
|
||||
IOList<reactingMultiphaseParcelInjectionData>,
|
||||
GlobalIOList<reactingMultiphaseParcelInjectionData>,
|
||||
0
|
||||
);
|
||||
}
|
||||
|
||||
@ -34,14 +34,14 @@ SourceFiles
|
||||
#ifndef reactingMultiphaseParcelInjectionDataIOList_H
|
||||
#define reactingMultiphaseParcelInjectionDataIOList_H
|
||||
|
||||
#include "IOList.H"
|
||||
#include "GlobalIOList.H"
|
||||
#include "reactingMultiphaseParcelInjectionData.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
typedef IOList<reactingMultiphaseParcelInjectionData>
|
||||
typedef GlobalIOList<reactingMultiphaseParcelInjectionData>
|
||||
reactingMultiphaseParcelInjectionDataIOList;
|
||||
}
|
||||
|
||||
|
||||
@ -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-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -29,7 +29,7 @@ License
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
defineTemplateTypeNameAndDebug(IOList<thermoParcelInjectionData>, 0);
|
||||
defineTemplateTypeNameAndDebug(GlobalIOList<thermoParcelInjectionData>, 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -34,14 +34,14 @@ SourceFiles
|
||||
#ifndef thermoParcelInjectionDataIOList_H
|
||||
#define thermoParcelInjectionDataIOList_H
|
||||
|
||||
#include "IOList.H"
|
||||
#include "GlobalIOList.H"
|
||||
#include "thermoParcelInjectionData.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
typedef IOList<thermoParcelInjectionData>
|
||||
typedef GlobalIOList<thermoParcelInjectionData>
|
||||
thermoParcelInjectionDataIOList;
|
||||
}
|
||||
|
||||
|
||||
@ -159,6 +159,19 @@ public:
|
||||
|
||||
// Member Functions
|
||||
|
||||
//- Is object global
|
||||
virtual bool global() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//- Return complete path + object name if the file exists
|
||||
// either in the case/processor or case otherwise null
|
||||
virtual fileName filePath() const
|
||||
{
|
||||
return globalFilePath();
|
||||
}
|
||||
|
||||
//- Return const reference to boundBox
|
||||
const boundBox& bounds() const
|
||||
{
|
||||
@ -371,6 +384,14 @@ public:
|
||||
};
|
||||
|
||||
|
||||
//- Template function for obtaining global status
|
||||
template<>
|
||||
inline bool typeGlobal<searchableSurface>()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
@ -49,6 +49,7 @@ SourceFiles
|
||||
#define distributedTriSurfaceMesh_H
|
||||
|
||||
#include "triSurfaceMesh.H"
|
||||
#include "localIOdictionary.H"
|
||||
#include "IOdictionary.H"
|
||||
#include "Pair.H"
|
||||
#include "globalIndex.H"
|
||||
@ -101,7 +102,7 @@ private:
|
||||
autoPtr<decompositionMethod> decomposer_;
|
||||
|
||||
//- Bounding box settings
|
||||
IOdictionary dict_;
|
||||
localIOdictionary dict_;
|
||||
|
||||
//- Bounding boxes of all processors
|
||||
List<List<treeBoundBox> > procBb_;
|
||||
|
||||
Reference in New Issue
Block a user