Exemplo n.º 1
0
 def add_faces(self):
     if utils.element_dimensions(self.interp) == 2:
         self.mesh.add_face(self.id, 0, self.node_ids)
     elif utils.element_dimensions(self.interp) == 3:
         face_nodes = core.element_face_nodes(self.interp, self.node_ids)
         for face_index in range(6):
             self.mesh.add_face(self.id, face_index, face_nodes[face_index])
Exemplo n.º 2
0
 def __init__(self, mesh, uid, interp, node_ids):
     self._type = 'element'
     self.mesh = mesh 
     self.core = mesh._core 
     self.interp = interp 
     self.basis = interp
     self.dimensions = utils.element_dimensions(interp)
     self.id = uid
     self.node_ids = node_ids
     self.cid = None
     
     self._set_shape()
     
     self.mesh._regenerate = True
     self.mesh._reupdate = True