ospgrid.grid.Node#

class Node(idx, label, x, y)[source]#

Bases: object

Object representing a node of the grid

Initialize the node

Parameters
  • idx (int) – The index of the node.

  • label (str) – A user-friendly label for the node.

  • x (float) – The x-axis coordinate of the node.

  • y (float) – The y-axis coordinate of the node.

Return type

None.

Methods

set_load

Sets the externally-applied load applied to the node.

set_support

Sets the support type for a node

set_load(Fz=0, Mx=0, My=0)[source]#

Sets the externally-applied load applied to the node.

Parameters
  • Fz (float, optional) – Vertical load. The default is 0.

  • Mx (float, optional) – Moment about the x-axis. The default is 0.

  • My (float, optional) – Moment about the y-axis. The default is 0.

Return type

None.

set_support(support)[source]#

Sets the support type for a node

Parameters

support (Support) – The support type, a ospgrid.grid.Support object

Return type

None.