VectorField - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


VectorCalculus

  

VectorField

  

create a vector field

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

VectorField(v, c)

Parameters

v

-

list or Vector; components specifying the coefficients of the basis vectors at each point in space

c

-

(optional) symbol[name, name, ...]; specify the coordinate system and coordinate names of the vector field

Description

• 

The VectorField(v, c) command constructs a vector field, which is implemented as a Vector with the vectorfield attribute and a coordinate system attribute.

• 

The vector field is one of the principal data structures of the Vector Calculus package.

• 

Note that some VectorCalculus procedures require their input to be vector fields, but will accept Vector-valued operators as well; in this case, any input operator will be interpreted as a vector field, and the output will generally also be an operator.

• 

The other principal data structures of the Vector Calculus package (free Vectors, position Vectors, and rooted Vectors) are not interpreted as constant vector fields.

• 

If the second parameter, c, is not specified, the default coordinate system is used.  In this case, the default coordinate system must be indexed by coordinate names; otherwise, an error is raised.

• 

If Vectors are displayed in BasisFormat, the basis vectors for a vector field object are displayed using overbars to visually distinguish a vector field from a free Vector.

• 

The routine evalVF can be used to evaluate a vector field at a point.

Examples

withVectorCalculus:

Note the overbars on the basis Vectors

vVectorFieldx,y,z,cartesianx,y,z

attributesv

vectorfield,coords=cartesianx,y,z

(1)

Aboutv

Type: Vector FieldComponents: x,y,zCoordinates: cartesianx,y,z

(2)

evalVFv,1,2,3

123

(3)

SetCoordinatessphericalr,φ,θ

sphericalr,φ,θ

(4)

vVectorField1r2,sinφ,cosθ

Aboutv

Type: Vector FieldComponents: 1r2,sinφ,cosθCoordinates: sphericalr,φ,θ

(5)

evalVFv,1,π2,0

111

(6)

SetCoordinatescylindricalr,θ,z

cylindricalr,θ,z

(7)

vVectorFieldrcosθ,sinθ,z2

Aboutv

Type: Vector FieldComponents: rcosθ,sinθ,z2Coordinates: cylindricalr,θ,z

(8)

Curlv

Note that the Divergence procedure accepts a Vector-valued operator in place of a vector field.

dDivergencea,b,cb2+a2,1c3,1

da,b,c3a2+b2a

(9)

d2,2,2

8

(10)

See Also

attributes

convert/PhysicsVectors

coords

Physics/Vectors

VectorCalculus

VectorCalculus[AddCoordinates]

VectorCalculus[BasisFormat]

VectorCalculus[evalVF]

VectorCalculus[GetCoordinates]

VectorCalculus[MapToBasis]

VectorCalculus[SetCoordinates]