Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Student[VectorCalculus][VectorField] - create a vector field
Calling Sequence
VectorField(v, c, options)
Parameters
v
-
list or Vector; components specifying the coefficients of the basis vectors at each point in space
c
(optional) name or indexed name; specify the coordinate system
options
(optional) equation(s) of the form option=value where option is one of output, fieldoptions, title, or view
Description
The VectorField(v) command creates a vector field, one of the four principal Vector data structures of the Student[VectorCalculus] package. Note that the Student[VectorCalculus] and the VectorCalculus packages share the same Vector data structures.
For details on the differences between the four principal Vector data structures, namely, vector fields, position Vectors, rooted Vectors, and free Vectors, see VectorCalculus,Details.
A vector field is a Vector that has a vectorfield attribute and a coordinate system attribute. The coordinate system used to define this vector field is determined as follows.
* If a coordinate system has been set by a call to SetCoordinates, that system is used;
* Otherwise, if the Vector v has an associated coordinate system (see Vector), that system is used;
* Otherwise, Maple will choose a default coordinate system, which will be a two- or three-dimensional cartesian system, depending on whether v is two- or three-dimensional.
The VectorField(v,c) command creates a vector field using the coordinate system c. If c is an indexed name, the coordinate names given in the index are used. Otherwise, default coordinates names are used.
Most commands in the Student[VectorCalculus] package that operate on vector fields also accept a Vector-valued operator; in this case, the output is generally an operator.
Note: A Vector that is not a vector field is not interpreted as a constant vector field by the Student[VectorCalculus] package commands. Vector Fields and the other Vectors cannot be used interchangeably.
By default, Vectors and vector fields created by commands from the Student[VectorCalculus] package are displayed using basis format, that is, as a sum of scalar multiples of basis vectors. Vector fields are visually distinguished in this format by displaying an overbar above each basis vector. For more information on Vector display formats, see BasisFormat.
To evaluate a Vector field at a point, use the evalVF command.
The options arguments primarily control plot options.
output = value or plot
This option controls the return value of the command.
* output = value returns the Vector field object. Plot options are ignored if output = value. This is the default value.
* output = plot returns a field plot of the vector field.
fieldoptions = list
A list of plot options for plotting the field plot. 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.
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.
Examples
Note the overbars on the basis vectors.
The command to create the plot from the Plotting Guide is
The flux computation above can be visualized using the following command.
See Also
attributes, Student[VectorCalculus], Student[VectorCalculus][BasisFormat], Student[VectorCalculus][Coordinates], Student[VectorCalculus][Curl], Student[VectorCalculus][evalVF], Student[VectorCalculus][GetCoordinates], Student[VectorCalculus][MapToBasis], Student[VectorCalculus][SetCoordinates], Student[VectorCalculus][Vector], type/realcons
Download Help Document