Tensors.jl — Tensor Computations in Julia
Journal article, 2019

Tensors.jl is a Julia package that provides efficient computations with symmetric and non-symmetric tensors. The focus is on the kind of tensors commonly used in e.g. continuum mechanics and fluid dynamics. Exploiting Julia’s ability to overload Unicode infix operators and using Unicode in identifiers, implemented tensor expressions commonly look very similar to their mathematical writing. This possibly reduces the number of bugs in implementations. Operations on tensors are often compiled into the minimum assembly instructions required, and, when beneficial, SIMD-instructions are used. Computations involving symmetric tensors take symmetry into account to reduce computational cost. Automatic differentiation is supported, which means that most functions written in pure Julia can be efficiently differentiated without having to implement the derivative by hand. The package is useful in applications where efficient tensor operations are required, e.g. in the Finite Element Method.

fluid dynamics

constitutive modeling

tensors

continuum mechanics

finite element method

Author

Kristoffer Carlsson

Chalmers, Industrial and Materials Science, Material and Computational Mechanics

Fredrik Ekre

Chalmers, Industrial and Materials Science, Material and Computational Mechanics

Journal of Open Research Software

20499647 (eISSN)

Vol. 7 1 7

Variationally Consistent Selective Homogenization of Multifield Problems with Application to Gradient-Enhanced Modeling of Polycrystals

Swedish Research Council (VR) (2013-3901), 2014-01-01 -- 2016-12-31.

Numerisk modellreduktion vid beräkningsbaserad homogenisering av deformation och strömning i porösa medier

Swedish Research Council (VR) (2015-05422), 2016-01-01 -- 2019-12-31.

Subject Categories

Applied Mechanics

Computational Mathematics

Software Engineering

DOI

10.5334/jors.182

More information

Latest update

3/21/2023