Fem constraint contact

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
sgrogan
Posts: 5412
Joined: Wed Oct 22, 2014 5:02 pm

Re: Fem constraint contact

Postby sgrogan » Mon May 23, 2016 1:07 am

PrzemoF wrote:ything that works on fedora and you want me to switch it on please let me know.
If libvtk6-dev >= than 6.2 is available, could you try -DBUILD_FEM_VTK?
makkemal wrote: @sgrogan how is the Scipy integration coming along ?
This will be a game changer
Without access to a Fortran compiler this is tough for Win x64. Available Python 2.x packages are compiled with VC9,FreeCAD uses VC12. Maybe after the switch to python 3.x we will be able to use the scipy packages for python 3.5 compiled with VC14? It will require a VS2015 x64 FreeCAD Libpack though.
User avatar
bernd
Posts: 8414
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Fem constraint contact

Postby bernd » Mon Jun 13, 2016 5:16 am

I'd like to get the contact into master. Extracted the contact code and rebased it on master.

See:
https://github.com/berndhahnebach/FreeC ... femcontact

Example file: see ealier post in this thread
viewtopic.php?f=18&t=15699#p124861

But it misses something. @ the guys down in south africa. Would you provide the *.inp file for the contact example. The file writes, ccx runs but the results seam not what you guys got.

cheers bernd
User avatar
PrzemoF
Posts: 2654
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Fem constraint contact

Postby PrzemoF » Wed Jun 15, 2016 9:17 pm

sgrogan wrote:
PrzemoF wrote:ything that works on fedora and you want me to switch it on please let me know.
If libvtk6-dev >= than 6.2 is available, could you try -DBUILD_FEM_VTK?
[..]
Enabled for build [1]. If it builds OK I'll keep it switched on.

[1] https://copr.fedorainfracloud.org/coprs ... ld/342996/
User avatar
PrzemoF
Posts: 2654
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Fem constraint contact

Postby PrzemoF » Thu Jun 16, 2016 4:52 pm

Build failed with:

Code: Select all

CMake Error at CMakeLists.txt:764 (find_package):
  By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "VTK", but
  CMake did not find one.
  Could not find a package configuration file provided by "VTK" with any of
  the following names:
    VTKConfig.cmake
    vtk-config.cmake
  Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR"
  to a directory containing one of the above files.  If "VTK" provides a
  separate development package or SDK, be sure it has been installed.
User avatar
PrzemoF
Posts: 2654
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Fem constraint contact

Postby PrzemoF » Sat Jun 18, 2016 12:16 pm

I think I got it fixed.. we'll know soon..

P.S. Come on you Boys in Green!!!! :mrgreen: :mrgreen: :mrgreen:
User avatar
PrzemoF
Posts: 2654
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Fem constraint contact

Postby PrzemoF » Sun Jun 19, 2016 4:15 pm

https://copr.fedorainfracloud.org/coprs ... ld/354290/

Code: Select all

%cmake -DCMAKE_INSTALL_PREFIX=%{_libdir}/%{name} \
       -DCMAKE_INSTALL_DATADIR=%{_datadir}/%{name} \
       -DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name} \
       -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
       -DRESOURCEDIR=%{_datadir}/%{name} \
       -DFREECAD_USE_EXTERNAL_PIVY=TRUE \
       -DBUILD_FEM_VTK=TRUE \
        ../
BUILD_FEM_VTK is enabled, but -DFREECAD_USE_EXTERNAL_SMESH is switched off

If you test it please report if it works as expected.
User avatar
makkemal
Posts: 395
Joined: Wed Apr 29, 2015 12:41 pm
Location: South Africa
Contact:

Re: Fem constraint contact

Postby makkemal » Mon Jun 20, 2016 5:16 am

Hi All
Sorry for the delayed response I was on leave last week making sure I had absolutely no communication.
My version compiles I'm not sure what is different i will look into this

Regards
Michael
User avatar
PrzemoF
Posts: 2654
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Fem constraint contact

Postby PrzemoF » Mon Jun 20, 2016 9:16 am

No need to do it - it's all good again. cmake writes some info to the source directory and my script packing the source into srpm file was obviously packing it as well. After cleaning the source tree (git clean -fdx), adding new dependencies (VTK & med) all is building fine again - locally and in COPR as well.
User avatar
bernd
Posts: 8414
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Fem constraint contact

Postby bernd » Mon Jun 20, 2016 4:28 pm

makkemal wrote:Sorry for the delayed response I was on leave last week making sure I had absolutely no communication.
My version compiles
https://github.com/makkemal/FreeCAD/com ... ermMech_v4 last commit https://github.com/makkemal/FreeCAD/com ... 3410b6ef7e compiles for me too !

But, FEM unit test fails!

Furthermore I'm not able to make a simple analysis. Start FreeCAD --> change to Start WB --> load FEM3D example --> run analysis -->

Code: Select all

Traceback (most recent call last):
  File "/home/hugo/Documents/dev/freecad/freecadbhb_makkemal/freecad/Mod/Fem/FemToolsCcx.py", line 181, in run
    self.write_inp_file()
  File "/home/hugo/Documents/dev/freecad/freecadbhb_makkemal/freecad/Mod/Fem/FemToolsCcx.py", line 100, in write_inp_file
    self.inp_file_name = inp_writer.write_calculix_input_file()
  File "/home/hugo/Documents/dev/freecad/freecadbhb_makkemal/freecad/Mod/Fem/FemInputWriterCcx.py", line 124, in write_calculix_input_file
    self.write_nodes_elements(inpfile,name)
  File "/home/hugo/Documents/dev/freecad/freecadbhb_makkemal/freecad/Mod/Fem/FemInputWriterCcx.py", line 336, in write_nodes_elements
    while s_line[0] != "B":
IndexError: string index out of range
Find my contact branch at https://github.com/berndhahnebach/FreeC ... femcontact There is still some ccx issue with the results I get. I'm not a CalculiX contact expert. It'd be cool if someone with contact knowlege of ccx could try this branch.
vdwalts
Posts: 9
Joined: Wed Jun 22, 2016 12:43 pm

Re: Fem constraint contact

Postby vdwalts » Wed Jun 22, 2016 12:50 pm

Hello, this is now split into three sections which are all working.
1: Thermo-mechanical analysis
2: Contact constraint
3: Plane-rotation constraint

https://github.com/makkemal/FreeCAD/tree/rtd_vdwalts

Work in progress: 4: Split of input file writer

Tested up till point 3.

Thermo-mechanical added a number of quantities. Please explain the problem with unit tests so that it can be addressed.