Journal of Open Research Software | |
Tensors.jl — Tensor Computations in Julia | |
Fredrik Ekre1  Kristoffer Carlsson1  | |
[1] Department of Industrial and Materials Science, Chalmers University of Technology, Gothenburg; | |
关键词: tensors; continuum mechanics; fluid dynamics; constitutive modeling; finite element method; | |
DOI : 10.5334/jors.182 | |
来源: DOAJ |
【 摘 要 】
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. Funding statement: Support for this research was provided by the Swedish Research Council (VR), grant no. 621-2013-3901 and grant no. 2015-05422.
【 授权许可】
Unknown