FeModel

class +AMrotorSIM.+Rotor.+FEMRotor.@FeModel.FeModel(cnfg)

Bases: sphinxcontrib.mat_types.handle

Class that includes the finite element model

See also AMrotorSIM.Rotor AMrotorSIM.Rotor.FEMRotor.Element

name = None

Config-struct

FeModel(cnfg)

Constructor

Parameters

cnfg (struct) – Cnfg_rotor substruct of cnfg-struct

Returns

FeModel object

+AMrotorSIM.+Rotor.+FEMRotor.@FeModel.assemble_fem(self)

Assembles the global system matrices of the rotor

Returns

Global matrices of the rotor system M, D, G, K

+AMrotorSIM.+Rotor.+FEMRotor.@FeModel.check_rigidbody(self)

Checks for the translational rigid body modes by calculating the internal forces f

Returns

Internal force f (0 for rigid bodies)

Return type

vector

+AMrotorSIM.+Rotor.+FEMRotor.@FeModel.create_mesh(self, mesh_opt, Geometry, material)

Creates the mesh based on geometry

Parameters
  • mesh_opt (struct) – Mesh options from Config-file

  • Geometry (object) – Geometry

  • material (object) – Material

Returns

Mesh object

+AMrotorSIM.+Rotor.+FEMRotor.@FeModel.find_node_nr(self, position)

Defines which node is closest to an entered position

Parameters

position (double) – Desired position along z-axis

Returns

Number of closest node to desired position

+AMrotorSIM.+Rotor.+FEMRotor.@FeModel.get_distance_node_desired_position(rotor, desiredPos)

Gets the distance of the closest actual node to the desired node

Parameters
  • rotor (object) – Object of type AMrotorSIM.Rotor.FEMRotor.FeModel

  • desiredPos (vector) – Desired position along z-axis

Returns

Actual position (closest node) and delta distance between desired and actual position [delta,nodePos]

Return type

vector

+AMrotorSIM.+Rotor.+FEMRotor.@FeModel.get_dof_no(rotor, nodeNo)

Gets the numbers of all degrees of freedom, that correspond to the node numbers.

Parameters
  • rotor (object) – Object of type AMrotorSIM.Rotor.FEMRotor.FeModel

  • nodeNo (vector) – Number of the desired node

Returns

All global DoF’s of the entered node numbers

Return type

vector

+AMrotorSIM.+Rotor.+FEMRotor.@FeModel.get_gdof(self, direction, Node, varargin)

Provides the global DoF based on node number and direction

Parameters
  • direction (char) – Direction (‘u_x’,’u_y’,’u_z’,’psi_x’,’psi_y’,’psi_z’)

  • Node (vector(double)) – Number of desired node

  • varargin – Variable input argument (check function)

Returns

Global DoF’s of the entered nodes with the corresponding orientation

Return type

vector

+AMrotorSIM.+Rotor.+FEMRotor.@FeModel.get_mass(self)

Provides the translational m (‘u_x’) and the mass moment of inertia J (‘psi_z’)

Returns

Translational mass and mass moment of inertia [m, J]

Return type

double

+AMrotorSIM.+Rotor.+FEMRotor.@FeModel.get_node_no(rotor, position)

Gets the node number that is closest to a desired position

Parameters
  • rotor (object) – Object of type AMrotorSIM.Rotor.FEMRotor.FeModel

  • position (vector) – Desired position along z-axis

Returns

Number of closest node to desired position

+AMrotorSIM.+Rotor.+FEMRotor.@FeModel.get_node_position(rotor, nodeNo)

Gets the corresponding position to a node number

Parameters
  • rotor (object) – Object of type AMrotorSIM.Rotor.FEMRotor.FeModel

  • nodeNo (vector) – Desired node number

Returns

Position along z-axis of desired node

+AMrotorSIM.+Rotor.+FEMRotor.@FeModel.print(obj)

Displays the object name in the Command Window

Returns

Notification of object name

+AMrotorSIM.+Rotor.+FEMRotor.@FeModel.show_2D(self, varargin)

Plots the geometry over the nodes to compare discretisation with user input geometry

Parameters

varargin – Variable input argument (check function)

Returns

Figure with geometry and nodes

+AMrotorSIM.+Rotor.+FEMRotor.@FeModel.private.linegradient(x_1, y_1, x_2, y_2)

Provides the gradient between two nodes of the geometry in the plane

Parameters
  • x_1 (double) – 1st coordinate of the 1st node

  • y_1 (double) – 2nd coordinate of the 1st node

  • x_2 (double) – 1st coordinate of the 2nd node

  • y_2 (double) – 2nd coordinate of the 2nd node

Returns

Gradient (m) and offset (b)