필터 지우기
필터 지우기

Selective assembly of machined parts based on requisite clearance and interference fits

조회 수: 4 (최근 30일)
Hello friends,
I need to select pairwise parts based on fits. Shaft A can be paired with Hole B only if there is a clearance of 20 to 30 microns in between them. I have 10 nos each of Shaft A and Hole B which are to be paired with each other according to this criterion. All the shafts and holes have unique identification numbers like A,B,C...The program I need to write should give me the identification no of the pairs of holes and shafts pairwise as an output. This is the first step. In the second step the Hole B is to be paired with Part C based on another dimension where an interference fit of say 30-40 microns is desired. Finally the program should give me an output of combinations like ShaftA-HoleD-PartF as one possible combination. As an input to the program I shall feed the part identification nos of the shafts, holes and parts and their sizes as a coloumn vector. Thank you for your support.
  댓글 수: 9
dpb
dpb 2020년 7월 18일
Dear Sir,
At the end we need to match as many triplets as we possibly can fulfilling the criteria.
There are no penalties/bonus for doing that. Is it possible to include a penalty or bonus in order to make the code more robust? That would be a good learning experience though not strictly essential for this case per se.
Yes coloumn 2 is always greater than or equal to coloumn 4.
Unused pairs will be replaced/reworked at the end of the exercise.
Thanks a lot for your perseverance.
Regards,
Subrata
[MOVED TO COMMENT -- DPB]
dpb
dpb 2020년 7월 18일
편집: dpb 2020년 7월 18일
OK. Gotta' go to the field now, but look at it this way...with that as the limit without the previous constraint, think of it like this--
If you sort Part 1 and 2 sizes in descending order, if first Part 1 (largest now, remember) is too large to match up with the largest of Part 2, then it certainly won't match with any of the rest. That throws it out entirely of this lot. That's the situation here with this data set with "E".
So, then you are left with starting to find match for second-largest--it may as well match with largest of Part 2 (presuming in spec) and just go from there.
With this criterion, there's no need for any comparison of one to all the rest, just match 'em up making sure they are within tolerances. Can do that in one pass in a loop and probably can be vectorized to not even need to code the loop altho I've not thought that out entirely as yet.
Then, when you have those pairs, resort the Part 2 and Part 3 dimensions and do same thing with whatever is that criterion limit. If there's no more constraint than simply the difference in dimension, then the same logic works.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by