ENH: block - added new constructor
This commit is contained in:
parent
712f8e0583
commit
22b265b482
@ -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,
|
||||
|
@ -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
|
||||
(
|
||||
|
Loading…
Reference in New Issue
Block a user