55
66import ross as rs
77
8- from ross .units import Q_
9- from ross .materials import Material , steel
10- from ross .gear_element import GearElement
11- from ross .multi_rotor import MultiRotor
12-
138
149@pytest .fixture
1510def multi_rotor ():
@@ -45,26 +40,25 @@ def multi_rotor():
4540 Ip = 6.23 ,
4641 )
4742
48- pressure_angle = rs .Q_ (22.5 , "deg" )
43+ pressure_angle = rs .Q_ (22.5 , "deg" ). to_base_units (). m
4944 base_radius = 0.5086
5045 pitch_diameter = 2 * base_radius / np .cos (pressure_angle )
5146
52- N1 = 328 # Number of teeth of gear 1
47+ N1 = 328
5348 m = 726.4
5449 Id = 56.95
5550 Ip = 113.9
56- width = ( 4 * m ) / ( material . rho * np . pi * ( pitch_diameter ** 2 - d1 [ - 1 ] ** 2 ))
51+
5752 gear1 = rs .GearElement (
5853 n = 4 ,
5954 m = m ,
6055 Id = Id ,
6156 Ip = Ip ,
62- width = width ,
6357 n_teeth = N1 ,
6458 pitch_diameter = pitch_diameter ,
65- pressure_angle = pressure_angle ,
59+ pr_angle = pressure_angle ,
60+ bore_diameter = d1 [- 1 ],
6661 material = material ,
67- helix_angle = 0 ,
6862 )
6963
7064 bearing1 = rs .BearingElement (n = 0 , kxx = 183.9e6 , kyy = 200.4e6 , cxx = 3e3 )
@@ -95,21 +89,19 @@ def multi_rotor():
9589 base_radius = 0.03567
9690 pitch_diameter = 2 * base_radius / np .cos (pressure_angle )
9791
98- N2 = 23 # Number of teeth of gear 2
92+ N2 = 23
9993 m = 5
10094 Id = 0.002
10195 Ip = 0.004
96+
10297 gear2 = rs .GearElement (
10398 n = 0 ,
10499 m = m ,
105100 Id = Id ,
106101 Ip = Ip ,
107- width = width ,
108102 n_teeth = N2 ,
109103 pitch_diameter = pitch_diameter ,
110- pressure_angle = pressure_angle ,
111- material = material ,
112- helix_angle = 0 ,
104+ pr_angle = pressure_angle ,
113105 )
114106
115107 turbine = rs .DiskElement (n = 2 , m = 7.45 , Id = 0.0745 , Ip = 0.149 )
@@ -123,7 +115,7 @@ def multi_rotor():
123115 [bearing3 , bearing4 ],
124116 )
125117
126- return MultiRotor (
118+ return rs . MultiRotor (
127119 rotor1 ,
128120 rotor2 ,
129121 coupled_nodes = (4 , 0 ),
@@ -132,9 +124,9 @@ def multi_rotor():
132124 )
133125
134126
135- def test_multi_rotor (multi_rotor ):
136- assert multi_rotor .contact_ratio == 1.6377334309511224
137- assert multi_rotor .gear_mesh_stiffness == 1918871975.9364796
127+ def test_mesh (multi_rotor ):
128+ assert multi_rotor .mesh . contact_ratio == 1.6377334309511222
129+ assert multi_rotor .mesh . stiffness == 1937234387.18946
138130
139131
140132def test_coupling_matrix_gear (multi_rotor ):
0 commit comments