Tensor[GenerateTensors] - generate a list of all product tensors from a list of lists of tensors
Calling Sequences
GenerateTensors(Tlist)
Parameters
Tlist - a list of lists of tensor fields
Description
Examples
With Tlist = [T1,T2,...,Tr] the command GenerateTensors(Tlist) will generate a list of tensors by forming all possible r-fold tensor products t1⊗t2⊗...⊗tr , where the first tensor t1 belongs to the list T1, the second tensor t2 belongs to the list T2, and so on.
This command is part of the DifferentialGeometry:-Tensor package, and so can be used in the form GenerateTensors(...) only after executing the command with(DifferentialGeometry) and with(Tensor) in that order. It can always be used in the long form DifferentialGeometry:-Tensor:-GenerateTensors.
with⁡DifferentialGeometry:with⁡Tensor:
Example 1.
First create a 3 dimensional manifold M.
DGsetup⁡x,y,z,M:
Create a list L1 of all type (1, 1) tensors on M.
T1≔Tools:-DGinfo⁡FrameBaseVectors
T1:=D_x,D_y,D_z
T2≔Tools:-DGinfo⁡FrameBaseForms
T2:=dx,dy,dz
L1≔GenerateTensors⁡T1,T2
L1:=D_x⁢dx,D_x⁢dy,D_x⁢dz,D_y⁢dx,D_y⁢dy,D_y⁢dz,D_z⁢dx,D_z⁢dy,D_z⁢dz
nops⁡L1
9
Example 2.
Create a list L2 of all rank 3 covariant tensors which are symmetric in their first 2 indices.
S≔GenerateSymmetricTensors⁡T1,2
S:=D_x⁢D_x,12⁢D_x⁢D_y+12⁢D_y⁢D_x,12⁢D_x⁢D_z+12⁢D_z⁢D_x,D_y⁢D_y,12⁢D_y⁢D_z+12⁢D_z⁢D_y,D_z⁢D_z
L2≔GenerateTensors⁡S,T2
L2:=D_x⁢D_x⁢dx,D_x⁢D_x⁢dy,D_x⁢D_x⁢dz,12⁢D_x⁢D_y⁢dx+12⁢D_y⁢D_x⁢dx,12⁢D_x⁢D_y⁢dy+12⁢D_y⁢D_x⁢dy,12⁢D_x⁢D_y⁢dz+12⁢D_y⁢D_x⁢dz,12⁢D_x⁢D_z⁢dx+12⁢D_z⁢D_x⁢dx,12⁢D_x⁢D_z⁢dy+12⁢D_z⁢D_x⁢dy,12⁢D_x⁢D_z⁢dz+12⁢D_z⁢D_x⁢dz,D_y⁢D_y⁢dx,D_y⁢D_y⁢dy,D_y⁢D_y⁢dz,12⁢D_y⁢D_z⁢dx+12⁢D_z⁢D_y⁢dx,12⁢D_y⁢D_z⁢dy+12⁢D_z⁢D_y⁢dy,12⁢D_y⁢D_z⁢dz+12⁢D_z⁢D_y⁢dz,D_z⁢D_z⁢dx,D_z⁢D_z⁢dy,D_z⁢D_z⁢dz
nops⁡L2
18
Example 3.
Create a list L3 of all rank 3 covariant tensors which are skew-symmetric in their first 2 indices.
W≔Tools:-GenerateForms⁡T2,2
W:=dx⁢⋀⁢dy,dx⁢⋀⁢dz,dy⁢⋀⁢dz
map⁡convert,W,DGtensor
dx⁢dy−dy⁢dx,dx⁢dz−dz⁢dx,dy⁢dz−dz⁢dy
L3≔GenerateTensors⁡W,T2
L3:=dx⁢dy⁢dx−dy⁢dx⁢dx,dx⁢dy⁢dy−dy⁢dx⁢dy,dx⁢dy⁢dz−dy⁢dx⁢dz,dx⁢dz⁢dx−dz⁢dx⁢dx,dx⁢dz⁢dy−dz⁢dx⁢dy,dx⁢dz⁢dz−dz⁢dx⁢dz,dy⁢dz⁢dx−dz⁢dy⁢dx,dy⁢dz⁢dy−dz⁢dy⁢dy,dy⁢dz⁢dz−dz⁢dy⁢dz
See Also
DifferentialGeometry
Tensor
DGinfo
GenerateSymmetricTensors
GenerateForms
Download Help Document