Rectangular2D Class¶
- class plask.mesh.Rectangular2D(axis0, axis1, ordering='01')¶
- class plask.mesh.Rectangular2D(ordering='01')
- class plask.mesh.Rectangular2D(geometry, ordering='01')
Two-dimensional mesh
create empty mesh
create mesh with axes supplied as sequences of numbers
create coarse mesh based on bounding boxes of geometry objects
ordering can be either ‘01’, ‘10’ and specifies ordering of the mesh points (last index changing fastest).
Subclasses¶
Generic boundary specification for RectangularBase2D mesh |
|
Set of boundary conditions. |
|
Generator of Rectilinear2D mesh by simple division of the geometry. |
|
Element (FEM-like, rectangular) of the |
|
Element list in the |
|
Generator of Rectilinear2D mesh with lines at transverse edges of all objects and fine regular division of each object with spacing approximately equal to specified spacing. |
|
Generator of Rectangular2D mesh with lines at edges of all objects. |
|
Generator of Rectilinear2D mesh with dense sampling at edges and smooth change of element size. |
Methods¶
|
Bottom edge of the mesh for setting boundary conditions |
|
Boundary bottom of specified object |
|
Boundary at horizontal line |
|
Left edge of the mesh for setting boundary conditions |
|
Boundary left of specified object |
|
Right edge of the mesh for setting boundary conditions |
|
Boundary right of specified object |
|
Top edge of the mesh for setting boundary conditions |
|
Boundary top of specified object |
|
Boundary at vertical line |
|
Make a copy of this mesh |
Get new mesh with points in the middles of elements of this mesh |
|
|
Return single index of the point indexed with index0 and index1 |
|
Return index in the first axis of the point with given index |
|
Return index in the second axis of the point with given index |
|
Return index in the major axis of the point with given index |
|
Return index in the minor axis of the point with given index |
Set the optimal ordering of the points in this mesh |
Attributes¶
The first (transverse) axis of the mesh |
|
The second (vertical) axis of the mesh |
|
The first (transverse) axis of the mesh, alias for |
|
The second (vertical) axis of the mesh, alias for |
|
Element list in the mesh |
|
Alias for |
|
Alias for |
|
The slower changing axis |
|
The quicker changing axis |
|
Ordering of the points in this mesh |
Descriptions¶
Method Details¶
- Rectangular2D.Bottom()¶
Bottom edge of the mesh for setting boundary conditions
- Rectangular2D.BottomOf(object, path=None)¶
Boundary bottom of specified object
- Rectangular2D.Horizontal(at, start, stop)¶
- Rectangular2D.Horizontal(at)
Boundary at horizontal line
Boundary at horizontal line
- Rectangular2D.Left()¶
Left edge of the mesh for setting boundary conditions
- Rectangular2D.LeftOf(object, path=None)¶
Boundary left of specified object
- Rectangular2D.Right()¶
Right edge of the mesh for setting boundary conditions
- Rectangular2D.RightOf(object, path=None)¶
Boundary right of specified object
- Rectangular2D.Top()¶
Top edge of the mesh for setting boundary conditions
- Rectangular2D.TopOf(object, path=None)¶
Boundary top of specified object
- Rectangular2D.Vertical(at, start, stop)¶
- Rectangular2D.Vertical(at)
Boundary at vertical line
Boundary at vertical line
- Rectangular2D.copy()¶
Make a copy of this mesh
- Rectangular2D.get_midpoints()¶
Get new mesh with points in the middles of elements of this mesh
- Rectangular2D.index(index0, index1)¶
Return single index of the point indexed with index0 and index1
- Rectangular2D.index0(index)¶
Return index in the first axis of the point with given index
- Rectangular2D.index1(index)¶
Return index in the second axis of the point with given index
- Rectangular2D.major_index(index)¶
Return index in the major axis of the point with given index
- Rectangular2D.minor_index(index)¶
Return index in the minor axis of the point with given index
- Rectangular2D.set_optimal_ordering()¶
Set the optimal ordering of the points in this mesh
Attribute Details¶
- Rectangular2D.axis0 = <property object>¶
The first (transverse) axis of the mesh
- Rectangular2D.axis1 = <property object>¶
The second (vertical) axis of the mesh
- Rectangular2D.axis_tran = <property object>¶
The first (transverse) axis of the mesh, alias for
axis0
- Rectangular2D.axis_vert = <property object>¶
The second (vertical) axis of the mesh, alias for
axis1
- Rectangular2D.dim = 2¶
- Rectangular2D.elements = <property object>¶
Element list in the mesh
- Rectangular2D.major_axis = <property object>¶
The slower changing axis
- Rectangular2D.minor_axis = <property object>¶
The quicker changing axis
- Rectangular2D.ordering = <property object>¶
Ordering of the points in this mesh