What makes this model so slow?

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: What makes this model so slow?

Post by thomas-neemann »

chrisb wrote: Sat Apr 01, 2023 11:51 am ...
that's right, it's just meant to show a quick (non-parametric) alternative
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
user1234
Veteran
Posts: 3345
Joined: Mon Jul 11, 2016 5:08 pm

Re: What makes this model so slow?

Post by user1234 »

thomas-neemann wrote: Sat Apr 01, 2023 11:54 am that's right, it's just meant to show a quick (non-parametric) alternative
Spreading your factical wrong opinion around, to work unparametric in a parametric CAD, does not help, it just confuses new users.

edit: comma
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: What makes this model so slow?

Post by thomas-neemann »

user1234 wrote: Sat Apr 01, 2023 12:06 pm ...
if @euphi77 wishes, i can try to rebuild his model in partdesign in this quick method
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: What makes this model so slow?

Post by chrisb »

One of the show stoppers is "Pocket - Counterpart001":
When I remove it, the recompute time sinks from 100s to 2. The problem seems to come from the (some?) tangents. I replaced some of them with a 1° angle and it works well now. Further investigation should include:

- is it really the tangent
- how small can the angle be (now 1°)
I attach the file 2.FCStd; its name comes from teh time to recompute.
Attachments
2.FCStd
(280.08 KiB) Downloaded 4 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
bambuko
Veteran
Posts: 2167
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: What makes this model so slow?

Post by bambuko »

chrisb wrote: Sat Apr 01, 2023 12:49 pm One of the show stoppers is "Pocket - Counterpart001":
indeed...

There is malformed constraint(14) in Sketch027

deleting constraint(14) moves the issue to Sketch030 which shows overconstrained (9,10)

deleting (9,10) moves the issue to Sketch-Counterpart which shows malformed constraints(73)

and it carries on :o :?
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
euphi77
Posts: 13
Joined: Sat Dec 02, 2017 9:45 am

Re: What makes this model so slow?

Post by euphi77 »

imm wrote: Sat Apr 01, 2023 11:39 am 1. Turn off 'Boden002' Body. (space bar to hide)
2. Expand Deckel Body.
3. Go to Part Workbench.
4. Select Aussenform in your Model tree. Go to Part | Check Geometry. It will check OK.
5. Work your way down through the other objects. You start to see problems at Box - akku.

The problems relate to the way you are using datum planes, especially the definition of their 'support'.

By linking the datum plane support to faces in your model you are bound to have issues with TNP.

To avoid this create datum planes that are not linked to any object at the support level. You can still change their placement using formulas.
As shown below.
Thanks for taking your time. Removing the unecessary datum plane and attaching the "Height T-RGB" datum plane to XY_Plane speeds up things again. It still takes some time, but at least it's usable again :)

I will also have a look at the "Counterpart" Sketch later this afternoon (as stated in other posts that the sketch solves very slowly).


What I still don't get is why recomputing took so long (and still takes ~ 10 seconds) even if I change features that are "last". All the previous features/sketches don't need a recompute?
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: What makes this model so slow?

Post by GeneFC »

There are several "holes" that are threaded. Unless you intend to use the model file directly for some sort of CAM operation (3D printing, milling, etc) it is faster to leave the threads out.

Gene
User avatar
Shalmeneser
Veteran
Posts: 9475
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: What makes this model so slow?

Post by Shalmeneser »

:idea:
Attachments
TRGB-Handlebar-FL_SHALM2.FCStd
(995.61 KiB) Downloaded 6 times
Capture d’écran 2023-04-01 164648.jpg
Capture d’écran 2023-04-01 164648.jpg (85.7 KiB) Viewed 325 times
user1234
Veteran
Posts: 3345
Joined: Mon Jul 11, 2016 5:08 pm

Re: What makes this model so slow?

Post by user1234 »

It is slow on Body Deckel on Pocket014. There is a Pocket in a seam. Per se not bad, but the seam is invalid. It is created due Pocket - Schalterbohrung. Could be a OCCT bug, but this must be verified a MWE.
2023-04-01_17-07.png
2023-04-01_17-07.png (199.8 KiB) Viewed 307 times



The second slowdown comes from Pad - Ausparung Gegenpart. From them the Shapebinder imported shape, that pad gets almost co-tangential, known for that it can take long and can fail (as other suggested, there are better and faster ways to model it).

2023-04-01_17-08.png
2023-04-01_17-08.png (166.82 KiB) Viewed 307 times



Greetings
user1234
Post Reply