Question: Graph a displacement over a domain

Hi all

I have a question

I have a rectangle as follows:

        with(plottools); plot([[0, 0], [0, -1], [2, -1], [2, 1], [0, 1], [0, 0]], thickness = 3); 

 Also, I have a two displacement components  over any side of the rectangle  

        u(x) =0. 01 x;   v(y) = 0.02 y.  


(u(y)=0.01y and v(x)=0.02 x)    where  x=0..2 and y=-1..1.

Where u and v are the displacement components in x and y directions respectively.

I want to graph this two displacement components at any side of the rectangle.

Please Wait...