Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Solution Visualization and Interpolation

Plot, animate, and interpolate PDE solutions and their gradients

Access solutions and their gradients at the mesh nodes or interpolate them to arbitrary points within the domain. Visualize solutions and gradients by creating surface, contour, and arrow (quiver) plots with or without mesh display. For command-line plotting, see Plot 2-D Solutions and Their Gradients and Plot 3-D Solutions and Their Gradients.

For 2-D PDEs, you also can use the PDE app. The app lets you plot three different solution properties at the same time, using color, height, and vector field plots. You can create plots in the app itself or in separate figures. See Plot the Solution in the PDE App.

You also can create an animated movie of the solution. See Wave Equation.

Functions

evaluateGradient Evaluate gradients of PDE solutions at arbitrary points
evaluateCGradient Evaluate flux of PDE solution
interpolateSolution Interpolate PDE solution to arbitrary points
pdeplot Plot solution in 2-D geometry
pdeplot3D Plot 3-D solution or surface mesh
createPDEResults Create solution object
evaluate Interpolate data to selected locations
pdecont Shorthand command for contour plot
pdecgrad Flux of PDE solution
pdegrad Gradient of PDE solution
pdesurf Shorthand command for surface plot

Using Objects

EigenResults Contain PDE eigenvalue solution and derived quantities
StationaryResults Contain time-independent PDE solution and derived quantities
TimeDependentResults Contain time-dependent PDE solution and derived quantities
pdeInterpolant Interpolant for nodal data to selected locations

Topics

Programmatic Workflow

Plot 2-D Solutions and Their Gradients

Visualize a 2-D PDE solution and its gradient at nodal and arbitrary locations.

Plot 3-D Solutions and Their Gradients

Visualize a 3-D PDE solution and its gradient at nodal and arbitrary locations.

Dimensions of Solutions, Gradients, and Fluxes

Dimensions of stationary, time-dependent, and eigenvalue results at mesh nodes and arbitrary locations.

PDE App Workflow

Plot the Solution in the PDE App

Interactively plot the solution of a 2-D PDE or other physical properties calculated using the solution.

Was this topic helpful?