NodeMat (class)

File generated according to Generator/ClassesRef/Mesh/NodeMat.csv WARNING! All changes made in this file will be lost!

class NodeMat(coordinate=None, nb_node=0, tag=None, delta=1e-10, init_dict=None)[source]

Bases: pyleecan.Classes.Node.Node

Class to define nodes coordinates and getter.

VERSION = 1
get_coord(node_tags)

Return the coordinates of node(s).

Parameters:
  • self (NodeMat) – an NodeMat object
  • node_tags (np.array) – an array of node tags
Returns:

coord – an array of node coordinates

Return type:

np.array

get_tag
get_group(element)

Define a new NodeMat object based on a set of elements.

Parameters:
  • self (NodeMat) – an NodeMat object
  • element (Element) – an Element object
Returns:

node – a Node object corresponding to Element

Return type:

Node

add_node(coord)

Define a new NodeMat object based on a set of elements.

Parameters:
  • self (NodeMat) – an NodeMat object
  • element (Element) – an Element object
Returns:

node – a Node object corresponding to Element

Return type:

Node

is_exist(new_coord)

Check the existence of a node defined by its coordinates

Parameters:
  • self (NodeMat) – an NodeMat object
  • coord (numpy.array) – coordinate of the node
Returns:

True if the element already exist

Return type:

bool

save(save_path='')

Save the object to the save_path

Parameters:
  • self – A pyleecan object
  • save_path (str) – path to the folder to save the object
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
as_dict()[source]

Convert this objet in a json seriable dict (can be use in __init__)

coordinate

Nodes coordinates

nb_node

Total number of nodes

tag

Node tags

delta

Sensibility for node searching