Skip to content

Bug-in-CAD: sspg_sun Cut-Extrude5 gives an error #35

@singhaman1750

Description

@singhaman1750

Reproduce the bug with the following command:
Motor = U8
gearbox_type = sspg
gear_ratio = 6.4

Terminal Command:

python actOpt.py U8 sspg 6.4

Then go and rebuild the CAD

Reason for the bug:
There is a condition on the Feature: CutExtrude5
= IIF ( ( "Ns" * "module" + 2 * "h_a" ) < ( "motor_output_hole_PCD" - "motor_output_hole_CSK_OD" ) , "suppressed" , "unsuppressed" )

Lets assume:
sun_gear_outermost_dia = ( "Ns" * "module" + 2 * "h_a" )
biggest_possible_sun_gear_dia = ( "motor_output_hole_PCD" - "motor_output_hole_CSK_OD" )

which means that the CutExtrude5 should be suppressed if
sun_gear_outermost_dia < biggest_possible_sun_gear_dia

but in this particular case: Ns=28, module=0.5mm, h_a=0.5mm, motor_output_hole_PCD=13mm, motor_output_hole_CSK_OD=8mm
sun_gear_outermost_dia == biggest_possible_sun_gear_dia

due to which the CutExtrude5 is "unsupressed" but there is no material for this feature to cut into.

Probable Solution:

  1. Make is a "less_than_equal_to_constraint" OR very small "delta" to modify the equation in such a way that the equality case is overlooked

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions