Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Physics[TensorArray] - construct an Array that can be indexed to return the values of a tensorial expression
Calling Sequence
TensorArray(expression, alpha, beta, ...)
Parameters
expression
-
any algebraic tensorial expression having spacetime free indices possibly having also repeated indices implying summation
performsumoverrepeatedindices
optional, can be true (default) or false, to perform the sum over repeated tensor indices in the returned result
simplifier = ...
optional - indicates the simplifier to be used instead; default is none
Description
The TensorArray receives a tensorial expression having n free indices, typically involving sums and products, and returns a corresponding n dimensional Array, which can be indexed as a single object to return the values of the tensorial expression for given values of its free indices.
To check and determine the free and repeated indices of an expression use Check.
The returned Array is constructed taking into account the covariant and contravariant character of each free index in expression. To compute the values of expression you index this array giving values between 1 and the spacetime dimension to the indices.
By default, in the returned result, summation is explicitly performed over all the repeated indices found in expression, taking into account the covariant/contravariant character of each index. To avoid performing this summation and keep repeated indices not summed pass the optional argument performsumoverrepeatedindices = false.
By default, the Array is constructed without simplifying its components; to have them simplified indicate the simplifier on the right-hand-side of the optional argument simplifier = .... A frequently convenient simplification is achieved with simplifier = `simplify/size`@simplify.
Compatibility
The Physics[TensorArray] command was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
Examples
Set the spacetime metric to be the Schwarzschild metric and construct an Array for the product of the metric tensor g_ contracted and multiplied with an arbitrary tensor as in
For this purpose, set first the metric and the coordinates -you can use Setup for that, or because the Schwarzschild metric is known to the system you can directly pass the keyword or an abbreviation of it to the metric g_ to do all in one step
Define now an arbitrary tensor
Construct now the tensorial expression mentioned
Check the indices
Construct now the tensor-array
In the above, the sum over is performed. With performsumoverrepeatedindices = false the sum is not performed:
Rewrite the Riemann tensor with all its indices covariant in terms of Christoffel symbols and their derivatives and construct a tensor-array for the resulting tensorial expression; in view of the presence of trigonometric functions, use the simplifier option
Verify the result comparing , constructed with the definition of Riemann in terms of Christoffel symbols, with the Riemann tensor itself
Compare all the nonzero values of the two arrays: for Riemann, pass the option nonzero, for use ArrayElems; all the nonzero components are same:
A contraction of the Riemann tensor over two of its indices
See Also
Check, Coordinates, Define, g_, Physics, Physics conventions, Physics examples, Setup
References
Landau, L.D., and Lifshitz, E.M. The Classical Theory of Fields, Course of Theoretical Physics Volume 2, fourth revised English edition. Elsevier, 1975.
Download Help Document