Group Abstract Group Abstract

Message Boards Message Boards

Plot vector functions in different coordinate systems?

3 Replies

Yes,

VectorPlot[Evaluate[
    TransformedField["Polar" -> "Cartesian", {0, 1}, {r, \[Theta]} -> {x, y}]
  ], {x, -3, 3}, {y, -3, 3}]
POSTED BY: Udo Krause

You may use TransformedField to convert to Cartesian coordinates first, then use VectorPlot in the plane (or VectorPlot3D in 3-space) on the resulting field.

POSTED BY: Murray Eisenberg

Seems not to be available directly by the usage of options to VectorPlot[]. But if e.g. there are the tangential vectors to a centered circle to be plotted

VectorPlot[{-y, x}/Norm[{x, y}], {x, -3, 3}, {y, -3, 3}]

this is in cylindrical co-ordinates {0, 1} or with other words AngleVector[ $\phi$] or with even other words

VectorPlot[AngleVector[ArcTan[-y, x]], {x, -3, 
POSTED BY: Udo Krause
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard