How to use Z88 in FEM?

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!
AhmedER
Posts: 19
Joined: Sun Mar 19, 2017 2:00 pm

How to use Z88 in FEM?

Postby AhmedER » Fri Jul 07, 2017 11:09 pm

How to use Z88 as a solver instead of CalculiX?

After I made the following analysis, I tried FEM->Solver Job, but it isn't working.

OS: Linux Mint 18 Sarah
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11084 (Git)
Build type: None
Branch: master
Hash: fa00b4f06a0c96de57a777d6532467dfd8e5d141
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Attachments
Screenshot from 2017-07-08 01-07-01.png
Screenshot from 2017-07-08 01-07-01.png (152.29 KiB) Viewed 1293 times
Last edited by AhmedER on Sat Jul 08, 2017 1:20 am, edited 2 times in total.
User avatar
Kunda1
Posts: 4814
Joined: Thu Jan 05, 2017 9:03 pm

Re: How to use Z88 in FEM?

Postby Kunda1 » Sat Jul 08, 2017 12:01 am

Please always post your FC version info (Help > About FreeCAD > Copy to clipboard)
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
AhmedER
Posts: 19
Joined: Sun Mar 19, 2017 2:00 pm

Re: How to use Z88 in FEM?

Postby AhmedER » Sat Jul 08, 2017 1:19 am

Kunda1 wrote:
Sat Jul 08, 2017 12:01 am
Please always post your FC version info (Help > About FreeCAD > Copy to clipboard)
Sorry I forgot, I normally remember to add the info.


OS: Linux Mint 18 Sarah
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11084 (Git)
Build type: None
Branch: master
Hash: fa00b4f06a0c96de57a777d6532467dfd8e5d141
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: How to use Z88 in FEM?

Postby NormandC » Sat Jul 08, 2017 2:04 am

AhmedER wrote:
Sat Jul 08, 2017 1:19 am
Version: 0.17.11084 (Git)
You are using an obsolete development version, 425 commits behind the one currently available (0.17.11509). A respectable number of them were in the FEM workbench.

How did you install it? If you installed through the freecad-daily PPA, it must mean that you froze the updates otherwise you would get updates every other day (sometimes daily) or once a week if your system is configured to check for updates weekly.

Also, activate the report view (View --> Panels menu): it will report errors, paste them here.
User avatar
bernd
Posts: 8046
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: How to use Z88 in FEM?

Postby bernd » Sat Jul 08, 2017 5:09 am

have you installed z88 binary? you can get it here https://github.com/LSCAD/Z88OS/tree/master/bin

bernd
User avatar
bernd
Posts: 8046
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: How to use Z88 in FEM?

Postby bernd » Sat Jul 08, 2017 6:01 am

would you post the file?
AhmedER
Posts: 19
Joined: Sun Mar 19, 2017 2:00 pm

Re: How to use Z88 in FEM?

Postby AhmedER » Sat Jul 08, 2017 6:09 am

NormandC wrote:
Sat Jul 08, 2017 2:04 am
AhmedER wrote:
Sat Jul 08, 2017 1:19 am
Version: 0.17.11084 (Git)
You are using an obsolete development version, 425 commits behind the one currently available (0.17.11509). A respectable number of them were in the FEM workbench.
The problem persisted after updating my FreeCAD.

Selecting "FEM->Solver Job Control" doesn't do anything, while choosing "FEM->run Solver Calculations" yield the following error

"
FemConstraintForce has Vertex reference shapes.
FemConstraintForce001 has Vertex reference shapes.
FemConstraintForce002 has Vertex reference shapes.
FEM preferences working dir is not set, the solver working directory is used.
Dir '' doesn't exist and cannot be created.
Dir '/tmp' will be used instead.
FemTools.setup_working_dir() --> self.working_dir = /tmp
True
SolidMaterial has Edge reference shapes.
SolidMaterial has Edge reference shapes.
FemInputWriterZ88 --> self.dir_name --> /tmp
FemInputWriterZ88 --> self.file_name --> /tmp/z88
3
Edge femmesh will be exported as 3D truss element nr 4
{'ISFLAG': '1', 'INTORD': '0', 'INTOS': '0', 'IHFLAG': '0'}
Multiple beamsections for Z88 not yet supported!
/tmp
/tmp
/tmp
Running the Python command 'FEM_SolverRun' failed:
Traceback (most recent call last):
File "/usr/lib/freecad-daily/Mod/Fem/PyGui/_CommandFemSolverRun.py", line 73, in Activated
self.fea.run() # test z88
File "/usr/lib/freecad-daily/Mod/Fem/FemToolsZ88.py", line 133, in run
self.z88_test_run()
File "/usr/lib/freecad-daily/Mod/Fem/FemToolsZ88.py", line 141, in z88_test_run
z88_testrun_binary = self.z88_binary + " -t -choly"

'FemToolsZ88' object has no attribute 'z88_binary'
"



OS: Linux Mint 18 Sarah
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11509 (Git)
Build type: None
Branch: master
Hash: fdedf8fb4d36043145e8498244177aae16c806a5
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
User avatar
bernd
Posts: 8046
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: How to use Z88 in FEM?

Postby bernd » Sat Jul 08, 2017 7:15 am

you need to set the path to your z88r binary file in preferences.
bernd
AhmedER
Posts: 19
Joined: Sun Mar 19, 2017 2:00 pm

Re: How to use Z88 in FEM?

Postby AhmedER » Sat Jul 08, 2017 8:17 am

bernd wrote:
Sat Jul 08, 2017 7:15 am
you need to set the path to your z88r binary file in preferences.
bernd
I did that. The error is gone, but there is no results in sight.
Z88_2.png
Z88_2.png (186.18 KiB) Viewed 1233 times

This is the file
TrussZ88real.fcstd
(10.43 KiB) Downloaded 26 times


On an unrelated note. Have you tried coding for Calculix? Is there any forums/wiki/guides/... to help me learn how to do that? I am still trying to implement a general beam cross section, as opposing to the current limitation of rectangle and pipe. Do you recommend I try to develop it from the first place, or do you think the Z88OS will be better option?

Thank you for your time and guidance.
Ahmed
User avatar
bernd
Posts: 8046
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: How to use Z88 in FEM?

Postby bernd » Sat Jul 08, 2017 10:20 am

I get no results either. I need to have a closer look. This may take some time.

To try if your z88 runs in FreeCAD you could do the following.

- start FreeCAD
- go to start wb
- load 3D FEM example
- activate the analysis
- add an solver z88 object
- select the z88 solver
- click on the run analysis button
- a new result object should be created. You should get the same deformations as with Calculix

bernd