ross.Rotor.run_time_response#

Rotor.run_time_response(speed, F, t)#

Calculate the time response.

This function will take a rotor object and calculate its time response given a force and a time.

Available plotting methods:

.plot_1d() .plot_2d() .plot_3d()

Parameters
speedfloat

Rotor speed.

Farray

Force array (needs to have the same number of rows as time array). Each column corresponds to a dof and each row to a time.

tarray

Time array.

Returns
resultsross.TimeResponseResults

For more information on attributes and methods available see: ross.TimeResponseResults

Examples

>>> rotor = rotor_example()
>>> speed = 500.0
>>> size = 1000
>>> node = 3
>>> probe1 = (3, 0)
>>> t = np.linspace(0, 10, size)
>>> F = np.zeros((size, rotor.ndof))
>>> F[:, 4 * node] = 10 * np.cos(2 * t)
>>> F[:, 4 * node + 1] = 10 * np.sin(2 * t)
>>> response = rotor.run_time_response(speed, F, t)
>>> dof = 13
>>> response.yout[:, dof] 
array([ 0.00000000e+00,  1.86686693e-07,  8.39130663e-07, ...
>>> # plot time response for a given probe:
>>> fig1 = response.plot_1d(probe=[probe1])
>>> # plot orbit response - plotting 2D nodal orbit:
>>> fig2 = response.plot_2d(node=node)
>>> # plot orbit response - plotting 3D orbits - full rotor model:
>>> fig3 = response.plot_3d()