ENH: block - added new constructor

This commit is contained in:
Andrew Heather 2018-11-09 09:26:45 +00:00
parent 712f8e0583
commit 22b265b482
2 changed files with 30 additions and 0 deletions

View File

@ -35,6 +35,24 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::block::block
(
const cellShape& bshape,
const pointField& vertices,
const blockEdgeList& edges,
const blockFaceList& faces,
const Vector<label>& density,
const UList<gradingDescriptors>& expand,
const word& zoneName
)
:
blockDescriptor(bshape, vertices, edges, faces, density, expand, zoneName)
{
createPoints();
createBoundary();
}
Foam::block::block
(
const dictionary& dict,

View File

@ -116,6 +116,18 @@ public:
// Constructors
//- Construct from components. Optional cellSet/zone name.
block
(
const cellShape& bshape,
const pointField& vertices,
const blockEdgeList& edges,
const blockFaceList& faces,
const Vector<label>& density,
const UList<gradingDescriptors>& expand,
const word& zoneName = ""
);
//- Construct from components with Istream
block
(