PointMat (class)¶
Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Mesh/PointMat
-
class
PointMat
(coordinate=[], nb_pt=0, delta=1e-10, indice=None, init_dict=None, init_str=None)[source]¶ Bases:
pyleecan.Classes._frozen.FrozenClass
Class to define nodes coordinates and getter.
-
VERSION
= 1¶
-
add_point
(coord)¶ Define a new PointMat object based on a set of elements.
- Parameters
self (PointMat) – an PointMat object
element (Element) – an Element object
- Returns
node – a Node object corresponding to Element
- Return type
Node
-
get_coord
(point_tags)¶ Return the coordinates of point(s).
- Parameters
self (PointMat) – an PointMat object
point_tags (np.array) – an array of point tags
- Returns
coord – an array of point coordinates
- Return type
np.array
-
get_group
(element)¶ Define a new PointMat object based on a set of elements.
- Parameters
self (PointMat) – an PointMat object
element (Element) – an Element object
- Returns
node – a Node object corresponding to Element
- Return type
Node
-
is_exist
(new_coord, dim=2)¶ Check the existence of a node defined by its coordinates
- Parameters
self (PointMat) – an PointMat object
coord (ndarray) – coordinate of the node
- Returns
True if the element already exist
- Return type
bool
-
save
(save_path='', is_folder=False)¶ Save the object to the save_path
- Parameters
self – A pyleecan object
save_path (str) – path to the folder to save the object
is_folder (bool) – to split the object in different files: separate simulation machine and materials
-
copy
()¶ Return a copy of the class
-
get_logger
()¶ Get the object logger or its parent’s one
- Parameters
obj – A pyleecan object
- Returns
logger – Pyleecan object dedicated logger
- Return type
logging.Logger
-
property
coordinate
¶ Nodes coordinates
- Type
ndarray
-
property
nb_pt
¶ Total number of nodes
- Type
int
-
property
delta
¶ Sensibility for node searching
- Type
float
-
property
indice
¶ Point indices
- Type
ndarray
-