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
Posts: 1942
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Postby Jee-Bee » Fri Jul 24, 2015 11:54 am

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
Posts: 1942
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Postby Jee-Bee » Fri Jul 24, 2015 12:00 pm

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

Re: FEM WB

Postby PrzemoF » Fri Jul 24, 2015 12:03 pm

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
Posts: 1942
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Postby Jee-Bee » Fri Jul 24, 2015 12:30 pm

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

Re: FEM WB

Postby PrzemoF » Fri Jul 24, 2015 1:23 pm

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
Posts: 1942
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Postby Jee-Bee » Fri Jul 24, 2015 1:30 pm

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

Re: FEM WB

Postby PrzemoF » Fri Jul 24, 2015 3:00 pm

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
Posts: 1942
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Postby Jee-Bee » Sun Jul 26, 2015 2:27 pm

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

Re: FEM WB

Postby PrzemoF » Sun Jul 26, 2015 2:41 pm

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
Posts: 1942
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEM WB

Postby Jee-Bee » Fri Jul 31, 2015 9:38 am

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