mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: block - added new constructor
This commit is contained in:
@ -35,6 +35,24 @@ namespace Foam
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * 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
|
Foam::block::block
|
||||||
(
|
(
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
|
|||||||
@ -116,6 +116,18 @@ public:
|
|||||||
|
|
||||||
// Constructors
|
// 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
|
//- Construct from components with Istream
|
||||||
block
|
block
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user