carputils
Doxygen code documentation for the python framework controlling openCARP
|
Element mixing implementing compressed row storage similar to openCARP storage. More...
Public Member Functions | |
def | __init__ (self, args, kwargs) |
def | read_elements (self, filename) |
Method to read elementsfrom an openCARP .elem file. More... | |
def | element (self, i_elem) |
Return the requested element. More... | |
def | element_centroids (self) |
Compute and return the centroids of all elements in the mesh. More... | |
![]() | |
def | __init__ (self, args, kwargs) |
def | elements (self) |
Iterate over the elements of the mesh. More... | |
Public Attributes | |
num_elems | |
![]() | |
num_elems | |
Element mixing implementing compressed row storage similar to openCARP storage.
def carputils.mesh.base.ElementCompressedRowMixin.__init__ | ( | self, | |
args, | |||
kwargs | |||
) |
def carputils.mesh.base.ElementCompressedRowMixin.element | ( | self, | |
i_elem | |||
) |
Return the requested element.
i_elem int The index of the requested element
Element The element
def carputils.mesh.base.ElementCompressedRowMixin.element_centroids | ( | self | ) |
Compute and return the centroids of all elements in the mesh.
array Shape (num_elems, 3), the coordinate of the centroid of each elem
def carputils.mesh.base.ElementCompressedRowMixin.read_elements | ( | self, | |
filename | |||
) |
Method to read elementsfrom an openCARP .elem file.
filename str The full filename of the openCARP elem file
carputils.mesh.base.ElementCompressedRowMixin.num_elems |