Understanding some unfamiliar words

  • Context: Undergrad 
  • Thread starter Thread starter mr.tea
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around understanding the concept of node numbers in the context of a Python project involving the representation of triangular meshes. Participants explore the structure of input matrices that include node coordinates and element definitions, aiming to clarify the meaning and organization of these data points.

Discussion Character

  • Homework-related
  • Technical explanation
  • Exploratory

Main Points Raised

  • Thomas expresses confusion about the term "node numbers" and seeks clarification on how they are numbered and what they represent in the context of his project.
  • Some participants explain that nodes are points where the vertices of triangles meet, and node numbers serve as identifiers for these points.
  • One participant notes that the files mentioned contain a specific number of coordinates and suggests that the first number in the element file identifies the corresponding node in the coordinate file.
  • Another participant points out discrepancies in the file names and questions the meaning of the numbers in the element file, suggesting that contacting the instructor may be beneficial for clarification.
  • Thomas later provides a detailed description of the structure of the data files, including the arrangement of coordinates and the representation of triangles using node numbers.

Areas of Agreement / Disagreement

Participants generally agree on the basic definitions of nodes and node numbers, but there remains uncertainty regarding the specific content and format of the provided data files. No consensus is reached on the interpretation of the numbers in the element file.

Contextual Notes

There are limitations in understanding due to the format of the data files, which are described as difficult to read. The discussion also highlights a lack of clarity regarding the exact meaning of the numbers in the element file, which may depend on the original arrangement of the data.

mr.tea
Messages
101
Reaction score
12
Hi,

I have a python project to do that related to building a mesh class that represents triangles.
(I am a bachelor student of mathematics in my first year, so all this material is pretty new to me)

I should get as an input two matrices:
*one which represents the coordinates of the nodes.
*one which represents the elements(triangles) using the node numbers.

My problem is that I really don't know what it is node numbers. How do they numbered?

I have attached the file of the project
I really can't start doing it without understanding those words and what do the numbers in the matrices represent.

Thank you,
Thomas

Screenshot from 2015-12-24 18:12:56.png
Screenshot from 2015-12-24 18:13:06.png
Screenshot from 2015-12-24 18:13:16.png
 
Physics news on Phys.org
mr.tea said:
I should get as an input two matrices:
*one which represents the coordinates of the nodes.
*one which represents the elements(triangles) using the node numbers.

My problem is that I really don't know what it is node numbers. How do they numbered?
The nodes are the points at which the vertex points of the triangles meet, I believe. The node numbers are just a way of numbering the nodes. Take a look at the files that are mentioned in your problem. The first pair of numbers in coord1.txt should give the coordinates of a node. The first number in elementnode1.txt should identify the first node that is listed in coord1.txt.
 
  • Like
Likes   Reactions: mr.tea
Mark44 said:
The nodes are the points at which the vertex points of the triangles meet, I believe. The node numbers are just a way of numbering the nodes. Take a look at the files that are mentioned in your problem. The first pair of numbers in coord1.txt should give the coordinates of a node. The first number in elementnode1.txt should identify the first node that is listed in coord1.txt.

Thank you for the answer.
I think I should have uploaded the files because, it seems reasonable for the nodes coordinate, but there are too many numbers in the numbers, it doesn't make sense at all (for me at least), according to what it should be.

Thank you.
 

Attachments

In your post you showed the files as coord1.txt and elementnode1.txt, which are slightly different from the ones you attached. Are you able to open the files mentioned in your problem?

In the files you attached, I think that coord1_1.txt contains 42 numbers, which would be the coordinates of 21 points. In the other file, elementnode1_1.txt, there are 84 numbers, but I have no idea what they mean. All of the numbers in that file could have been stored as integers, but whoever made that file chose to not do so..

I think your best course of action is to contact your instructor to get an explanation of what the information in the elementnode files means.
 
mr.tea said:
Hi,

I have a python project to do that related to building a mesh class that represents triangles.
(I am a bachelor student of mathematics in my first year, so all this material is pretty new to me)

I should get as an input two matrices:
*one which represents the coordinates of the nodes.
*one which represents the elements(triangles) using the node numbers.

My problem is that I really don't know what it is node numbers. How do they numbered?

I have attached the file of the project
I really can't start doing it without understanding those words and what do the numbers in the matrices represent.

Thank you,
Thomas

View attachment 93638 View attachment 93639 View attachment 93640
This is a picture of a simple region which has been divided into triangles:

simple_mesh.png

There are three triangular elements: e1, e2, e3
There are five nodes: n1, n2, n3, n4, n5

Since this is a two-dimensional region, there will be two numbers used to specifiy each nodal coordinate (x,y)

For instance:

Code:
Node     x    y
   1     x1  y1
   2     x2  y2
   3     x3  y3
   4     x4  y4
   5     x5  y5

The elements can be described using just the node numbers, so that you don't need to repeat using the actual coordinates:

Code:
Element    Node 1   Node 2  Node 3
   1          1        3       4
   2          1        4       2
   3          2        4       5

By setting up data tables, when the program needs access to information about element 1, it sees a list of three node numbers, each of which in turn can be accessed to give the coordinates of the nodes for that element to use in subsequent calculations. This keeps storage for the description of a region to a minimum.

Since there will be a discrete number of nodes and elements, there's no need to use floating point numbers to access them. Only the coordinate values need to be floating point.

Your data files are difficult to read because all the data is written onto one long line of text. This might be easy for a computer program to read, but it's hard for a human to interpret, unless one knows how the data were originally arranged and written to the file.
 
  • Like
Likes   Reactions: mr.tea
Thank you SteamKing. That makes sense now.

Merry Christmas! :)

Thomas
 
The file 'coord1_1.txt' contains 2 lines and 21 columns. The first line contains all the x-coordinates and the second line contains all the y-coordinates. There are 21 columns, representing 21 points. In the file 'elementnode1_1.txt', the connectivity of the triangles are described. This file contains 3 lines and 28 columns. Each column represents a triangle and the number refers to the columns in 'coord1_1.txt'.

The first column in elementnode1_1.txt says:
5
6
18

So this triangle is the triangle (-0.866, 0.5), (-0.5,-0.866),(-0.25,-0.433)
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
Replies
15
Views
3K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K