constructor - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


LieAlgebrasOfVectorFields

  

VectorField

  

constructing a VectorField object

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

VectorField( components = compList, space = varList)

VectorField( DExpr, space = varList)

VectorField( listOfPairs, space = varList )

VectorField( 0, space = varList)

Parameters

compList

-

a list of scalar expressions [xi1, xi2,...,xin] the components of the vector field.

varList

-

a list of names [x1, x2, ... ,xn], the coordinates of space

DExpr

-

expression of the form xi1*D[x1] + xi2*D[x2] + ... + xin*D[xn]

listOfPairs

-

a list of ordered pairs [[xi1,x1], [xi2,x2], ..., [xin,xn]] of component values and corresponding space coordinate

Description

• 

The command VectorField(...) is a constructor method for creating a VectorField object. Once a valid VectorField object is created, it has access to various methods which allow it to be manipulated and its contents queried. see Overview of VectorField object for more detail.

• 

A vector field X is an expression of the form X=i=0nξix1,x2,,xn living on a space with coordinates x1,x2,,xn. The ξi are referred to as components, and x1,x2,,xn  are referred to as (coordinates of) space.   xiξix1,x2,..,xn

• 

The VectorField command first validates the user input arguments and then constructs a VectorField object. A valid VectorField object consists of two data attributes: components ξ1,ξ2,,ξn and space variables x1,x2,,xn.

• 

In the first calling sequence, both arguments components = compList, space=varList are required. These two lists must be of the same length.

• 

The second calling sequence is a textual representation of the usual appearance of a vector field.  The space = varList argument is optional; if present, its specification of the space overrides the space [x1, x2,..., xn] implied by DExpr.

• 

In the third calling sequence, the space =varList argument is optional; if present, its specification of the space overrides the space [x1, x2,..., xn] implied by listOfPairs.

• 

The fourth calling sequence is a special constructor for the zero vector field on the specified space; the space = varList argument is required.

• 

This command is part of the VectorField package. For more detail, see Overview of the VectorField package.

• 

This command can be used in the form VectorField(...) only after executing the command with(LieAlgebrasOfVectorFields), but can always be used by executing LieAlgebrasOfVectorFields:-VectorField(...).

Examples

withLieAlgebrasOfVectorFields:

 

First calling sequence:

XVectorFieldcomponents=x2,xy,space=x,y

Xx2ⅆⅆx+xyⅆⅆy

(1)

 

Second calling sequence:

XVectorFieldx2Dx+xyDy

Xx2ⅆⅆx+xyⅆⅆy

(2)

 

Third calling sequence, vector field specified by ordered pairs:

XVectorFieldx2,x,xy,y

Xx2ⅆⅆx+xyⅆⅆy

(3)

 

 

Fourth calling sequence:

ZVectorField0,space=x,y

Z0

(4)

 

The second calling sequence is especially useful as a sparse form entry, where only a few components are nonzero:

TxVectorFieldDx,space=x,y,z,t

Txⅆⅆx

(5)

 

 

Although the coordinates y,z,t are not visible in the printed form of this vector field, they are present in the VectorField object:

GetComponentsTx,GetSpaceTx

1,0,0,0,x,y,z,t

(6)

See Also

VectorField (commands)

VectorField (Object overview)

GetComponents

GetSpace