| Author |
Comment/Response |
Jonny
|
02/20/13 05:31am
I have a cross-section [y,z] complex velocity field in a section that is variable by function H[y]=z.
I would like to have a dynamic system (like Manipulate for example) to change z and have the plot of the velocity at fixed z.
This work in "static" way:
z = -5;
Plot[{Re[v[y, z]],
Im[v[y, z]]}, {y,
y /. Solve[H[y] == z, y, Reals][[1]][[1]],
y /. Solve[H[y] == z, y, Reals][[2]][[1]]},
PlotRange -> {{0, B}, {-0.1, 0.1}}]
How to make it dynamic? the following doesn't work:
Manipulate[Plot[{Re[v[y, z]],
Im[v[y, z]]}, {y,
y /. Solve[H[y] == z, y, Reals][[1]][[1]],
y /. Solve[H[y] == z, y, Reals][[2]][[1]]},
PlotRange -> {{0, B}, {-0.1, 0.1}}],{z,-10,0}]
Thanks
Jonny
URL: , |
|