On 03/27/2013 08:03 PM, Jotace wrote: > Hi all, > > I'm teaching vector calculus, and I would like to show the meaning of > the curl to my students. So here is what I want to do: > > 1. Plot a 2d-vector field F = (P,Q) (I know ho to do this) > 2. Compute the k-component of this field (o.k) > 3. Plot part of the 3d-vector field curl(P,Q,0), more precisely, only > the vectors that have starting points in the z=0 plane. > > It all need to be in a 3d-plot, so I would like to know if one can embed > the plot of 2d field in a 3d plot. > Of course I could plot the vectors "manually", tnat is computing them > point by point, but this seems highly inelegant and cumbersome. Any idea > someone?
Not actually answering your question. But since the curl of a 2D vector field has only one non-zero component, another way you could illustrate the curl is by coloring the plane - maybe white means the curl is zero, and red means the curl is positive (counterclockwise), and blue means the curl is negative (clockwise). I have a C program which solves the Navier-Stokes equation in 2D, and shows the curl in this manner. And if you watch it in real time, you can see that the curl of the flow is transported by the flow. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
