manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.13.8 Pipe

Method on mglGraph (C++, Python): void Pipe (const mglData &x, const mglData &y, const mglData &ax, const mglData &ay, const char *sch="", float r0=0.05, int num=5, bool central=true, float zVal=NAN)
C function: void mgl_pipe_xy (HMGL gr, const HMDT x, const HMDT y, const HMDT ax, const HMDT ay, const char *sch, float r0, int num, int central, float zVal)

The function draws flow pipes for the plane vector field {ax, ay} parametrically depending on coordinates x, y at level z = zVal. Number of pipes is proportional to num. Parameter central sets the pipe start from center (if true) or only from edges (if false). From v.1.11 it is ignored and always equal to (num>0). The color of lines is proportional to \sqrtax^2+ay^2. Warm color corresponds to normal flow (like attractor). Cold one corresponds to inverse flow (like source). String sch sets the color scheme. Previous color scheme is used by default. Parameter r0 set the base pipe radius. If r0<0 then pipe radius is inverse proportional to amplitude. The size of ax and ay must be equal. The minor dimensions of arrays x, y and ax must be equal too. Arrays x and y can be vectors (not matrices as ax). The vector field is plotted for each z slice of ax, ay. See also Flow, VectC, Vect. See section Pipe sample, for sample code and picture.

Method on mglGraph (C++, Python): void Pipe (const mglData &ax, const mglData &ay, const char *sch="", float r0=0.05, int num=5, bool central=true, float zVal=NAN)
C function: void mgl_pipe_2d (HMGL gr, const HMDT ax, const HMDT ay, const char *sch, float r0, int num, int central, float zVal)

The same as previous with x, y equidistantly distributed in interval [Min, Max].

Method on mglGraph (C++, Python): void Pipe (const mglData &x, const mglData &y, const mglData &z, const mglData &ax, const mglData &ay, const mglData &az, const char *sch="", float r0=0.05, int num=3, bool central=true)
C function: void mgl_pipe_xyz (HMGL gr, const HMDT x, const HMDT y, const HMDT z, const HMDT ax, const HMDT ay, const HMDT az, const char *sch, float r0, int num, int central)

This is 3D version of the first functions. Here arrays ax, ay, az must be 3-ranged tensors with equal sizes and the color of line is proportional to \sqrtax^2+ay^2+az^2. See section Pipe 3D sample, for sample code and picture.

Method on mglGraph (C++, Python): void Pipe (const mglData &ax, const mglData &ay, const mglData &az, const char *sch="", float r0=0.05, int num=3, bool central=true)
C function: void mgl_pipe_3d (HMGL gr, const HMDT ax, const HMDT ay, const HMDT az, const char *sch, float r0, int num, int central)

The same as previous with x, y equidistantly distributed in interval [Min, Max].


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]
© manpagez.com 2000-2025
Individual documents may contain additional copyright information.