POV-Ray : Newsgroups : povray.newusers : How to make streamlines Server Time
26 Nov 2024 12:20:37 EST (-0500)
  How to make streamlines (Message 1 to 3 of 3)  
From: karla
Subject: How to make streamlines
Date: 25 Jun 2004 12:00:01
Message: <web.40dc4b9ed18daaf0100aded90@news.povray.org>
Hi,
I wanted to ask if anyone knows how to create streamlines.  I am visualizing
particles in a box that have a velocity. what I want to do is be able to
create a streamline or an arrow that origines in the particle and points
toward the {x,y,x} that I specify.
I would appreciate if anyone can help
thank you

karla


Post a reply to this message

From: JWV
Subject: Re: How to make streamlines
Date: 25 Jun 2004 15:25:41
Message: <40dc7c35$1@news.povray.org>
Hi Karla,

you could try it like this:

cylinder{<point of particle>, <point ofparticle>+<direction>*velocity,
radius}

This would create a cylinder starting at the location of the particle, and
pointing in the specified direction.

Is this what you mean?

Greets,
JWV


"karla" <kar### [at] hotmailcom> wrote in message
news:web.40dc4b9ed18daaf0100aded90@news.povray.org...
> Hi,
> I wanted to ask if anyone knows how to create streamlines.  I am
visualizing
> particles in a box that have a velocity. what I want to do is be able to
> create a streamline or an arrow that origines in the particle and points
> toward the {x,y,x} that I specify.
> I would appreciate if anyone can help
> thank you
>
> karla
>
>


Post a reply to this message

From: Alain
Subject: Re: How to make streamlines
Date: 25 Jun 2004 15:42:41
Message: <40dc8031$1@news.povray.org>
karla nous apporta ses lumieres ainsi en ce 25/06/2004 11:58... :

>Hi,
>I wanted to ask if anyone knows how to create streamlines.  I am visualizing
>particles in a box that have a velocity. what I want to do is be able to
>create a streamline or an arrow that origines in the particle and points
>toward the {x,y,x} that I specify.
>I would appreciate if anyone can help
>thank you
>
>karla
>
>
>  
>
If your particles are suposed to move in a traight line, you can use the 
following:
union{
    object{"your particle"translate<Px,Py,Pz>}
    cylinder{<Px,Py,Pz>,<X,Y,Z>,"particle radius" hollow pigment{rgbt 1}
       interior{media
            {emission 1//if you want your trails to "glow"
             scattering 1//to diffuse light like some fog
             density{rgb 1}// adjust upward if to faint, down if to thick
             }//media
          }//interior
       }//cylinder
    }//union

If your particles are suposed to travel in a slight curve, use a torus 
section instead of the cylinder. Major radius will be the trajectory 
radius, it's minor radius is the particle radius. It's placement is more 
tricky.
You could also use a sphere_sweep, it enable you to have some twisty 
trajectories.

Alain


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.