Python library to generate the dual graph of a generic mesh. Starting from the idea of the meshio library we developed a tool to read unstructured meshes, and give back the CSR representation of the Adjacency Matrix, relative to the dual Mesh. The idea is to use the ASAP (As Simple As Possible) rule.
The Mesh
class has been developed as an abstact class to be specified for the 2D and 3D (WIP):
meshio
format we retrive the cells points);Built with the same philosophy of Mesh
class it is able to operate and to build the CSR representation of the Adjacency Matrix.
A hierarchy of geometrical object to treat the 2D and the 3D meshes.
Useful utils for the pre and post processing (mesh management, like passing from a 3D to a 2D mesh and output printing)
The tests are being run through the Pytest suite. If you want to add a test follow the format proposed.
to look at an example have a look to the test.py
script.`
To have an idea of the planned improvements, have a look at the issue tracker.