linearization of results for visualization
Hi,
I have just merged in a branch implementing linearization of higher order solutions for the purposes of visualization. An example what it does can be found at [1]. The implementation was inspired by [2]. Check also tests/test_linearizer.py to see how it can be used, and its output for additional results.
This development is just a preparation for implementing a hierarchical FE basis, as the current Lagrange basis is not really usable for polynomial orders
= 3, due to its bad conditioning properties. It's good to be able to see what one is implementing :)
The current implementation is pure Python (mostly NumPy + one Python loop I could not avoid), so it's not very fast. However, the real bottleneck is saving the resulting (large) VTK file - we should think about how to speed up the MeshIO classes. A ready made solution with compatible license would be the best...
r.
[1] https://github.com/sfepy/sfepy/wiki/Linearizer-Examples [2] http://onlinelibrary.wiley.com/doi/10.1002/nme.1787/abstract
participants (1)
-
Robert Cimrman