comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Is there a simple way to plot field lines?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Is there a simple way to plot field lines? [message #35399 is a reply to message #35396] Wed, 28 May 2003 16:29 Go to previous messageGo to previous message
mvukovic is currently offline  mvukovic
Messages: 63
Registered: July 1998
Member
so@cp.dias.ie (Steve) wrote in message news:<178496d6.0305280522.5db923d4@posting.google.com>...
> "Mark Hadfield" <m.hadfield@niwa.co.nz> wrote in message news:<bb12df$qan$1@newsreader.mailgate.org>...
>> "Steve" <so@cp.dias.ie> wrote in message
>> news:178496d6.0305271647.468088fa@posting.google.com...
>>> I would like to plot field lines but there coesn't seem to be an
>>> intrinsic function which can do it. This seems hard to believe, am I
>>> mistaken?
>>
>> What do you mean by "plot field lines". If you have (x,y) coordinates
>> defining your lines, then PLOT them. Or do you want to plot isolines for a
>> scalar field? Or lines in 3D space? Or cows walking along lines in fields?
>
> Ouch. Well I guess I should have been more explicit to. I mean field
> lines which are everywhere tangent to a vector field (2d is fine
> thanks), also known as streamlines for velocity fields. I don't want
> arrows anywhere. Or cows.

This seems to me a problem to which there is no magic bullet. What
you seem to be looking for really, is to obtain a function of your
coordinates, such that contours of that function are the streamlines
from your data.

Another (more defined) approach would be to set-up a PDE for your
streamlines, with the right hand side being derived from your data
(interpolated at the points where the PDE is being solved for)

dx/ds = cos(alpha)
dy/ds = sin(alpha)

where alpha is the angle of the streamline with respect to x and s is
the arclength.

Then you would solve the PDE for some starting point, and follow it to
obtain a streamline. The PDE may be re-cast as on ODE

dx/dy = tan(alpha)

However, this may fail if you have looping streamlines.

Summarizing, this is more of a problem of data analysis and number
crunching than just plotting. But it sure sounds fun!

Mirko
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SOLVED. Re: Function referencing/automatic defintion question.
Next Topic: Re: SOLVED. Re: Function referencing/automatic defintion question.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 20:14:24 PDT 2025

Total time taken to generate the page: 0.46352 seconds