mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: blockMesh : initial blockMesh was created with region 'blockMesh'
This commit is contained in:
@ -158,7 +158,7 @@ int main(int argc, char *argv[])
|
|||||||
blockMesh::verbose(true);
|
blockMesh::verbose(true);
|
||||||
|
|
||||||
IOdictionary meshDict(meshDictIoPtr());
|
IOdictionary meshDict(meshDictIoPtr());
|
||||||
blockMesh blocks(meshDict);
|
blockMesh blocks(meshDict, regionName);
|
||||||
|
|
||||||
|
|
||||||
if (args.optionFound("blockTopology"))
|
if (args.optionFound("blockTopology"))
|
||||||
|
|||||||
@ -321,7 +321,7 @@ void Foam::vtkPV3blockMesh::updateFoamMesh()
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
meshPtr_ = new blockMesh(meshDict);
|
meshPtr_ = new blockMesh(meshDict, polyMesh::defaultRegion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -32,11 +32,11 @@ bool Foam::blockMesh::blockMesh::verboseOutput(false);
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::blockMesh::blockMesh(IOdictionary& dict)
|
Foam::blockMesh::blockMesh(const IOdictionary& dict, const word& regionName)
|
||||||
:
|
:
|
||||||
blockPointField_(dict.lookup("vertices")),
|
blockPointField_(dict.lookup("vertices")),
|
||||||
scaleFactor_(1.0),
|
scaleFactor_(1.0),
|
||||||
topologyPtr_(createTopology(dict))
|
topologyPtr_(createTopology(dict, regionName))
|
||||||
{
|
{
|
||||||
calcMergeInfo();
|
calcMergeInfo();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -128,7 +128,7 @@ class blockMesh
|
|||||||
|
|
||||||
void createCellShapes(cellShapeList& tmpBlockCells);
|
void createCellShapes(cellShapeList& tmpBlockCells);
|
||||||
|
|
||||||
polyMesh* createTopology(IOdictionary&);
|
polyMesh* createTopology(const IOdictionary&, const word& regionName);
|
||||||
void checkBlockMesh(const polyMesh&) const;
|
void checkBlockMesh(const polyMesh&) const;
|
||||||
|
|
||||||
//- Determine the merge info and the final number of cells/points
|
//- Determine the merge info and the final number of cells/points
|
||||||
@ -149,7 +149,7 @@ public:
|
|||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct from IOdictionary
|
//- Construct from IOdictionary
|
||||||
blockMesh(IOdictionary&);
|
blockMesh(const IOdictionary&, const word& regionName);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
|
|||||||
@ -261,7 +261,11 @@ void Foam::blockMesh::createCellShapes
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::polyMesh* Foam::blockMesh::createTopology(IOdictionary& meshDescription)
|
Foam::polyMesh* Foam::blockMesh::createTopology
|
||||||
|
(
|
||||||
|
const IOdictionary& meshDescription,
|
||||||
|
const word& regionName
|
||||||
|
)
|
||||||
{
|
{
|
||||||
bool topologyOK = true;
|
bool topologyOK = true;
|
||||||
|
|
||||||
@ -514,7 +518,7 @@ Foam::polyMesh* Foam::blockMesh::createTopology(IOdictionary& meshDescription)
|
|||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
"blockMesh",
|
regionName,
|
||||||
meshDescription.time().constant(),
|
meshDescription.time().constant(),
|
||||||
meshDescription.time(),
|
meshDescription.time(),
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
@ -563,7 +567,7 @@ Foam::polyMesh* Foam::blockMesh::createTopology(IOdictionary& meshDescription)
|
|||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
"blockMesh",
|
regionName,
|
||||||
meshDescription.time().constant(),
|
meshDescription.time().constant(),
|
||||||
meshDescription.time(),
|
meshDescription.time(),
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
|
|||||||
Reference in New Issue
Block a user