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!
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Post by Jee-Bee »

PrzemoF wrote:Can you post the path you have in FEM preferences for ccx binary and the result of "file" for that ccx binary?

Code: Select all

sh: 1: SMDS_MemoryLimit: not found
Using ccx binary path from FEM preferences: /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2
FemConstraintForce
No Line Loads or Point Loads in the model
FemConstraintForce, AreaLoad on faces, CLOAD is used
  force_per_sum_ref_face_area: 0.1
  Part__Feature.Face4    sum_node_areas 10000.0 ref_face.Area: 10000.0
runCalculix
run Calculix at: /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2  with: /home/j-btw/FreeCAD/FEM/Part__Feature_Mesh
calculixStarted()
PySide.QtCore.QProcess.ProcessState.Running
calculixFinished()127
PySide.QtCore.QProcess.ProcessState.NotRunning
Loading results....

Code: Select all

j-btw@jbtw-Ubuntu:~$ ls -l /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2
-rwxr-xr-x 1 j-btw users 5412993 mrt  4 19:49 /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2
j-btw@jbtw-Ubuntu:~$ 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
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Post by Jee-Bee »

i use the binairy download(pre-build) not the self build
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FEM WB

Post by PrzemoF »

create a directory in /tmp (name it like fem or something, but use letters only), I'll use/tmp/fem
copy your inp file from /home/j-btw/FreeCAD/FEM/ to /tmp/fem
copy ccx binary to the same location
open terminal, go to /tmp/fem and run ccx:

Code: Select all

./ccx_2.8p2 -i Part__Feature_Mesh
Do not add .inp extension.
What is the output?
Edit:
also please send "uname -a" and "ldd path_to_your_ccx_binary_here"
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, go to /tmp/fem and run ccx:

Code: Select all

./ccx_2.8p2 -i Part__Feature_Mesh
Do not add .inp extension.
What is the output?

Code: Select all

j-btw@jbtw-Ubuntu:~$ cd /tmp/FEM
j-btw@jbtw-Ubuntu:/tmp/FEM$ ./ccx_2.8p2 -i Part__Feature_Mesh
bash: ./ccx_2.8p2: No such file or directory
j-btw@jbtw-Ubuntu:/tmp/FEM$ ls
Part__Feature_Mesh.inp
j-btw@jbtw-Ubuntu:/tmp/FEM$
PrzemoF wrote:also please send "uname -a" and "ldd path_to_your_ccx_binary_here"

Code: Select all

j-btw@jbtw-Ubuntu:/tmp/FEM$ uname -a
Linux jbtw-Ubuntu 3.19.0-22-generic #22-Ubuntu SMP Tue Jun 16 17:15:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
PrzemoF wrote:also please send "uname -a" and "ldd path_to_your_ccx_binary_here"

Code: Select all

j-btw@jbtw-Ubuntu:/tmp/FEM$ ldd /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2
	linux-vdso.so.1 =>  (0x00007ffecd5f5000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff08e4ed000)
	libgfortran.so.2 => not found
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff08e1e5000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff08de1b000)
	libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007ff08dc04000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff08d9ee000)
	/lib64/ld-linux-x86-64.so.2 (0x00007ff08e70b000)
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FEM WB

Post by PrzemoF »

You never copied ccx to the destination directory, that's why you cannot run it, but there is missing fortran library that is the main problem.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Post by Jee-Bee »

What do you mean with
PrzemoF wrote:You never copied ccx to the destination directory
see
Screenshot from 2015-07-24.png
Screenshot from 2015-07-24.png (53.13 KiB) Viewed 2229 times
Edit: I Installed libgfortran-4.9-dev and libgfortran3 but still i get the same output result when i type `ldd /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2`
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FEM WB

Post by PrzemoF »

to run a program with ./ like ./ccx_2.8p2 you have to have it in your current working directory, so it has to be in /tmp/FEM/ not in /usr/local/CalculiX/ccx_2.8p2/src/ Anyway, that's not important - you need libgfortran.so.2

I think that making symbolic link should solve your problem:

Code: Select all

sudo ln -s /usr/lib/x86_64-linux-gnulibgfortran.so.3 /usr/lib/libgfortran.so.2
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Post by Jee-Bee »

I don't understand it anymore...

Code: Select all

j-btw@jbtw-Ubuntu:~$ locate libgfortran
/usr/lib/libgfortran.so.2
/usr/lib/libgfortran.so.2.0.0
...
/usr/lib64/libgfortran.so.2
/usr/lib64/libgfortran.so.2.0.0
...
/usr/share/doc/libgfortran2
...
and still

Code: Select all

j-btw@jbtw-Ubuntu:~$ ldd /usr/local/CalculiX/ccx_2.8p2/src/ccx_2.8p2
	linux-vdso.so.1 =>  (0x00007ffea3df9000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff8bc779000)
	libgfortran.so.2 => not found
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff8bc471000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff8bc0a7000)
	libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007ff8bbe90000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff8bbc7a000)
	/lib64/ld-linux-x86-64.so.2 (0x00007ff8bc997000)
Where is he looking...
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FEM WB

Post by PrzemoF »

You're using binary build on a different system and the libs were in a diffetent location. You have to "patch" it with symbolic links or build ccx on your system.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Post by Jee-Bee »

update i try to build ccx on my system...
Till know spooles fails in the way decribed by the http://www.libremechanics.com/?q=node/9 and CCXinstall file...
So i try find out how to install it ... :?
Maybe next time better news
Post Reply