![]() ![]() Parametrization of all the elements in the group is affine.Įlement groups can also be compared for equality using the following The coordinates nodes are a mapped versionĪ bool flag that is True if the local-to-global unit_nodes #Īn array with shape (dim, nunit_nodes) of nodes on the referenceĮlement. ![]() (mesh.ambient_dim, nelements, nunit_nodes). vertex_indices #Īn array of shape (nelements, nvertices) of (mesh-wide) Total number of nodes in the group (equivalent to Number of nodes on the reference element. Number of faces of the reference element. Number of vertices in the reference element. Not the ambient dimension, see Mesh.ambient_dim The number of dimensions spanned by the element. The maximum degree used for interpolation. MeshElementGroup ( order : int, vertex_indices : Optional, nodes : ndarray, unit_nodes : Optional = None, element_nr_base : Optional = None, node_nr_base : Optional = None, _factory_constructed : bool = False ) #Ī group of elements sharing a common reference element. Mesh nodes and vertices Mesh Data Structure # class sh. This is done byĪssigning (single, globally shared) vertex numbers and having elements refer to On the other hand exist to clarify whether or not a point shared by twoĮlements is actually identical (or just happens to be “close”). Nodes exist mainly to represent the (potentially non-affine) deformation ofĮach element, by a one-to-one correspondence with (So that you can, e.g., launch one GPU kernel toĭeal with all order-3 triangles, instead of maybe having to dispatchīased on type and size inside the kernel) What is the difference between ‘vertices’ and ‘nodes’? # Polynomial degree used to represent them (see also below).Īll these bits of information could in principle be stored by element,īut having large, internally homogeneous groups is a good thing from anĮfficiency standpoint. Mesh management # Design of the Data Structure # Why does a Mesh need to be broken into MeshElementGroup instances? #Įlements can be of different types (e.g. _call_ ( vecs ) #Īpply the affine map to an array vecs whose first axis Offset – A numpy.ndarray (or something convertible to one), Matrix – A numpy.ndarray (or something convertible to one), _init_ ( matrix = None, offset = None ) # Parameters : offset #Ī numpy.ndarray representing the vector b, or None. matrix #Ī numpy.ndarray representing the matrix A, or None. AffineMap ( matrix = None, offset = None ) #Īn affine map represented by a matrix A and an offset vector b. InconsistentVerticesError # class meshmode. Toggle table of contents sidebar Common infrastructure # exception meshmode. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |