mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
move reconstructPar 'guts' to src/parallel/reconstruct
- in preparation for adding an optional '-reconstruct' to a few utilities
re-use as -lreconstruct library
- move related stuff there too
src/decompositionMethods/decompositionMethods
-> src/parallel/decompositionMethods
- added missing namespace qualifiers
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
/* -g -DFULLDEBUG -O0 */ \
|
/* -g -DFULLDEBUG -O0 */ \
|
||||||
-I$(LIB_SRC)/decompositionMethods/decompositionMethods/lnInclude \
|
-I$(LIB_SRC)/parallel/decompositionMethods/lnInclude \
|
||||||
-I$(LIB_SRC)/mesh/autoMesh/lnInclude \
|
-I$(LIB_SRC)/mesh/autoMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
-I$(LIB_SRC)/triSurface/lnInclude \
|
-I$(LIB_SRC)/triSurface/lnInclude \
|
||||||
|
|||||||
@ -2,7 +2,7 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/decompositionMethods/decompositionMethods/lnInclude
|
-I$(LIB_SRC)/parallel/decompositionMethods/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lmeshTools \
|
-lmeshTools \
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
decomposeMesh.C
|
|
||||||
decomposePar.C
|
decomposePar.C
|
||||||
domainDecomposition.C
|
domainDecomposition.C
|
||||||
distributeCells.C
|
domainDecompositionMesh.C
|
||||||
|
domainDecompositionDistribute.C
|
||||||
fvFieldDecomposer.C
|
fvFieldDecomposer.C
|
||||||
pointFieldDecomposer.C
|
pointFieldDecomposer.C
|
||||||
lagrangianFieldDecomposer.C
|
lagrangianFieldDecomposer.C
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/decompositionMethods/decompositionMethods/lnInclude \
|
-I$(LIB_SRC)/parallel/decompositionMethods/lnInclude \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude
|
-I$(LIB_SRC)/meshTools/lnInclude
|
||||||
|
|||||||
@ -106,7 +106,6 @@ int main(int argc, char *argv[])
|
|||||||
Info<< "Decomposing mesh " << regionName << nl << endl;
|
Info<< "Decomposing mesh " << regionName << nl << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool writeCellDist = args.optionFound("cellDist");
|
bool writeCellDist = args.optionFound("cellDist");
|
||||||
bool copyUniform = args.optionFound("copyUniform");
|
bool copyUniform = args.optionFound("copyUniform");
|
||||||
bool decomposeFieldsOnly = args.optionFound("fields");
|
bool decomposeFieldsOnly = args.optionFound("fields");
|
||||||
|
|||||||
@ -38,7 +38,7 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
void domainDecomposition::mark
|
void Foam::domainDecomposition::mark
|
||||||
(
|
(
|
||||||
const labelList& zoneElems,
|
const labelList& zoneElems,
|
||||||
const label zoneI,
|
const label zoneI,
|
||||||
@ -66,7 +66,7 @@ void domainDecomposition::mark
|
|||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// from components
|
// from components
|
||||||
domainDecomposition::domainDecomposition(const IOobject& io)
|
Foam::domainDecomposition::domainDecomposition(const IOobject& io)
|
||||||
:
|
:
|
||||||
fvMesh(io),
|
fvMesh(io),
|
||||||
decompositionDict_
|
decompositionDict_
|
||||||
@ -105,13 +105,13 @@ domainDecomposition::domainDecomposition(const IOobject& io)
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
domainDecomposition::~domainDecomposition()
|
Foam::domainDecomposition::~domainDecomposition()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
bool domainDecomposition::writeDecomposition()
|
bool Foam::domainDecomposition::writeDecomposition()
|
||||||
{
|
{
|
||||||
Info<< "\nConstructing processor meshes" << endl;
|
Info<< "\nConstructing processor meshes" << endl;
|
||||||
|
|
||||||
|
|||||||
@ -26,7 +26,7 @@ Class
|
|||||||
Foam::domainDecomposition
|
Foam::domainDecomposition
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Automatic domain decomposition class for FOAM meshes
|
Automatic domain decomposition class for finite-volume meshes
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
domainDecomposition.C
|
domainDecomposition.C
|
||||||
@ -42,10 +42,8 @@ SourceFiles
|
|||||||
#include "PtrList.H"
|
#include "PtrList.H"
|
||||||
#include "point.H"
|
#include "point.H"
|
||||||
|
|
||||||
#ifndef namespaceFoam
|
namespace Foam
|
||||||
#define namespaceFoam
|
{
|
||||||
using namespace Foam;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class domainDecomposition Declaration
|
Class domainDecomposition Declaration
|
||||||
@ -165,6 +163,11 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -33,7 +33,7 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void domainDecomposition::distributeCells()
|
void Foam::domainDecomposition::distributeCells()
|
||||||
{
|
{
|
||||||
Info<< "\nCalculating distribution of cells" << endl;
|
Info<< "\nCalculating distribution of cells" << endl;
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ Description
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
void domainDecomposition::decomposeMesh(const bool filterEmptyPatches)
|
void Foam::domainDecomposition::decomposeMesh(const bool filterEmptyPatches)
|
||||||
{
|
{
|
||||||
// Decide which cell goes to which processor
|
// Decide which cell goes to which processor
|
||||||
distributeCells();
|
distributeCells();
|
||||||
@ -775,3 +775,5 @@ void domainDecomposition::decomposeMesh(const bool filterEmptyPatches)
|
|||||||
sort(globallySharedPoints_);
|
sort(globallySharedPoints_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -26,14 +26,10 @@ License
|
|||||||
|
|
||||||
#include "fvFieldDecomposer.H"
|
#include "fvFieldDecomposer.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
fvFieldDecomposer::patchFieldDecomposer::patchFieldDecomposer
|
Foam::fvFieldDecomposer::patchFieldDecomposer::patchFieldDecomposer
|
||||||
(
|
(
|
||||||
const unallocLabelList& addressingSlice,
|
const unallocLabelList& addressingSlice,
|
||||||
const label addressingOffset
|
const label addressingOffset
|
||||||
@ -49,7 +45,7 @@ fvFieldDecomposer::patchFieldDecomposer::patchFieldDecomposer
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fvFieldDecomposer::processorVolPatchFieldDecomposer::
|
Foam::fvFieldDecomposer::processorVolPatchFieldDecomposer::
|
||||||
processorVolPatchFieldDecomposer
|
processorVolPatchFieldDecomposer
|
||||||
(
|
(
|
||||||
const fvMesh& mesh,
|
const fvMesh& mesh,
|
||||||
@ -97,7 +93,7 @@ processorVolPatchFieldDecomposer
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fvFieldDecomposer::processorSurfacePatchFieldDecomposer::
|
Foam::fvFieldDecomposer::processorSurfacePatchFieldDecomposer::
|
||||||
processorSurfacePatchFieldDecomposer
|
processorSurfacePatchFieldDecomposer
|
||||||
(
|
(
|
||||||
const unallocLabelList& addressingSlice
|
const unallocLabelList& addressingSlice
|
||||||
@ -117,7 +113,7 @@ processorSurfacePatchFieldDecomposer
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fvFieldDecomposer::fvFieldDecomposer
|
Foam::fvFieldDecomposer::fvFieldDecomposer
|
||||||
(
|
(
|
||||||
const fvMesh& completeMesh,
|
const fvMesh& completeMesh,
|
||||||
const fvMesh& procMesh,
|
const fvMesh& procMesh,
|
||||||
@ -187,7 +183,7 @@ fvFieldDecomposer::fvFieldDecomposer
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
fvFieldDecomposer::~fvFieldDecomposer()
|
Foam::fvFieldDecomposer::~fvFieldDecomposer()
|
||||||
{
|
{
|
||||||
forAll(patchFieldDecomposerPtrs_, patchi)
|
forAll(patchFieldDecomposerPtrs_, patchi)
|
||||||
{
|
{
|
||||||
@ -214,9 +210,4 @@ fvFieldDecomposer::~fvFieldDecomposer()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
} // End namespace Foam
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -28,16 +28,11 @@ License
|
|||||||
#include "processorFvPatchField.H"
|
#include "processorFvPatchField.H"
|
||||||
#include "processorFvsPatchField.H"
|
#include "processorFvsPatchField.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
tmp<GeometricField<Type, fvPatchField, volMesh> >
|
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >
|
||||||
fvFieldDecomposer::decomposeField
|
Foam::fvFieldDecomposer::decomposeField
|
||||||
(
|
(
|
||||||
const GeometricField<Type, fvPatchField, volMesh>& field
|
const GeometricField<Type, fvPatchField, volMesh>& field
|
||||||
) const
|
) const
|
||||||
@ -106,8 +101,8 @@ fvFieldDecomposer::decomposeField
|
|||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
tmp<GeometricField<Type, fvsPatchField, surfaceMesh> >
|
Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> >
|
||||||
fvFieldDecomposer::decomposeField
|
Foam::fvFieldDecomposer::decomposeField
|
||||||
(
|
(
|
||||||
const GeometricField<Type, fvsPatchField, surfaceMesh>& field
|
const GeometricField<Type, fvsPatchField, surfaceMesh>& field
|
||||||
) const
|
) const
|
||||||
@ -217,7 +212,7 @@ fvFieldDecomposer::decomposeField
|
|||||||
|
|
||||||
|
|
||||||
template<class GeoField>
|
template<class GeoField>
|
||||||
void fvFieldDecomposer::decomposeFields
|
void Foam::fvFieldDecomposer::decomposeFields
|
||||||
(
|
(
|
||||||
const PtrList<GeoField>& fields
|
const PtrList<GeoField>& fields
|
||||||
) const
|
) const
|
||||||
@ -229,8 +224,4 @@ void fvFieldDecomposer::decomposeFields
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
} // End namespace Foam
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -29,16 +29,10 @@ Description
|
|||||||
|
|
||||||
#include "lagrangianFieldDecomposer.H"
|
#include "lagrangianFieldDecomposer.H"
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// Construct from components
|
// Construct from components
|
||||||
lagrangianFieldDecomposer::lagrangianFieldDecomposer
|
Foam::lagrangianFieldDecomposer::lagrangianFieldDecomposer
|
||||||
(
|
(
|
||||||
const polyMesh& mesh,
|
const polyMesh& mesh,
|
||||||
const polyMesh& procMesh,
|
const polyMesh& procMesh,
|
||||||
@ -88,6 +82,4 @@ lagrangianFieldDecomposer::lagrangianFieldDecomposer
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace Foam
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -27,15 +27,10 @@ License
|
|||||||
#include "lagrangianFieldDecomposer.H"
|
#include "lagrangianFieldDecomposer.H"
|
||||||
#include "IOobjectList.H"
|
#include "IOobjectList.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
void lagrangianFieldDecomposer::readFields
|
void Foam::lagrangianFieldDecomposer::readFields
|
||||||
(
|
(
|
||||||
const label cloudI,
|
const label cloudI,
|
||||||
const IOobjectList& lagrangianObjects,
|
const IOobjectList& lagrangianObjects,
|
||||||
@ -70,7 +65,8 @@ void lagrangianFieldDecomposer::readFields
|
|||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
tmp<IOField<Type> > lagrangianFieldDecomposer::decomposeField
|
Foam::tmp<Foam::IOField<Type> >
|
||||||
|
Foam::lagrangianFieldDecomposer::decomposeField
|
||||||
(
|
(
|
||||||
const word& cloudName,
|
const word& cloudName,
|
||||||
const IOField<Type>& field
|
const IOField<Type>& field
|
||||||
@ -100,7 +96,7 @@ tmp<IOField<Type> > lagrangianFieldDecomposer::decomposeField
|
|||||||
|
|
||||||
|
|
||||||
template<class GeoField>
|
template<class GeoField>
|
||||||
void lagrangianFieldDecomposer::decomposeFields
|
void Foam::lagrangianFieldDecomposer::decomposeFields
|
||||||
(
|
(
|
||||||
const word& cloudName,
|
const word& cloudName,
|
||||||
const PtrList<GeoField>& fields
|
const PtrList<GeoField>& fields
|
||||||
@ -116,8 +112,4 @@ void lagrangianFieldDecomposer::decomposeFields
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
} // End namespace Foam
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -26,14 +26,9 @@ License
|
|||||||
|
|
||||||
#include "pointFieldDecomposer.H"
|
#include "pointFieldDecomposer.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
pointFieldDecomposer::patchFieldDecomposer::patchFieldDecomposer
|
Foam::pointFieldDecomposer::patchFieldDecomposer::patchFieldDecomposer
|
||||||
(
|
(
|
||||||
const pointPatch& completeMeshPatch,
|
const pointPatch& completeMeshPatch,
|
||||||
const pointPatch& procMeshPatch,
|
const pointPatch& procMeshPatch,
|
||||||
@ -79,7 +74,7 @@ pointFieldDecomposer::patchFieldDecomposer::patchFieldDecomposer
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pointFieldDecomposer::pointFieldDecomposer
|
Foam::pointFieldDecomposer::pointFieldDecomposer
|
||||||
(
|
(
|
||||||
const pointMesh& completeMesh,
|
const pointMesh& completeMesh,
|
||||||
const pointMesh& procMesh,
|
const pointMesh& procMesh,
|
||||||
@ -114,7 +109,7 @@ pointFieldDecomposer::pointFieldDecomposer
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
pointFieldDecomposer::~pointFieldDecomposer()
|
Foam::pointFieldDecomposer::~pointFieldDecomposer()
|
||||||
{
|
{
|
||||||
forAll(patchFieldDecomposerPtrs_, patchi)
|
forAll(patchFieldDecomposerPtrs_, patchi)
|
||||||
{
|
{
|
||||||
@ -128,6 +123,4 @@ pointFieldDecomposer::~pointFieldDecomposer()
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace Foam
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -28,16 +28,11 @@ License
|
|||||||
#include "processorPointPatchFields.H"
|
#include "processorPointPatchFields.H"
|
||||||
#include "globalPointPatchFields.H"
|
#include "globalPointPatchFields.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
tmp<GeometricField<Type, pointPatchField, pointMesh> >
|
Foam::tmp<Foam::GeometricField<Type, Foam::pointPatchField, Foam::pointMesh> >
|
||||||
pointFieldDecomposer::decomposeField
|
Foam::pointFieldDecomposer::decomposeField
|
||||||
(
|
(
|
||||||
const GeometricField<Type, pointPatchField, pointMesh>& field
|
const GeometricField<Type, pointPatchField, pointMesh>& field
|
||||||
) const
|
) const
|
||||||
@ -117,7 +112,7 @@ pointFieldDecomposer::decomposeField
|
|||||||
|
|
||||||
|
|
||||||
template<class GeoField>
|
template<class GeoField>
|
||||||
void pointFieldDecomposer::decomposeFields
|
void Foam::pointFieldDecomposer::decomposeFields
|
||||||
(
|
(
|
||||||
const PtrList<GeoField>& fields
|
const PtrList<GeoField>& fields
|
||||||
) const
|
) const
|
||||||
@ -131,6 +126,4 @@ void pointFieldDecomposer::decomposeFields
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace Foam
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -1,7 +1,3 @@
|
|||||||
processorMeshes.C
|
|
||||||
fvFieldReconstructor.C
|
|
||||||
pointFieldReconstructor.C
|
|
||||||
reconstructLagrangianPositions.C
|
|
||||||
reconstructPar.C
|
reconstructPar.C
|
||||||
|
|
||||||
EXE = $(FOAM_APPBIN)/reconstructPar
|
EXE = $(FOAM_APPBIN)/reconstructPar
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude
|
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
||||||
|
-I$(LIB_SRC)/parallel/reconstruct/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
-lgenericPatchFields \
|
-lgenericPatchFields \
|
||||||
-llagrangian \
|
-llagrangian \
|
||||||
-lmeshTools
|
-lmeshTools \
|
||||||
|
-lreconstruct
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/decompositionMethods/decompositionMethods/lnInclude \
|
-I$(LIB_SRC)/parallel/decompositionMethods/lnInclude \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
-I$(LIB_SRC)/dynamicMesh/lnInclude
|
-I$(LIB_SRC)/dynamicMesh/lnInclude
|
||||||
|
|||||||
@ -33,11 +33,11 @@ Description
|
|||||||
Balances mesh and writes new mesh to new time directory.
|
Balances mesh and writes new mesh to new time directory.
|
||||||
|
|
||||||
Can also work like decomposePar:
|
Can also work like decomposePar:
|
||||||
|
@verbatim
|
||||||
mkdir processor0
|
mkdir processor0
|
||||||
cp -r constant processor0
|
cp -r constant processor0
|
||||||
mpirun -np ddd redistributeMeshPar -parallel
|
mpirun -np ddd redistributeMeshPar -parallel
|
||||||
|
@endverbatim
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "Field.H"
|
#include "Field.H"
|
||||||
|
|||||||
@ -1,6 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
|
||||||
if [ "$TEC_360_2009" ]
|
if [ "$TEC_360_2009" ]
|
||||||
then
|
then
|
||||||
wmake
|
wmake
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -6,3 +6,5 @@
|
|||||||
# then
|
# then
|
||||||
# wmake fieldview9Reader
|
# wmake fieldview9Reader
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
set -x
|
||||||
|
|
||||||
wmake libso tabulatedWallFunction
|
wmake libso tabulatedWallFunction
|
||||||
wmake
|
wmake
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -27,7 +27,7 @@ wmake libso edgeMesh
|
|||||||
wmake libso surfMesh
|
wmake libso surfMesh
|
||||||
|
|
||||||
# Decomposition methods needed by meshTools
|
# Decomposition methods needed by meshTools
|
||||||
decompositionMethods/Allwmake
|
wmake libso parallel/decompositionMethods
|
||||||
|
|
||||||
wmake libso meshTools
|
wmake libso meshTools
|
||||||
wmake libso finiteVolume
|
wmake libso finiteVolume
|
||||||
@ -46,6 +46,7 @@ thermophysicalModels/Allwmake
|
|||||||
transportModels/Allwmake
|
transportModels/Allwmake
|
||||||
turbulenceModels/Allwmake
|
turbulenceModels/Allwmake
|
||||||
lagrangian/Allwmake
|
lagrangian/Allwmake
|
||||||
|
parallel/Allwmake
|
||||||
postProcessing/Allwmake
|
postProcessing/Allwmake
|
||||||
conversion/Allwmake
|
conversion/Allwmake
|
||||||
mesh/Allwmake
|
mesh/Allwmake
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/decompositionMethods/decompositionMethods/lnInclude \
|
-I$(LIB_SRC)/parallel/decompositionMethods/lnInclude \
|
||||||
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/triSurface/lnInclude \
|
-I$(LIB_SRC)/triSurface/lnInclude \
|
||||||
-I$(LIB_SRC)/decompositionMethods/decompositionMethods/lnInclude \
|
-I$(LIB_SRC)/parallel/decompositionMethods/lnInclude \
|
||||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude
|
-I$(LIB_SRC)/lagrangian/basic/lnInclude
|
||||||
|
|
||||||
LIB_LIBS = \
|
LIB_LIBS = \
|
||||||
|
|||||||
@ -3,6 +3,7 @@ cd ${0%/*} || exit 1 # run from this directory
|
|||||||
set -x
|
set -x
|
||||||
|
|
||||||
wmake libso decompositionMethods
|
wmake libso decompositionMethods
|
||||||
|
wmake libso reconstruct
|
||||||
|
|
||||||
if [ -d "$FOAM_MPI_LIBBIN" ]
|
if [ -d "$FOAM_MPI_LIBBIN" ]
|
||||||
then
|
then
|
||||||
6
src/parallel/reconstruct/Make/files
Normal file
6
src/parallel/reconstruct/Make/files
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
processorMeshes.C
|
||||||
|
fvFieldReconstructor.C
|
||||||
|
pointFieldReconstructor.C
|
||||||
|
reconstructLagrangianPositions.C
|
||||||
|
|
||||||
|
LIB = $(FOAM_LIBBIN)/libreconstruct
|
||||||
7
src/parallel/reconstruct/Make/options
Normal file
7
src/parallel/reconstruct/Make/options
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
EXE_INC = \
|
||||||
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
|
-I$(LIB_SRC)/lagrangian/basic/lnInclude
|
||||||
|
|
||||||
|
LIB_LIBS = \
|
||||||
|
-lfiniteVolume \
|
||||||
|
-llagrangian
|
||||||
@ -26,7 +26,7 @@ Class
|
|||||||
Foam::fvFieldReconstructor
|
Foam::fvFieldReconstructor
|
||||||
|
|
||||||
Description
|
Description
|
||||||
FV volume and surface field reconstructor.
|
Finite volume reconstructor for volume and surface fields.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
fvFieldReconstructor.C
|
fvFieldReconstructor.C
|
||||||
@ -73,10 +73,7 @@ class pointFieldReconstructor
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- Disallow default bitwise copy construct
|
||||||
pointFieldReconstructor
|
pointFieldReconstructor(const pointFieldReconstructor&);
|
||||||
(
|
|
||||||
const pointFieldReconstructor&
|
|
||||||
);
|
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const pointFieldReconstructor&);
|
void operator=(const pointFieldReconstructor&);
|
||||||
@ -127,8 +127,8 @@ Foam::processorMeshes::processorMeshes
|
|||||||
const word& meshName
|
const word& meshName
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
databases_(databases),
|
|
||||||
meshName_(meshName),
|
meshName_(meshName),
|
||||||
|
databases_(databases),
|
||||||
meshes_(databases.size()),
|
meshes_(databases.size()),
|
||||||
pointProcAddressing_(databases.size()),
|
pointProcAddressing_(databases.size()),
|
||||||
faceProcAddressing_(databases.size()),
|
faceProcAddressing_(databases.size()),
|
||||||
@ -165,9 +165,7 @@ Foam::fvMesh::readUpdateState Foam::processorMeshes::readUpdate()
|
|||||||
{
|
{
|
||||||
stat = procStat;
|
stat = procStat;
|
||||||
}
|
}
|
||||||
else
|
else if (stat != procStat)
|
||||||
{
|
|
||||||
if (stat != procStat)
|
|
||||||
{
|
{
|
||||||
FatalErrorIn("processorMeshes::readUpdate()")
|
FatalErrorIn("processorMeshes::readUpdate()")
|
||||||
<< "Processor " << procI
|
<< "Processor " << procI
|
||||||
@ -180,7 +178,6 @@ Foam::fvMesh::readUpdateState Foam::processorMeshes::readUpdate()
|
|||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
@ -55,11 +55,11 @@ class processorMeshes
|
|||||||
{
|
{
|
||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
|
const word meshName_;
|
||||||
|
|
||||||
//- Processor databases
|
//- Processor databases
|
||||||
PtrList<Time>& databases_;
|
PtrList<Time>& databases_;
|
||||||
|
|
||||||
const word meshName_;
|
|
||||||
|
|
||||||
//- List of processor meshes
|
//- List of processor meshes
|
||||||
PtrList<fvMesh> meshes_;
|
PtrList<fvMesh> meshes_;
|
||||||
|
|
||||||
@ -98,29 +98,32 @@ public:
|
|||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
//- Update the meshes based on the mesh files saved in
|
//- Update the meshes based on the mesh files saved in time directories
|
||||||
// time directories
|
|
||||||
fvMesh::readUpdateState readUpdate();
|
fvMesh::readUpdateState readUpdate();
|
||||||
|
|
||||||
//- Reconstruct point position after motion in parallel
|
//- Reconstruct point position after motion in parallel
|
||||||
void reconstructPoints(fvMesh& mesh);
|
void reconstructPoints(fvMesh&);
|
||||||
|
|
||||||
PtrList<fvMesh>& meshes()
|
PtrList<fvMesh>& meshes()
|
||||||
{
|
{
|
||||||
return meshes_;
|
return meshes_;
|
||||||
}
|
}
|
||||||
|
|
||||||
const PtrList<labelIOList>& pointProcAddressing() const
|
const PtrList<labelIOList>& pointProcAddressing() const
|
||||||
{
|
{
|
||||||
return pointProcAddressing_;
|
return pointProcAddressing_;
|
||||||
}
|
}
|
||||||
|
|
||||||
PtrList<labelIOList>& faceProcAddressing()
|
PtrList<labelIOList>& faceProcAddressing()
|
||||||
{
|
{
|
||||||
return faceProcAddressing_;
|
return faceProcAddressing_;
|
||||||
}
|
}
|
||||||
|
|
||||||
const PtrList<labelIOList>& cellProcAddressing() const
|
const PtrList<labelIOList>& cellProcAddressing() const
|
||||||
{
|
{
|
||||||
return cellProcAddressing_;
|
return cellProcAddressing_;
|
||||||
}
|
}
|
||||||
|
|
||||||
const PtrList<labelIOList>& boundaryProcAddressing() const
|
const PtrList<labelIOList>& boundaryProcAddressing() const
|
||||||
{
|
{
|
||||||
return boundaryProcAddressing_;
|
return boundaryProcAddressing_;
|
||||||
Reference in New Issue
Block a user