I'm building a Python/Jupyter application that generates highly complex three-dimensional shapes which I want to evaluate in Sfepy. They are closed meshes and available in various CAD formats and as (t)vtk objects.
When I'm trying to simulate linear elasticity based on the Sfepy interactive example I get an error at the creation of the FEDomain (code: domain = FEDomain('domain', myMesh)
AttributeError: 'vtkCommonDataModelPython.vtkPolyData' object has no attribute 'coors'
I cannot seem to find out how to convert (or 'enrich') my tvkt/vtk PolyData in such a way that it can serve as an FEM Mesh.
I've tried the Mesh.from_data(mesh, coors, ngroups, conns, mat_ids, descs) function, but cannot figure out what to do with the arguments aside from mesh...
Help would be greatly appreciated.
Thanks, best -christian