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
 All Forums
 Origin Forum
 Origin Forum
 How do i make a vectorfield in polar coords??

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
cproef Posted - 06/19/2000 : 7:35:00 PM
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
1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 06/22/2000 : 12:13:00 PM
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).]


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000