File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -936,6 +936,13 @@ def __init__(
936936 f"Driving gear: { driving_gear .module :.4f} , Driven gear: { driven_gear .module :.4f} "
937937 )
938938
939+ if driving_gear .width and driven_gear .width :
940+ if not math .isclose (driving_gear .width , driven_gear .width , rel_tol = 0.05 ):
941+ warn (
942+ "Gear widths must match for proper meshing | "
943+ f"Driving gear: { driving_gear .width :.4f} , Driven gear: { driven_gear .width :.4f} "
944+ )
945+
939946 if gear_mesh_stiffness is None :
940947 if (
941948 type (driving_gear ) == GearElementTVMS
@@ -1052,7 +1059,7 @@ def get_variable_stiffness(self, angular_position):
10521059 alpha_c = self .driving_gear .pr_angles_dict ["start_point" ]
10531060 alpha_a = self .driving_gear .pr_angles_dict ["addendum" ]
10541061
1055- tm_om = 2 * np .pi / self .driven_gear .n_teeth
1062+ tm_om = 2 * np .pi / self .driving_gear .n_teeth
10561063 theta = mod (angular_position , tm_om )
10571064
10581065 d_meshing = (alpha_a - alpha_c ) / cr
You can’t perform that action at this time.
0 commit comments