Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
vector field plots
#1
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Class for Vector no_named_nobody 4 2,548 Oct-06-2019, 03:27 PM
Last Post: no_named_nobody
  Divide a vector Langosmon 1 2,666 May-13-2018, 09:09 AM
Last Post: ThiefOfTime
  Classification by support vector method qwerty 1 2,928 Apr-16-2017, 07:16 PM
Last Post: sparkz_alot
  vector sum of tuples roadrage 7 7,601 Nov-28-2016, 09:54 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020