- class neso_fame.mesh.MeshLayer(Generic[E, B, C], LazilyOffsetable)
Representation of a single “layer” of the mesh.
A layer is a region of the mesh where the elements are conformal and aligned with the magnetic field. A mesh may contain multiple layers, but there will be a non-conformal interface between each of them.
Public members¶
-
subdivisions : int =
1
The number of elements deep the layer should be in the x3-direction.
- reference_elements : Sequence[E]
A colelction of the
Quad
orPrism
elements making up the layer (without any subdivision).
- bounds : Sequence[frozenset[B]]
An ordered collection of sets of
Curve
orQuad
objects (faces or edges, repsectively). Each set describes a particular boundary regions of the layer. The near and far faces of the layer are not included in these.
Constructors¶
- classmethod QuadMeshLayer(...) MeshLayer[Quad, FieldAlignedCurve | StraightLine, Callable[[_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]], Coords]]
Construct a MeshLayer object made up of quads.
- classmethod PrismMeshLayer(...) MeshLayer[Prism, Quad, EndShape]
Construct a MeshLayer object made up of prisms, in a type-safe way.
- MeshLayer(reference_elements: Sequence[E], bounds, ...)
Initialize self. See help(type(self)) for accurate signature.
Special methods¶
- __repr__()
Return repr(self).
- __eq__(other)
Return self==value.
- __hash__()
Return hash(self).
Methods¶
- boundaries() Iterator[frozenset[B]]
Iterate over the boundary regions in this layer.
- near_faces() Iterator[C]
Iterate over the near faces of the elements in the layer.
Properties¶
- property element_type : type[E]
Return the type of the elements of the mesh layer.
-
subdivisions : int =
Last update:
Nov 07, 2024