Student[VectorCalculus] - Maple Programming Help

Home : Support : Online Help : Education : Student Packages : Vector Calculus : Visualization Commands : Student/VectorCalculus/Flux

Student[VectorCalculus]

 Flux

 Calling Sequence Flux(F, dom, options)

Parameters

 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

Description

 • 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.
 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.
 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.
 The optional third argument, direction, specifies the direction of the normal vector.  It must be inward or outward.  The default value is outward.
 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)
 • 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.

Examples

 > with(Student[VectorCalculus]):
 > Flux( VectorField( ), Surface( , s=0..Pi, t=0..2*Pi) );
 ${2}{}{r}{}{{\mathrm{\pi }}}^{{2}}$ (1)
 > Flux( VectorField( ), Surface( , [s,t] = Circle(<0,0>, 2)) );
 ${4}{}{r}{}{\mathrm{\pi }}$ (2)
 > Flux( VectorField( ), Surface( <2,s,t>, [s,t] = Circle(<0,0>, 2)) );
 ${8}{}{\mathrm{\pi }}$ (3)
 > Flux( VectorField( ), Surface( , s=0..1, t=2..3 ) );
 ${0}$ (4)
 > Flux( VectorField( ), Sphere( <0,0,0>, r ) );
 ${4}{}{{r}}^{{3}}{}{\mathrm{\pi }}$ (5)
 > Flux( VectorField( ), Sphere( <0,0,0>, r ), output=integral );
 ${?}$ (6)
 > Flux( VectorField( ), Sphere( <0,0,0>, r, 'inward' ) );
 ${-}{4}{}{{r}}^{{3}}{}{\mathrm{\pi }}$ (7)
 > Flux( VectorField( ), Box( 1..2, 3..4, 5..6 ), output=plot, surfaceoptions=[ color=yellow ], scaling=constrained );
 > Flux( VectorField( ), Circle( <0,0>, r, 'inward' ) );
 ${-}{2}{}{\mathrm{\pi }}{}{{r}}^{{2}}$ (8)
 > Flux( VectorField( ), Path( , t=0..2*Pi ) );
 ${2}{}{\mathrm{\pi }}$ (9)
 > Flux( VectorField( ), Line( <0,0>, <1,1> ), output=integral );
 ${{\int }}_{{0}}^{{1}}{0}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{t}$ (10)

The commands to create the plots from the Plotting Guide are

 > Flux( VectorField( ), LineSegments( <0,0>, <1,1>, <2,3> ), output=plot, pathoptions=[color=blue], vectoroptions=[color=black], scaling=constrained );
 > Flux( VectorField( <1/(x^2),0,1> ), Box( -1..1, -1..1, -1..1), output=plot, scaling=constrained );