tensor(deprecated)/Lie_diff - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : tensor(deprecated)/Lie_diff

tensor

  

Lie_diff

  

compute the Lie derivative of a tensor with respect to a contravariant vector field

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Lie_diff( T, V, coord)

Parameters

T

-

tensor whose Lie derivative is to be computed

V

-

contravariant vector field with respect to which the derivative is being taken

coord

-

list of coordinate names

Description

Important: The tensor package has been deprecated. Use the superseding commands DifferentialGeometry[LieDerivative] and Physics[LieDerivative] instead.

• 

Given the coordinate variables, coord, a contravariant vector field V, and any tensor T, Lie_diff(T, V, coord) computes the Lie derivative of T with respect to the vector field V using the usual partial derivatives of T and V according to the standard formula:

Lv⁡Ta,b,c,...,l,m,n,...≔Ta,b,c,...,l,m,n,...,q⁢Vq−Tq,b,c,...,l,m,n,...⁢Va,−Ta,q,c,...,l,m,n,...⁢Vb+q,−Ta,b,q,...,l,m,n,...⁢Vc+q,Ta,b,c,...,q,m,n,...⁢Vq−....+q,Ta,b,c,...,l,q,n,...⁢Vq+l,Ta,b,c,...,l,m,q,...⁢Vq+m,n+...

  

where the comma denotes a partial derivative, a, b, c, ... are contravariant indices of T and l, m, n, ... are covariant indices of T, and * indicates an inner product on the repeated indices.

• 

It is required that V be a tensor_type with character: [1] (that is, V is a contravariant vector field)

• 

Note that the rank and index character of the result is identical to that of the input tensor, T.

• 

Simplification:  This routine uses the routine `tensor/Lie_diff/simp` routine for simplification purposes.  The simplification routine is applied twice to each component: first, to the first term involving the inner product of the partial of T and the vector V, and second to the entire component once all of the subsequent terms have been added on. By default, this routine is initialized to the `tensor/simp` routine.  It is recommended that the `tensor/Lie_diff/simp` routine be customized to suit the needs of the particular problem.

• 

This function is part of the tensor package, and so can be used in the form Lie_diff(..) only after performing the command with(tensor) or with(tensor, Lie_diff).  The function can always be accessed in the long form tensor[Lie_diff](..).

Examples

Important: The tensor package has been deprecated. Use the superseding commands DifferentialGeometry[LieDerivative] and Physics[LieDerivative] instead.

> 

with⁡tensor:

Define a mixed rank 2 tensor type, T:

> 

T_compts≔array⁡symmetric,1..3,1..3,r⁢sin⁡θ,φ3,0,φ3,r−cos⁡θ2,r3,0,r3,9:

> 

T≔create⁡1,−1,eval⁡T_compts

T≔table⁡compts=r⁢sin⁡θφ30φ3r−cos⁡θ2r30r39,index_char=1,−1

(1)

Define a contravariant vector field, V:

> 

V≔create⁡1,array⁡r,r⁢cos⁡θ,r⁢cos⁡φ

V≔table⁡compts=rr⁢cos⁡θr⁢cos⁡φ,index_char=1

(2)

Define the coordinates:

> 

coord≔r,θ,φ

coord≔r,θ,φ

(3)

Because the components of T and V involve trigonometric functions, customize the `tensor/Lie_diff/simp` routine so that it uses the `trig` option of the Maple simplify:

> 

`tensor/Lie_diff/simp`:=proc(x) simplify(x,trig) end proc:

Now compute the Lie derivative of T with respect to the field V:

> 

LvT≔tensorLie_diff⁡T,V,coord

LvT≔table⁡compts=r2⁢cos⁡θ2+φ3⁢cos⁡θ+r⁢sin⁡θ−φ2⁢sin⁡θ⁢φ⁢r−3⁢r⁢cos⁡φ+φ0−cos⁡θ3−r⁢sin⁡θ−1⁢cos⁡θ+φ3⁢r⁢sin⁡θ+3⁢φ2⁢r+r3⁢cos⁡φ+φ3r+2⁢sin⁡θ⁢cos⁡θ2⁢r−φ3⁢cos⁡θ3⁢r3+r4⁢sin⁡θ−r4⁢sin⁡φ−r⁢sin⁡θ⁢cos⁡φ+r3⁢cos⁡θ+9⁢cos⁡φ3⁢r3−φ3⁢cos⁡φ+r4⁢sin⁡φ−r4⁢sin⁡θ0,index_char=1,−1

(4)

See Also

DifferentialGeometry[LieDerivative]

Physics[LieDerivative]

tensor(deprecated)

tensor(deprecated)/Killing_eqns

tensor(deprecated)[commutator]

tensor(deprecated)[simp]