Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Time-independent PDE solution and derived quantities

A `StationaryResults`

object contains the
solution of a PDE and its gradients in a form convenient for plotting and
postprocessing.

A

`StationaryResults`

object contains the solution and its gradient calculated at the nodes of the triangular or tetrahedral mesh, generated by`generateMesh`

.Solution values at the nodes appear in the

`NodalSolution`

property.The three components of the gradient of the solution values at the nodes appear in the

`XGradients`

,`YGradients`

, and`ZGradients`

properties.The array dimensions of

`NodalSolution`

,`XGradients`

,`YGradients`

, and`ZGradients`

enable you to extract solution and gradient values for specified equation indices in a PDE system.

To interpolate the solution or its gradient to a custom grid (for example, specified
by `meshgrid`

), use `interpolateSolution`

or
`evaluateGradient`

.

There are several ways to create a `StationaryResults`

object:

Solve a time-independent problem using the

`solvepde`

function. This function returns a PDE solution as a`StationaryResults`

object. This is the recommended approach.Solve a time-independent problem using the

`assempde`

or`pdenonlin`

function. Then use the`createPDEResults`

function to obtain a`StationaryResults`

object from a PDE solution returned by`assempde`

or`pdenonlin`

. Note that`assempde`

and`pdenonlin`

are legacy functions. They are not recommended for solving PDE problems.

`evaluateCGradient` | Evaluate flux of PDE solution |

`evaluateGradient` | Evaluate gradients of PDE solutions at arbitrary points |

`interpolateSolution` | Interpolate PDE solution to arbitrary points |

`EigenResults`

| `TimeDependentResults`

| `evaluateCGradient`

| `evaluateGradient`

| `interpolateSolution`

| `solvepde`