| Author |
Comment/Response |
Polal3is
|
09/24/11 06:16am
Hi everyone,
I'm encountering the following issue:
I'm solving using NDSolve a vectorial equation which consist in the space and time evolution of a 3 component vector "V" within some field. I get the numerical solution for my 3 components:
V=( Vx(x,y,t),Vy(x,y,t),Vz(x,y,t) ) (they don't depend on the z space cooordinate). The time evolution is provided by the Manipulate function over "t".
I can plot using plot3D each component separately without any problem and the result shows that the solution is OK. But I'm dealing with a vector field that I need to render using VectorPlot3D. And what I get is an empty box for any value of "t". Is it impossible to Vectorplot3D an interpolated function or am I doing something wrong ? Here are the commands I use ("s" is my numerical solution):
vx[x_,y_,t_]:=Evaluate[Vx[x,y,t]/.s]
vy[x_,y_,t_]:=Evaluate[Vy[x,y,t]/.s]
vz[x_,y_,t_]:=Evaluate[Vz[x,y,t]/.s]
Manipulate[VectorPlot3D[{vx[x,y,t],vy[x,y,t],vz[x,y,t]},{x,-10,10},{y,-10,10},{z,-10,10}],{t,0,10,0.1}]
Thanks a lot for your possible answers.
URL: , |
|