ikarus-project / ikarus

Ikarus is a C++-based library that uses DUNE modules to solve partial differential equations with the finite element method and more.
https://ikarus-project.github.io/
Other
5 stars 3 forks source link

generalize transformation matrices #248

Open tarun-mitruka opened 7 months ago

tarun-mitruka commented 7 months ago

calcTransformationMatrix2D and calcTransformationMatrix3D basically are functions that help to transform covariant and contravariant quantities from local to global coordinate systems. The current implementation evaluates the transformation matrices only at the center of the element and can handle only second-order tensors in Voigt notation. These should be generalized to a single function applicable for various element dimensions, handling full tensors and their Voigt notations and can be evaluated at any point in a element and not only at the center. After generalization, they can also be then used by elements mentioned in #86.

They currently reside in the file ikarus/utils/tensorutils.hh as per #247.