|
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... | |
Public Member Functions inherited from carputils.mesh.base.ElementMixinBase | |
| def | elements (self) |
| Iterate over the elements of the mesh. More... | |
Public Attributes | |
| num_elems | |
Public Attributes inherited from carputils.mesh.base.ElementMixinBase | |
| num_elems | |
Element mixing implementing compressed row storage similar to openCARP storage.
| def carputils.mesh.base.ElementCompressedRowMixin.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs | ||
| ) |
Reimplemented from carputils.mesh.base.ElementMixinBase.
| def carputils.mesh.base.ElementCompressedRowMixin.element | ( | self, | |
| i_elem | |||
| ) |
Return the requested element.
Parameters ----------
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.
Returns
-------
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.
Parameters ----------
filename str The full filename of the openCARP elem file
| carputils.mesh.base.ElementCompressedRowMixin.num_elems |