PDEplot options - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim

PDEplot Options


Calling Sequence




Calling Sequence

PDEplot(PDE, inits, srange, options)




first order PDE containing one indeterminate function of n unknowns



list of n+1 expressions or equations specifying the parametric form of an (n-1)-dimensional manifold in n+1 dimensions; initial data



range or ranges of the parameters for the initial data



(optional) equations, described below



See PDEtools[PDEplot] for the main arguments of PDEplot.


Arguments of PDEplot other than the PDE, the initial data, and the range thereof can be given in any order. They should be specified as equations of the form option = value. The following options are supported:
















The dsolve[numeric] options are available, as well as all of the plot3d options except grid, gridstyle, and numpoints.


animate = true, false, only


The solution in general is an n-dimensional hypersurface in (n+1)-space. As this can be hard to visualize for n > 2, the solution can be animated, by setting animate=true. The resulting animation shows a sequence of manifolds which together map out the solution surface. Each of these manifolds can be viewed as a possible initial condition that would give rise to the obtained solution surface; indeed, the given initial condition surface is one of these manifolds (usually the middle one of the sequence, unless the option numsteps has been used).


Setting animate=false will simply display the solution hypersurface, with the initial condition highlighted in black.


If animate=only is given, the entire solution surface will never be displayed; instead, the initial condition surface will be animated alone. The object that is mapped out by the sequence of initial condition manifolds as they progress through the animation can easily be imagined as the solution. Apart from reducing the time and data involved in the animation, this option would also be useful in conjunction with setting basechar=true, as described below. The default is animate=true for n = 2, and animate=only for n > 2.


The number of frames in the animation is the number of integration steps performed. To decrease the number of frames without changing the accuracy, decrease the number of integration steps, and increase the number of iterations. See numsteps, iterations.


basechar = true, false, only


The basechar option indicates whether the base characteristic curves (the evolution of the points of the initial conditions, projected onto the x-y plane) should be plotted. If basechar is set to 'true', then base characteristics will be plotted; setting basechar to 'false' will suppress base characteristic plotting; setting basechar to 'only' will plot the base characteristics and the initial data curve, but will not plot the solution surface. The setting basechar = only cannot be chosen unless the animate option is set to 'false'. The default setting for basechar is 'false'.


color, colour = s_color


Setting color provides a method of color handling for the resulting solution surface. It can take a variety of forms: 1) as a plot color name; 2) as COLOR('HUE',realcons); 3) as COLOR('RGB',realcons,realcons, realcons); 4) as an expression in two variables; 5) as a procedure in two variables; 6) as a three-element list of expressions in two variables; and 7) as a three-element list of procedures in two variables.


In the case of 4) and 5), mesh coordinates (in the plane) are passed to the expression or procedure, and the resulting values are normalized on the range [0,1] and used as 'HUE' values. In the case of 6) and 7), the resulting values are normalized on [0,1] and used as 'RGB' values. Note that 4) and 6) must contain expressions of the two independent variables. This form of color handling can be useful to differentiate various features across the solution surface.


At present this option is only available for PDEs involving an unknown function of two independent variables (that is, n=2). Default surface color is handled by the Maple plotting code.


ic_assumptions = [eqn1,eqn2,...]


For nonlinear equations, the initial conditions of the first order derivatives of the indeterminate function can usually be determined only up to a set of possibilities, each of which defines a different solution hypersurface. As a result, some assumptions must be given regarding the values of the derivatives on the initial condition manifold as functions of its parameters. These can be given as equalities or inequalities involving any of the first order derivatives of the indeterminate function, the function itself, any of its unknowns, and the parameters. Assumptions must be sufficient to differentiate between the possible solutions. If they are insufficient, an error message will display all the possibilities for the initial conditions of the derivatives, one of which should be chosen and included in the ic_assumptions option. See the examples below.


initcolor, initcolour = i_color


Setting initcolor provides color handling for the initial data, inits. It can take one of five forms: 1) as a plot color name; 2) as COLOR('HUE',realcons); 3) as COLOR('RGB',realcons,realcons, realcons); 4) as an expression of the initial data parameter; 5) as a procedure with one argument.


In the case of 4) and 5), values are normalized on [0,1] and applied as 'HUE' values. (See color below.)


At present this option is only available for PDEs involving an unknown function of two independent variables (that is, n=2). Default coloring is handled internally by the Maple plotting code.


iterations = integer


The iterations option indicates the number of points calculated for every point that is stored and plotted. This is useful in gaining a higher accuracy without storing and plotting a large number of mesh points. This option is only applicable to the internal (Runge-Kutta integration) method. The default is 1.


method = n_method


The method option can be set to internal, or to one of the methods specified in dsolve[numeric]. The default is to use the internal, Runge-Kutta, method as this will produce a noticeable speed improvement. It is recommended that dsolve or numeric methods only be used for PDEs requiring high accuracy, or whose characteristics exhibit stiffness.


numchar = integer,[integer,integer,...],[t1=integer,t2=integer,...]


The solution hypersurface is composed of a set of characteristic curves, each of which passes through a distinct point on the initial condition manifold. The number of such points (evenly spaced with respect to each parameter) along each of the ranges of the initial data parameters is indicated by numchar. If a list of equations is given, it must be of type [t1=integer,t2=integer,...], where t1, t2,... are the parameters. The ordering of the parameters is the same as in the parameter range definition (see above). For example, with n=3 (that is, when the initial manifold is a two-dimensional surface in four-space), and with numchar = [10,5], the solution surface would be a set of characteristic curves passing through each point of a 10x5 grid representing the initial surface. The default is 20 for n=2, and approximately 401n1 in each direction otherwise. The minimum is 4.


numsteps = [integer, integer], integer


The numsteps option indicates the number of points plotted along each characteristic curve, in each direction. If only a single integer is given, the characteristic curve is only integrated in the one direction specified by the sign of numsteps. The default is [-10,10].


obsrange = true,false


When obsrange is set to true, integration along a characteristic curve of the surface stops one mesh point after it has passed outside one of the specified ranges. This can be useful in the plotting of functions with asymptotic behavior, or to reduce the number of mesh points that are calculated internally. If false, the whole solution surface will be calculated, but only that portion which falls within the range is displayed. This is useful in case the solution surface goes outside the boundaries of the range at one point and then returns further on. The default value of obsrange is true.


scene = [x-axis,y-axis,z-axis]


The scene option indicates the variables that are to be plotted, and on which axes. Note that one or more of the dependent variables, the independent variables, or the parameter can be selected to be plotted, in any order. The default scene is the first two independent variables on the x and y axes and the dependent variable on the z axis.


stepsize = realcons


The stepsize option specifies the distance along each characteristic curve between calculated points. The default stepsize, 0.25, is also the maximum.


xi = xi_min..xi_max, u or u(x1,...,xn) = u_min..u_max.


Ranges can be specified for those variables which are to be plotted (indicated using the scene option described previously). In general, the range determines the extent of the plot (the plot range) for the given variable.


The default plot range for a variable, say x2, for which a range is not given, is determined by using the maximum and minimum value of that variable (x2) over all the points on the surface which are within the ranges (x1_range, x3_range, u_range) that are given with this option. If no ranges are given, the entire solution surface is shown.






















For more examples, see PDEtools[PDEplot].

See Also