pde_elliptic (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info Download Help (Windows Only)

Owning Class: pde

Requires: MathScript RT Module

Syntax

z = pde_elliptic(top, right, bottom, left, function, range, n)

Legacy Name: pdeelliptic

Description

Uses four boundary conditions and a defining function to solve a Poisson equation over a square.

Examples

Inputs

Name Description
top Specifies the top boundary condition. top is a string that represents a 1D function of one variable.
right Specifies the right boundary condition. right is a string that represents a 1D function of one variable.
bottom Specifies the bottom boundary condition. bottom is a string that represents a 1D function of one variable.
left Specifies the left boundary condition. left is a string that represents a 1D function of one variable.
function Specifies a function that defines the heat equation. function is defined over the entire square and depends on two variables. function is a string that represents a 2D function.
range Specifies the location of the square. range is a two-element vector [a, b] where a and b are real numbers and a must be less than b.
n Specifies the number of grid-points for each of the two axes.

Outputs

Name Description
z Returns a matrix of real numbers that approximates the solution of the PDE for all grid points.

Details

The following table lists the support characteristics of this function.

 Supported in the LabVIEW Run-Time Engine No Supported on RT targets Yes Suitable for bounded execution times on RT Not characterized

Examples

Z = pde_elliptic('sin(pi*x)', '0', 'sin(2*pi*x)', '0', '10*cos(s)+t^2', [0, 2], 256);
contouris(Z)