FEM WB

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
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FEM WB

Post by PrzemoF »

Double click on MechanicalAnalysis in the tree. You need to have an ative analysis to run calcs. This is something that I'll fix in the future, but there are some code changes required before I can start working on it.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Post by Jee-Bee »

PrzemoF wrote:Double click on MechanicalAnalysis in the tree. You need to have an ative analysis to run calcs. This is something that I'll fix in the future, but there are some code changes required before I can start working on it.
Thanks
PrzemoF wrote:1. OK, open FEM wb, go to Edit->Preferences->FEM and check what do you have set as "working directory"

Code: Select all

~/FreeCAD/FEM-work

PrzemoF wrote:2. Can you start FreeCAD from terminal? (ask if you don't know what I'm talking about - I don't know how much do you know)
Yes i can.
PrzemoF wrote:P.S. I posted was a termina console output - you can't run it in the FreeCAD python console, as it's not a code.
my terminal output:

Code: Select all

runCalculix
run Calculix at: /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2  with: /home/jbubuntu/FreeCAD/FEM-work/Part__Feature_Mesh
calculixStarted()
PySide.QtCore.QProcess.ProcessState.Running
calculixFinished()2
PySide.QtCore.QProcess.ProcessState.NotRunning
Loading results....
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FEM WB

Post by PrzemoF »

Open terminal and try to run:

Code: Select all

/usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2 -i /home/jbubuntu/FreeCAD/FEM-work/Part__Feature_Mesh
it should produce some output.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Post by Jee-Bee »

PrzemoF wrote:Open terminal and try to run:

Code: Select all

/usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2 -i /home/jbubuntu/FreeCAD/FEM-work/Part__Feature_Mesh
it should produce some output.

Code: Select all

jbubuntu@jbubuntu-MacBook:~$ /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2 -i /home/jbubuntu/FreeCAD/FEM-work/Part__Feature_Mesh
bash: /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2: cannot execute binary file: Exec format error
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FEM WB

Post by PrzemoF »

Code: Select all

ls -l /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2
and

Code: Select all

file /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Post by Jee-Bee »

PrzemoF wrote:

Code: Select all

ls -l /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2

Code: Select all

jbubuntu@jbubuntu-MacBook:~$ ls -l /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2
-rwxr-xr-x 1 jbubuntu users 5412993 Mar  4 19:49 /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2
PrzemoF wrote:

Code: Select all

file /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2

Code: Select all

jbubuntu@jbubuntu-MacBook:~$ file /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2
/usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.4, not stripped
I see some parts are 64 bit... I saw yesterday my system is 32 bit...
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FEM WB

Post by PrzemoF »

PrzemoF wrote:

Code: Select all

file /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2

Code: Select all

jbubuntu@jbubuntu-MacBook:~$ file /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2
/usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.4, not stripped
You have 32-bit system and 64 bit ccx, so your guess here [1] was correct. We just found another way of ccx failing :D so we'll be able to plug that hole (e.g. tell user that ccx is present, but it's invalid)

You have to get a 32 bit ccx or compile it (tough!)

[1] viewtopic.php?f=3&t=11830#p95402
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Post by Jee-Bee »

PrzemoF wrote:You have to get a 32 bit ccx or compile it (tough!)
Or an re install... :(
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Post by Jee-Bee »

Having some troubel...
Reinstall to 64 bit
install CCX according B

Code: Select all

B. IF YOU WOULD LIKE TO RUN THE EXECUTABLE YOU COPIED FROM THE
HOMEPAGE (ccx_2.8.tar.bz2):

1. copy ccx_2.8.tar.bz2 to /usr/local. Bunzip2 and untar the
   executable; the file ccx_2.8 is
   generated and put into /usr/local/CalculiX/ccx_2.8/src. Move
   the executable to /usr/local/bin. 

2. to run examples, get ccx_2.8.test.tar.bz2 from the homepage
   and follow the instructions under A.

3. to get the documentation, get ccx_2.8.ps.tar.bz2 and
   ccx_2.8.htm.tar.bz2, copy them to /usr/local and bunzip2 and
   untar them. Alternatively, create the documentation from the tex
   original ccx_2.8.doc.tar.bz2 and proceed as explained under A. 
And still get the same errors as before..
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FEM WB

Post by PrzemoF »

Can you post the path you have in FEM preferences for ccx binary and the result of "file" for that ccx binary?
Post Reply