connecting CCX results to the result pipeline system

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

connecting CCX results to the result pipeline system

Post by uwestoehr »

Up to now a major annoyance was that our default solver CalculiX was not connected to the results pipeline system. As consequence important features like section cuts, measuring result values at certain mesh nodes etc. could only hardly be used because
* one had to create manually a results pipeline on the results object
* then one had to setup the needed filters, functions and colors
* on changing a constraint and/or re-run of the solver, thew whole filter setup was lost and one had to recreate it again -> very frustrating

Now it is connected in a way that should suit most users:
case A: fresh analysis
- a results pipeline object is created. It can be used or not.
- the CCX results dialog works as always. If the pipeline is visible when the dialog was opened, it will be hidden for the time the dialog is open.

case B: existing results
- the existing pipeline will get the data of the solver re-run. So you can just change a constraint, re-run the solver and see directly the different results in the filter of your choice.
- if the mesh object was visible on starting the solver, it will stay visible. So if you decided not to use the pipeline and made it invisible, this setting is kept.

To test this with the next weekly build, here is a simple test case of a cantilever:
https://github.com/FreeCAD/FreeCAD/file ... ceload.zip
Run the analysis, then change the constraint to e.g. 10 N and re-run the solver.
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: connecting CCX results to the result pipeline system

Post by uwestoehr »

If you think the creation of the pipeline could be an issue, I can add an option to the preferences that disables the creation.
I implemented no option yet because in my opinion having a pipeline does not harm, one can just hide it if one does not need it and one maybe wants to use it later.
User avatar
NewJoker
Veteran
Posts: 3021
Joined: Sun Oct 11, 2020 7:49 pm

Re: connecting CCX results to the result pipeline system

Post by NewJoker »

Great, those were probably the biggest inconveniences. Many users were confused by the fact that the default result display doesn’t include a legend and they have to add the result pipeline manually to see the legend. And it was annoying that you had to delete the results before rerunning the analysis.
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: connecting CCX results to the result pipeline system

Post by bernd »

Would you post a link to the commit?
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: connecting CCX results to the result pipeline system

Post by uwestoehr »

bernd wrote: Sat Feb 18, 2023 10:15 pm Would you post a link to the commit?
https://github.com/FreeCAD/FreeCAD/pull/8525
User avatar
johnwang
Veteran
Posts: 1345
Joined: Sun Jan 27, 2019 12:41 am

Re: connecting CCX results to the result pipeline system

Post by johnwang »

NewJoker wrote: Sat Feb 18, 2023 8:02 am the default result display doesn’t include a legend
Would be perfect if there is one.
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: connecting CCX results to the result pipeline system

Post by bernd »

uwestoehr wrote: Sat Feb 18, 2023 11:30 pm
bernd wrote: Sat Feb 18, 2023 10:15 pm Would you post a link to the commit?
https://github.com/FreeCAD/FreeCAD/pull/8525
git commit de95a22eae2b8c
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: connecting CCX results to the result pipeline system

Post by uwestoehr »

bernd wrote: Sun Feb 19, 2023 9:03 am git commit de95a22eae2b8c
What do you mean? Could you test this, is it fine for you?

I always post the PR because there is additional info (in this case a test file) and often also discussions.

Concerning the feature, the pipeline connection does not yet fork for frequency analyses. I must first implement that every result mode get its own pipeline.
din743
Posts: 26
Joined: Sat Sep 22, 2012 8:28 pm

Re: connecting CCX results to the result pipeline system

Post by din743 »

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.31917 (Git)
Build type: Release
Branch: master
Hash: 4639283b459f9ff9093e289908cc003db8745b82
Python 3.10.9, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/Belgium (en_BE)
Installed mods: 
  * 3DfindIT 1.2.0
  * Assembly3 0.11.4
  * boltsfc 2022.11.5
  * fcgear 1.0.0
  * Manipulator 1.4.9
  * QuickMeasure 2022.10.28
  * sheetmetal 0.2.60
Thank you for adding this but I still can't get the results to update automatically if I change a constraint.
If I add a "post pipeline from result" it still doesn't seem to be updated if I change a constraint and i do a recalculation. Should there automatically be a "post pipeline from result" object if I start a new analysis? Should the pipeline object be under an object in the tree (CCX_results?)?
Could someone give a step by step explanation to get the pipeline to update automatically when changing a constraint?
User avatar
NewJoker
Veteran
Posts: 3021
Joined: Sun Oct 11, 2020 7:49 pm

Re: connecting CCX results to the result pipeline system

Post by NewJoker »

@din743 It’s not included in that build. This commit’s number is 31944 while your build’s number is 31917 so it’s older.
Post Reply