Message Boards Message Boards

3 Replies
2 Total Likes
View groups...
Share this post:

VectorPlot or StreamPlot on a simplex

Posted 9 years ago


I want to plot the solution to a system of the form

x'[t] == f[x,y,z,t]

y'[t] == g[x,y,z,t]

z'[t] == h[x,y,z,t]

in a triangular simplex, because x+y+z=1 and x>=0,y>=0 and z>=0.

Any ideas how to do that? I tried Vectorplot3D with a RegionPlot, but the resulting plot is not very compelling.

Thanks a lot for any help on this?


POSTED BY: Clemens Bu
3 Replies

With the package and the code

region = DiscretizeRegion[Triangle[{{0, 0}, {1, 0}, {0, 1}}]];
PlotCurveOnSurface3D[{{x, y, 1 - x - y}, {x, y} \[Element] region},
 {{x, y}, {x, y} \[Element] region}]

you get the attached picture.

POSTED BY: Gianluca Gorni

You can try the free package CurvesGraphics6, available from About half way through the page you will see an example of stream lines on a surface.

POSTED BY: Gianluca Gorni
Posted 9 years ago

Thanks, Gianluca, I will look into that.

I meant something like in the following graph:

enter image description here


POSTED BY: Clemens Bu
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract