FEM on Mac OSX

About the development of the FEM module/workbench.

Moderator: bernd

Locost
Posts: 6
Joined: Sun May 06, 2018 10:15 am

Re: FEM on Mac OSX

Post by Locost »

I solved the problem although I'm not sure how.

I decided to try installing CalculiX using the outdated install guide on the CalculiX website <http://www.dhondt.de/INST_CCX_2_8_MAC_02_10_2015.pdf>. The install wasn't successful (it threw an error while making CalculiX). However before having a second go at the install I tried chrisb's files again and the solver worked. My best guess is I changed something related to solvers dependencies SPOOLES and ARPACK.
chrisb
Veteran
Posts: 53920
Joined: Tue Mar 17, 2015 9:14 am

Re: FEM on Mac OSX

Post by chrisb »

Congratulations! Let's hope it is a stable system. I'm glad my files could be of use.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
oldmachine
Posts: 243
Joined: Wed May 31, 2017 11:49 pm

Re: FEM on Mac OSX

Post by oldmachine »

... Guess I need some help on related topic.

I installed calculix 2.13 per "chrisb's" post. It went smoothly.
I created a simple beam to test it out.
I get the Error message about needing 2.6.

I searched but could not find 2.6 for OSX (sierra or any osx version).

Where and how to get it and install it ?

Thanks,
MAC OSX Sierra
3D Parts & Links (made using FreeCad and Solidworks): https://www.thingiverse.com/Still_Breathing/designs
Android App & Links: https://play.google.com/store/apps/deta ... .bestknots
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM on Mac OSX

Post by bernd »

The message should be updated. ATM CalculiX is at 2.14. You should not run a ccx less than 2.13, means your version is correct, but for some reasons it does not return the expected values ...

Would it be possible to run your ccx in a osx konsole without any parameter and without any input file and post the output here?
oldmachine
Posts: 243
Joined: Wed May 31, 2017 11:49 pm

Re: FEM on Mac OSX

Post by oldmachine »

Thank you for your response.
Not sure how to run it from either the Console or Terminal - please advise...

But, below is from the Console Messages - generated when I dragged "ccx_2.13" from the bin into Terminal:

Process: ccx_2.13 [12562]
Path: /usr/local/Cellar/calculix-ccx/2.13/bin/ccx_2.13
Identifier: ccx_2.13
Version: 0
Code Type: X86-64 (Native)
Parent Process: bash [11740]
Responsible: ccx_2.13 [12562]
User ID: 501

Date/Time: 2018-05-31 11:06:47.765 -0700
OS Version: Mac OS X 10.12.6 (16G1314)
Report Version: 12
Anonymous UUID: 84DD66F6-8A34-1BC4-44E2-9D11FC2F5631

Sleep/Wake UUID: 41C56136-8799-48BE-9705-360D885E82AB

Time Awake Since Boot: 460000 seconds
Time Since Wake: 13000 seconds

System Integrity Protection: enabled

Crashed Thread: 0

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
Library not loaded: /usr/local/opt/gcc/lib/gcc/7/libgfortran.4.dylib
Referenced from: /usr/local/Cellar/calculix-ccx/2.13/bin/ccx_2.13
Reason: image not found

Binary Images:
0x10355c000 - 0x103a0afef +ccx_2.13 (0) <15DB98F9-3599-3BA6-AA79-8B7EA9C906F8> /usr/local/Cellar/calculix-ccx/2.13/bin/ccx_2.13
0x103a6a000 - 0x103ab5ff7 +libarpack.2.dylib (0) <40E99926-79E1-36BD-8F46-09C89EE605B1> /usr/local/opt/arpack/libexec/lib/libarpack.2.dylib
0x110e29000 - 0x110e66dc7 dyld (433.5) <322C06B7-8878-311D-888C-C8FD2CA96FF3> /usr/lib/dyld
0x7fffb39f2000 - 0x7fffb39f2fff com.apple.Accelerate (1.11 - Accelerate 1.11) <916E360F-323C-3AE1-AB3D-D1F3B284AEE9> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate

{FOLLOW-UP] I loaded the FEM example3 NewSolver. That seems to work:
Calculix - works
Z88 - works
Elmer - works

