Student[VectorCalculus]
Flux
Calling Sequence
Parameters
Description
Examples
Flux(F, dom, options)
f
-
'Vector'(algebraic) or Vector-valued procedure; specify the vector field
dom
unevaluated function call; specify the surface or curve
options
(optional) equation(s) of the form option=value where option is one of output, fieldoptions, pathoptions, surfaceoptions, title, vectoroptions, or view
The Flux(f, dom) calling sequence computes the flux of the vector field f through the surface (3-D) or curve (2-D) specified by dom.
Specify the surface or curve dom using unevaluated function calls. The surfaces are Box, Sphere, and Surface. The curves are Circle, Line, LineSegments, and Path.
Box(r1, r2, r3, direction)
Each ri must have type algebraic..algebraic. These represent the sides of the box. The integral is taken over each face of the box.
The optional fourth argument, direction, specifies the direction of the normal vector. It must be inward or outward. The default value is outward.
Sphere(center, radius, direction)
The first parameter of Sphere, center, must have type 'Vector'(3, algebraic) and radius must have type algebraic. These represent the center and radius of the sphere, respectively.
The optional third argument, direction, specifies the direction of the normal vector. It must be inward or outward. The default value is outward.
Surface(v, range)
The first argument, v, must have type 'Vector'(3, algebraic). The second argument, range, can be:
[name1, name2] = region(arguments) where region' is any two-dimensional region that Student[VectorCalculus][int] accepts: Circle, Ellipse, Rectangle, Region, Sector, or Triangle.
name1=range1, name2=range2 This explicitly specifies the ranges for the two parameters.
The normal vector is the cross-product of the derivatives of v.
Circle(center, radius, direction)
The parameter center is the center of the circle and must have type 'Vector'(algebraic). The parameter radius is the radius of the circle and must have type algebraic.
Line(p1, p2)
The parameters p1 and p2 must have type 'Vector'(algebraic). They represent the endpoints of the directed line segment from p1 to p2.
The normal is taken Pi/2 to the right of the direction of the directed line segment.
LineSegments(p1, p2, ..., pk)
Similar to Line(p1, p2), the parameters pi represent the endpoints of k−1 line segments. The path is the collection of line segments directed from p1 to p2, p2 to p3, ..., and p(k-1) to pk.
Path(v, range)
The first parameter, v, is a Vector representing the components of the path. The second parameter, range, must have type {range, name=range}. If no parameter name is specified in range, it is inferred from v.
The normal is taken Pi/2 to the right of the tangent vector that points in the direction of increasing parameter.
The options arguments primarily control plot options.
output = value, plot, or integral
This option controls the return value of the command.
output = value returns the value of the line integral. Plot options are ignored if output = value. This is the default value.
output = plot returns a plot of the path, normal vectors of the path, and vector field. In 2-D, plots are available for the regions Path, Circle, LineSegment and Line. In 3-D, plots are available for the regions Surface (with two explicit ranges), Sphere and Box.
output = integral returns the inert representation of the line integral. Plot options are ignored if output = integral.
fieldoptions = list
A list of plot options for plotting the Vector field. For more information on plotting options, see plot/options. The default value is []. A list of plot options for plotting the Vector field. The field is plotted using a call to plots[fieldplot] or plots[fieldplot3d], so options valid for these commands can be passed in this option.
pathoptions = list
A list of plot options for plotting the path. For more information on plotting options, see plot/options. The default value is [].
surfaceoptions = list
A list of plot options for plotting the surface. For more information on plotting options, see plot/options. The default value is [].
title = string
Give the plot a title. The default value is the empty string.
vectoroptions = list
A list of plot options for plotting the normal vectors. For more information on plotting options, see plot/options. The default value is []. Free Vectors and rooted Vectors are plotted using plots[arrow].
view = [realcons..realcons, realcons..realcons, realcons..realcons] (3-D) or [realcons..realcons, realcons..realcons] (2-D)
Specify the plot view. For more information, see plot3d/option or plot/options.
caption = anything
A caption for the plot.
The default caption is constructed from the parameters and the command options. caption = "" disables the default caption. For more information about specifying a caption, see plot/typesetting.
with⁡StudentVectorCalculus:
Flux⁡VectorField⁡x,y,z,Surface⁡r,s,t,s=0..π,t=0..2⁢π
2⁢r⁢π2
Flux⁡VectorField⁡x,y,z,Surface⁡r,s,t,s,t=Circle⁡0,0,2
4⁢r⁢π
Flux⁡VectorField⁡x,y,z,Surface⁡2,s,t,s,t=Circle⁡0,0,2
8⁢π
Flux⁡VectorField⁡y,−x,0,Surface⁡s,t,s2+t2,s=0..1,t=2..3
0
Flux⁡VectorField⁡x,y,z,Sphere⁡0,0,0,r
4⁢r3⁢π
Flux⁡VectorField⁡x,y,z,Sphere⁡0,0,0,r,output=integral
∫02⁢π∫0πr3⁢sin⁡φⅆφⅆθ
Flux⁡VectorField⁡x,y,z,Sphere⁡0,0,0,r,inward
−4⁢r3⁢π
Flux⁡VectorField⁡y,−x,0,Box⁡1..2,3..4,5..6,output=plot,surfaceoptions=color=yellow,scaling=constrained
Flux⁡VectorField⁡x,y,Circle⁡0,0,r,inward
−2⁢π⁢r2
Flux⁡VectorField⁡x,y,Path⁡cos⁡t,sin⁡t,t=0..2⁢π
2⁢π
Flux⁡VectorField⁡x,y,Line⁡0,0,1,1,output=integral
∫010ⅆt
The commands to create the plots from the Plotting Guide are
Flux⁡VectorField⁡x,y,LineSegments⁡0,0,1,1,2,3,output=plot,pathoptions=color=blue,vectoroptions=color=black,scaling=constrained
Flux⁡VectorField⁡1x2,0,1,Box⁡−1..1,−1..1,−1..1,output=plot,scaling=constrained
See Also
plot/options
plot3d/option
realcons
Student[VectorCalculus][int]
Student[VectorCalculus][LineInt]
Student[VectorCalculus][PathInt]
Student[VectorCalculus][SurfaceInt]
Student[VectorCalculus][VectorField]
VectorCalculus
VectorCalculus[Flux]
Download Help Document