Oct-15-2019, 11:15 AM
Hi
Pardon my bad english. I am trying to solve a task given to me by my teacher. I have no expiriense using the porgrams whitch my teacher states we should use. I am gratefulll to any help i can get. I dont even know what turtorial-videos to shearch for online.
Here is the task, but i dont know how to share the file. So i am looking for a general method.
In the data.txt file
, you will find data describing a velocity field on a rectangle of size 100x100. For each point in this rectangle, a vector is stored in data.txt. In total, there are 100 * 100 * 2 = 20000 numbers in this file. The data is organized so that the vector belonging to the coordinate (i, j) in the rectangle is in place 100 * j + in the data (this is x coordinate to vector) and space 100 * 100 + 100 * j + i (y coordinate to vector).
With the tool you choose, you must perform the following two tasks:
Task 1:
a) Plot how the currents go in the vector field
b) Plot the speed at each point using a color plot.
c) Plot the divergence at each point using a color plot.
d) Plot the z coordinate of the rotation (ie, curl) at each point using a color plot.
Pardon my bad english. I am trying to solve a task given to me by my teacher. I have no expiriense using the porgrams whitch my teacher states we should use. I am gratefulll to any help i can get. I dont even know what turtorial-videos to shearch for online.
Here is the task, but i dont know how to share the file. So i am looking for a general method.
In the data.txt file
, you will find data describing a velocity field on a rectangle of size 100x100. For each point in this rectangle, a vector is stored in data.txt. In total, there are 100 * 100 * 2 = 20000 numbers in this file. The data is organized so that the vector belonging to the coordinate (i, j) in the rectangle is in place 100 * j + in the data (this is x coordinate to vector) and space 100 * 100 + 100 * j + i (y coordinate to vector).
With the tool you choose, you must perform the following two tasks:
Task 1:
a) Plot how the currents go in the vector field
b) Plot the speed at each point using a color plot.
c) Plot the divergence at each point using a color plot.
d) Plot the z coordinate of the rotation (ie, curl) at each point using a color plot.