Help with install on OS X

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
lemonbug
Posts: 310
Joined: Sun Oct 19, 2014 5:12 pm

Help with install on OS X

Post by lemonbug »

Hi-

I am trying to install the components for the FEM workbench on OSX.


Following Bernards post: https://forum.freecadweb.org/viewtopic. ... 52#p198642

My question is: subsequent to running this command "brew install calculix-ccx" is something supposed to happen in the terminal window?

I went to /usr/local/Cellar/calculix-ccx/2.13/bin/ccx_2.13 but the dir does not exist. I have up to /usr/local/Cellar/

Thanks, j


OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13519 (Git)
Build type: Release
Branch: (HEAD detached at 1a8b868)
Hash: 1a8b868018f45ea486c0023fdbfeb06febc1fb89
Python version: 2.7.14
Qt version: 5.10.1
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)
lemonbug
Posts: 310
Joined: Sun Oct 19, 2014 5:12 pm

Re: Help with install on OS X

Post by lemonbug »

Looks like it didnt install. Here is the latest msg.

Last login: Tue Sep 25 16:37:33 on ttys000
MacBook-Pro:~ j$ brew install calculix-ccx
Error: No available formula with the name "calculix-ccx"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
MacBook-Pro:~ j$
peterl94
Veteran
Posts: 1001
Joined: Thu May 23, 2013 7:31 pm
Location: United States

Re: Help with install on OS X

Post by peterl94 »

The calculix homebrew formula was in homebrew-science which has been deprecated by homebrew. However, you can still access it from the brewsci fork.

Code: Select all

brew tap brewsci/science
brew install calculix-ccx
lemonbug
Posts: 310
Joined: Sun Oct 19, 2014 5:12 pm

Re: Help with install on OS X

Post by lemonbug »

peterl94 wrote: Wed Sep 26, 2018 1:47 am The calculix homebrew formula was in homebrew-science which has been deprecated by homebrew. However, you can still access it from the brewsci fork.

Code: Select all

brew tap brewsci/science
brew install calculix-ccx
yea! got that part installed now. on to the next step. thanks so much!
chrisb
Veteran
Posts: 53933
Joined: Tue Mar 17, 2015 9:14 am

Re: Help with install on OS X

Post by chrisb »

lemonbug wrote: Wed Sep 26, 2018 3:44 am yea! got that part installed now. on to the next step. thanks so much!
Hi lemonbug, could you please note all the steps necessary to get it running? My description seems to be outdated and it would be great if we can have a final contribution here where it is all in one post.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
lemonbug
Posts: 310
Joined: Sun Oct 19, 2014 5:12 pm

Re: Help with install on OS X

Post by lemonbug »

chrisb wrote: Wed Sep 26, 2018 5:53 am
lemonbug wrote: Wed Sep 26, 2018 3:44 am yea! got that part installed now. on to the next step. thanks so much!
Hi lemonbug, could you please note all the steps necessary to get it running? My description seems to be outdated and it would be great if we can have a final contribution here where it is all in one post.
Will do. I am trying to work through this tutorial to confirm its working but things are not matching up on my end with whats written.

https://www.freecadweb.org/wiki/FEM_tutorial
lemonbug
Posts: 310
Joined: Sun Oct 19, 2014 5:12 pm

Re: Help with install on OS X

Post by lemonbug »

chrisb wrote: Wed Sep 26, 2018 5:53 am
lemonbug wrote: Wed Sep 26, 2018 3:44 am yea! got that part installed now. on to the next step. thanks so much!
Hi lemonbug, could you please note all the steps necessary to get it running? My description seems to be outdated and it would be great if we can have a final contribution here where it is all in one post.
Ok, I am pretty sure I have it working, I just need to learn how to use it now = ).

Thanks to Bernard and peterl94 and everyone else who worked so hard to get this put together. This is what I did.

I followed Bernard’s post from here: https://forum.freecadweb.org/viewtopic. ... 52#p198642 but made a few changes as outlined below.

Here are the exact steps I took.

1) I installed homebrew see https://brew.sh/

2) Running ’brew install calculix-ccx' in a Terminal window on my Mac now gives you an error message (09-26-18) so I followed the new commands below.

Per peterl94 the new commands to type in the terminal window are:

“brew tap brewsci/science”
“brew install calculix-ccx”


3) Start FreeCAD to setup the binary path of calculiX. I selected FEM workbench. FreeCAD—>Preferences—>FEM in the bottom left, CalculiX tab at the top center, the pasted the path “/usr/local/Cellar/calculix-ccx/2.13/bin/“ in the first field labeled “ccx binary path”.
Screen Shot 2018-09-26 at 11.42.42 AM.png
Screen Shot 2018-09-26 at 11.42.42 AM.png (275.28 KiB) Viewed 1711 times
That’s it.
Attachments
Screen Shot 2018-09-26 at 11.32.35 AM.png
Screen Shot 2018-09-26 at 11.32.35 AM.png (57.19 KiB) Viewed 1711 times
lemonbug
Posts: 310
Joined: Sun Oct 19, 2014 5:12 pm

Re: Help with install on OS X

Post by lemonbug »

Looks like I still have an error when running the mech analysis after writing the .inp file. Also, in Bernards post is mentions to put the binary name in the path but it errors out for me when I do so I changed it to "/usr/local/Cellar/calculix-ccx/2.13/bin/" and it at least runs now.

0.0: Check dependencies...
0.1: Write completed.
0.0: CalculiX binary: /usr/local/Cellar/calculix-ccx/2.13/bin/ccx_2.13
0.0: Run CalculiX...
0.0: Starting CalculiX...
0.0: CalculiX stopped.
0.1: CalculiX execute error: PySide2.QtCore.QProcess.ProcessError.FailedToStart

I think I have my model all set up, just can't figure out how to get past that error.
Screen Shot 2018-09-26 at 4.46.58 PM.png
Screen Shot 2018-09-26 at 4.46.58 PM.png (204.45 KiB) Viewed 1702 times
Post Reply