Also, I installed Z88 and it works on my model but, Calculix spits out the 2.6 error message.
Last edited by oldmachine on Thu May 31, 2018 6:32 pm, edited 1 time in total.
MAC OSX Sierra
3D Parts & Links (made using FreeCad and Solidworks): https://www.thingiverse.com/Still_Breathing/designs
Android App & Links: https://play.google.com/store/apps/deta ... .bestknots
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM on Mac OSX

Post by bernd »

open a terminal, copy the following and press enter:

Code: Select all

/usr/local/Cellar/calculix-ccx/2.13/bin/ccx_2.13
oldmachine
Posts: 243
Joined: Wed May 31, 2017 11:49 pm

Re: FEM on Mac OSX

Post by oldmachine »

Fyi - I just added info to my previous post.

Here is the result in Terminal after pasting your cmd

Bruces-iMac2:~ bruce$ /usr/local/Cellar/calculix-ccx/2.13/bin/ccx_2.13
dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/7/libgfortran.4.dylib
Referenced from: /usr/local/Cellar/calculix-ccx/2.13/bin/ccx_2.13
Reason: image not found
Abort trap: 6
Bruces-iMac2:~ bruce$

---
I guess I spoke too soon regarding the Fem3 example working - it does not perform FEA calc's - it only posts the results that come with the example - won't run calculix... gives the 2.6 error..
MAC OSX Sierra
3D Parts & Links (made using FreeCad and Solidworks): https://www.thingiverse.com/Still_Breathing/designs
Android App & Links: https://play.google.com/store/apps/deta ... .bestknots
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM on Mac OSX

Post by bernd »

oldmachine wrote: Thu May 31, 2018 6:34 pm Bruces-iMac2:~ bruce$ /usr/local/Cellar/calculix-ccx/2.13/bin/ccx_2.13
dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/7/libgfortran.4.dylib
Referenced from: /usr/local/Cellar/calculix-ccx/2.13/bin/ccx_2.13
Reason: image not found
Abort trap: 6
Bruces-iMac2:~ bruce$
ccx clearly says it has some problems to run. Something is wrong with your ccx installation. There are problems with the dyld fortran library. Since I'm not on osx I can not help here. As soon as your ccx runs and gives some reasonable output, you can perform a analysis in FreeCAD with ccx.
oldmachine
Posts: 243
Joined: Wed May 31, 2017 11:49 pm

Re: FEM on Mac OSX

Post by oldmachine »

1. Z88

I am able to run Z88 but, it only provides selections for Displacement, no Stresses (they are greyed out).

How do I correct this?


2. Calculix

I’ve spent several hours researching and reading - seems everything is geared toward Windows and Linux.

The few discussions for Mac/OSX do not indicate solutions beyond installing Calculix.

I reinstalled Calculix via Brew. I also did the ‘compile and install’ option but, still get the Error needing 2.6. When it finished, a msg suggested moving macports and it provided a cmd for that.
I ran the cmd but, still get the 2.6 error.

This is the status of Calculix as it’s currently installed (yes, I am pointing to the usr/local/bin/…:

No success using the embedded Solver, but, using the embedded Experimental Solver, it will generate an .inp file.

Opening the .inp file in text editor reveals the data/node/constraint…etc info. But, I don’t see any results in the Output file secton.

The ‘Run’ button/icon give the 2.6 error (thus, no results).

Upon some inspection: ccx-2.13 calls Fortran4 in gcc folder 7. My system has Fortran-8 in gcc folder 8. So, I created a folder 7 and copied the files to it. Didn't work
MAC OSX Sierra
3D Parts & Links (made using FreeCad and Solidworks): https://www.thingiverse.com/Still_Breathing/designs
Android App & Links: https://play.google.com/store/apps/deta ... .bestknots
oldmachine
Posts: 243
Joined: Wed May 31, 2017 11:49 pm

Re: FEM on Mac OSX

Post by oldmachine »

... following up...

I figure I'm on my own regarding the '2.6' error and getting Calculix to work on a Mac. So, I looked at the python files and found the Error Msg (scrnshot below)...
MAC OSX Sierra
3D Parts & Links (made using FreeCad and Solidworks): https://www.thingiverse.com/Still_Breathing/designs
Android App & Links: https://play.google.com/store/apps/deta ... .bestknots
Post Reply