hedge :: mesh :: Mesh :: Class Mesh
[hide private]
[frames] | no frames]

Class Mesh

source code


Information about the geometry and connectivity of a finite element mesh. (Note: no information about the discretization is stored here.)

Instance Methods [hide private]
 
both_interfaces(self) source code
 
bounding_box(self) source code
 
element_adjacency_graph(self)
Return a dictionary mapping each element id to a list of adjacent element ids.
source code

Inherited from pytools.Record: __eq__, __getstate__, __init__, __ne__, __repr__, __setstate__, copy

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Instance Variables [hide private]
  elements
list of Element instances
  interfaces
a list of pairs:
  periodic_opposite_faces
a mapping of the form:
  periodic_opposite_vertices
a mapping of the form:
  periodicity
A list of tuples (minus_tag, plus_tag) or None indicating the tags of the boundaries to be matched together as periodic.
  points
list of Pylinear vectors of node coordinates
  tag_to_boundary
a mapping of the form:
  tag_to_elements
a mapping of the form element_tag -> [element instances]
Properties [hide private]
  dimensions

Inherited from object: __class__

Instance Variable Details [hide private]

interfaces

a list of pairs:
     ((element instance 1, face index 1), (element instance 2, face index 2))

 enumerating elements bordering one another.  The relation "element 1 touches 
 element 2" is always reflexive, but this list will only contain one entry
 per element pair.

periodic_opposite_faces

a mapping of the form:
     (face_vertex_indices) -> 
       (opposite_face_vertex_indices), axis

 This maps a face to its periodicity-induced opposite.

periodic_opposite_vertices

a mapping of the form:
     vertex_index -> [(opposite_vertex_index, axis), ...]

 This maps one vertex to a list of its periodicity-induced 
 opposites.

periodicity

A list of tuples (minus_tag, plus_tag) or None indicating the tags of the boundaries to be matched together as periodic. There is one tuple per axis, so that for example a 3D mesh has three tuples.

tag_to_boundary

a mapping of the form:
     boundary_tag -> [(element instance, face index)])

 The boundary tag TAG_NONE always refers to an empty boundary.
 The boundary tag TAG_ALL always refers to the entire boundary.

tag_to_elements

a mapping of the form element_tag -> [element instances]

The boundary tag TAG_NONE always refers to an empty domain. The boundary tag TAG_ALL always refers to the entire domain.


Property Details [hide private]

dimensions

Get Method:
unreachable.dimensions(self)