The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 How do i make a vectorfield in polar coords??
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

cproef

1 Posts

Posted - 06/19/2000 :  7:35:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How do i make a vectorfield in polar coords??
Actually i want to plot the fieldlines of a magnet and i have the radial and tangential components of the field on several angles and distances from the source magnet.
Any help would be appreciated

greg

USA
1379 Posts

Posted - 06/22/2000 :  12:13:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Origin 6.0 supports two kinds of Vector graphs:

  1. XYAM - X, Y, Angle and Magnitude
  2. XYXY - X, Y, X and Y

The first is useful where you want to keep the angles absolute regardless of the physical dimensions of your graph. The second type will fix the 'head' and 'tail' of the vectors in XY space - angles will change as the graph dimensions are changed.

It sounds like what you need to do is transform your polar coordinates (radius, angle) into cartesian coordinates (X, Y). Recall that the equations for this are:

X = radius * COS(angle)

Y = radius * SIN(angle)

You will need to create new columns and set their values with the Set Column Values option in the Column menu. You can use the col( ) function to do this:

Col(NewX) = col(radius)*cos(col(angle))

Col(NewY) = col(radius)*sin(col(angle))

If your data is designed for XYXY (you have Radius,Angle,Radius,Angle data), you will need to do the transform for each pair.

Your worksheet should be organized as:

NewX(X) NewY(Y) Angle(Y) Magnitude(Y)

or

NewX(X1) NewY(Y1) NewX2(X2) NewY2(Y2)

For technical questions, try emailing Tech Support directly.



Note that Origin supports Radians (the default), Degrees and Gradians for angular units. Select the appropriate system in Tools : Options : Numeric Format.

[This message has been edited by Greg (edited 06-22-2000).]

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000