Entities¶
Defines entities used in the project
This file is a part of the coursework module Personal Programming Project (PPP) in M.Sc. Computational Materials Science, Technische Universität Bergakademie Freiberg.
This file is a part of the project Modeling of radiative heat-exchange using finite element method
This file defines fundamental entities that are used across the model.
- class entities.Element(number: int, typ: int, n_tags: int, tags: list, nodes: list)¶
Bases:
objectClass to represent element entity.
- Parameters:
number (int) – Number to be assigned to the element.
typ (int) – Type to be assigned to the element.
n_tags (int) – Number of tags of the element.
tags (list) – Tags of the element.
nodes (list) – Connectivity of the elements.
- number¶
Non-zero number indicating the number assigned to an element.
- Type:
int
- nodesArray¶
Array consisting of tags of the nodes that belong to the element.
- Type:
numpy.array
- elemType¶
Non-zero integer representing the type of the element as defined by GMSH documentation.
- Type:
int
- property connectivity: array¶
Node tags present in the element.
- property elemType: int¶
Type of the element as given in the mesh file.
- property number: int¶
Number assigned to the element as given in mesh file.
- property physicalGroup: int¶
Describes which group the element belongs to.
- class entities.Node(tag: int, coordinates: list)¶
Bases:
objectClass to represent Node entity.
- Parameters:
tag (int) – Tag to be given to the node.
coordinates (list) – Coordinates to be assigned to the node entity.
- tag¶
Tag given to the node.
- Type:
int
- coordinates¶
Coordinates of the node in [x y z] form in a cartesian coordinate system.
- Type:
numpy.array
- property coordinates: array¶
Coordinates of the node.
- property tag: int¶
Tag of a node as given in the mesh file.