Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

curl (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the vector class.

Syntax

[curlz, cav] = curl(dx, dy, Fx, Fy)

Description

Computes the curl and the curl angular velocity of a two-dimensional vector field.

Details

Examples

Inputs

Name Description
dx Specifies the spacing between points along the x-axis, or between values of the second dimension in a 2D array. dx is an array of double-precision, floating-point numbers. The default is 1.
dy Specifies the spacing between points along the y-axis, or between values of the first dimension in a 2D array. dy is an array of double-precision, floating-point numbers. The default is 1.
Fx Specifies the x-components of a two-dimensional vector field. Fx is a 2D array of double-precision, floating-point numbers.
Fy Specifies the y-components of a two-dimensional vector field. Fy is a 2D array of double-precision, floating-point numbers and must be the same size as Fx.

Outputs

Name Description
curlz Returns the z-components of the curl of the vector field. curlz is of the same dimension and data type as Fx.
cav Returns the curl angular velocity of the vector field. cav is of the same dimension and data type as Fx.

Details

You can specify the spacing between the points of the curl in two ways. If dx or dy contains only one element, the spacing between two consecutive points in the corresponding axis is constant. If dx or dy contains more than one element, the values of the elements specify the coordinates of the points in the corresponding axis. The length of dx or dy must therefore conform to the corresponding dimension of the vector field.

Examples

FX = rand(3, 4);
FY = rand(3, 4);
[CURLZ, CAV] = curl(1:4, 1:3, FX, FY);

Related Topics

del2
divergence


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit