Divergence - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


VectorCalculus

  

Divergence

  

compute the divergence of a vector field

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Divergence(F)

Parameters

F

-

(optional) vector field or a Vector valued procedure; specify the components of the vector field

Description

• 

The Divergence(F) command computes the divergence of the vector field F.  This is a synonym for Del·F or DotProduct(Del, F).

• 

If F is a Vector valued procedure, the default coordinate system is used, and it must be indexed by the coordinate names.  Otherwise, F must be a Vector with the vectorfield attribute set, and it must have a coordinate system attribute that is indexed by the coordinate names.

• 

If F is a procedure, the returned object is a procedure. Otherwise, the returned object is an expression.

• 

The Divergence() command returns the differential form of the divergence operator in the current coordinate system.  For more information, see SetCoordinates.

Examples

> 

with⁡VectorCalculus:

> 

SetCoordinates⁡cartesianx,y,z

cartesianx,y,z

(1)
> 

F≔VectorField⁡x2,y2,z2

F≔x2e_x+y2e_y+z2e_z

(2)
> 

Divergence⁡F

2⁢x+2⁢y+2⁢z

(3)
> 

Divergence⁡

∂∂xVF 1⁡x,y,z+∂∂yVF 2⁡x,y,z+∂∂zVF 3⁡x,y,z

(4)
> 

Del·F

2⁢x+2⁢y+2⁢z

(5)
> 

∇·F

2⁢x+2⁢y+2⁢z

(6)
> 

DotProduct⁡Del,F

2⁢x+2⁢y+2⁢z

(7)
> 

Divergence⁡x,y,z↦PositionVector⁡sin⁡x,cos⁡y,tan⁡z

x,y,z↦cos⁡x−sin⁡y+1+tan⁡z2

(8)
> 

SetCoordinates⁡polarr,θ

polarr,θ

(9)
> 

Divergence⁡r,θ↦f⁡r,θ,g⁡r,θ

r,θ→f⁡r,θ+r⁢∂∂r⁢f⁡r,θ+∂∂θ⁢g⁡r,θr

(10)

See Also

convert/PhysicsVectors

Physics/Vectors

Physics/Vectors/Divergence

VectorCalculus

VectorCalculus[Curl]

VectorCalculus[Del]

VectorCalculus[DotProduct]

VectorCalculus[Gradient]

VectorCalculus[Laplacian]

VectorCalculus[SetCoordinates]

VectorCalculus[Vector]

VectorCalculus[VectorField]