CalculiX results 'frd' to Paraview 'vtk' converter

About the development of the FEM module/workbench.

Moderator: bernd

kimrj
Posts: 1
Joined: Tue Aug 01, 2017 12:08 pm

Re: CalculiX results 'frd' to Paraview 'vtk' converter

Post by kimrj »

mamah wrote: Wed Apr 20, 2016 5:30 am Hello!

Please find the link to Google disc to the packed Monodevelop project:

https://drive.google.com/file/d/0B9ZH5M ... sp=sharing

I've tried to translate the comments in source to english. I hope it's all done and will be readable and well understood by others. In any doubts please contact. It's a long time when I worked on it so I don't remember all the clues but will try to help. The main idea which involved development of this piece of software was to use the Calculix for reinforced structures design. Is anyone also interested in that? Or in using FreeCAD for any other structural design i.e. steel structures? It would be nice to share our thinks and expectations. I see that FreeCAD, as it is, is really powerful and do poses the abilities to make some add-on to achieve great results in professional work.

Regards,

Maciek
The attached file contains improvements to Maciek's code that are at least useful to me:
  • A regular bug in line 176 of Eksporty.cs has been corrected.
  • The floating point time value of a solution item has been incorporated in its VTK name.
  • The main stresses S1, S2 and S3 are now three different scalar items instead of one vector item.
  • If a .frd solution item does not address all nodes, it will still be displayed properly (relevant for contact solution items).
I hope that these corrections are seen as valuable and in no conflict with other code modifications that I am not aware of.

Regards,
Kim Ravn-Jensen
Attachments
mmh_ccxfrd2vtk_source_monodevelop_addendum.zip
(7.82 KiB) Downloaded 275 times
UR_
Veteran
Posts: 1349
Joined: Tue Jan 03, 2017 8:42 pm

Re: CalculiX results 'frd' to Paraview 'vtk' converter

Post by UR_ »

Really, really cool!!

I added just a batch file for win users who won't install visual studio express but needs a fresh build.
Please take a look in editor before running ;)

Screenshot is from Paraview with FreeCAD's 3D-Example from start page.
ParaviewNodeProperty.png
ParaviewNodeProperty.png (115.65 KiB) Viewed 4806 times

ccxfrd2vtk.zip
(58.44 KiB) Downloaded 304 times
mamah
Posts: 5
Joined: Sat Jun 20, 2015 12:18 pm

Re: CalculiX results 'frd' to Paraview 'vtk' converter

Post by mamah »

Hello Everybody!

Nice to see that this particular piece of software is somehow useful for somebody and still utilized and even tuned/developed. It really makes me happy. At the moment I think that “Kimr” posses better knowledge about the code than me. I’m not sure if in present I’m able to provide any help but I’m going to work on this. Anyway I wish You all the bests with utilizing end developing free (in every meaning) software.

Best Regards
Maciek
mamah@wp.pl
JV_3D
Posts: 41
Joined: Fri Dec 23, 2016 4:45 am

Re: CalculiX results 'frd' to Paraview 'vtk' converter

Post by JV_3D »

Hello everyone

How can I use this utility?, in Windows it only opens a command windows with press Enter at the end, but no conversion. The other zip-file in the thread have many .cs files I don't know how to use.
Any recommendation? I am trying to export the Von Mises results and the user @UR_ recommended me this utility: https://forum.freecadweb.org/viewtopic.php?f=18&t=23960

Thank you so much in advance
thschrader
Veteran
Posts: 3006
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: CalculiX results 'frd' to Paraview 'vtk' converter

Post by thschrader »

mamah wrote: Fri Aug 11, 2017 7:15 pm Nice to see that this particular piece of software is somehow useful for somebody...
Best Regards
Maciek
mamah@wp.pl
Hi Maciek,
your converting-tool is very useful, thanks for your work and thanks
for contributing to the community. At the moment we use it here:
https://forum.freecadweb.org/viewtopic. ... 1&start=40
best regards Thomas
cydone
Posts: 8
Joined: Tue Jul 19, 2016 8:38 am

Re: CalculiX results 'frd' to Paraview 'vtk' converter

Post by cydone »

Hello,

This app works on windows (.exe)
Is there a similar app for linux ubuntu 16.04 ?

Thanks,
---------------------------------------------------------------------------------------------------------------
french native speaker :-)
UR_
Veteran
Posts: 1349
Joined: Tue Jan 03, 2017 8:42 pm

Re: CalculiX results 'frd' to Paraview 'vtk' converter

Post by UR_ »

Sorry, but for Linux you have to compile sources yourself. :(
For starting, please see here: https://stackoverflow.com/questions/479 ... -for-linux
mamah
Posts: 5
Joined: Sat Jun 20, 2015 12:18 pm

Re: CalculiX results 'frd' to Paraview 'vtk' converter

Post by mamah »

Hello!

This app was written using MonoDevelop for Mono on Xubuntu. If I do remember well it was stable version 14.4. I has never even tested if it will run on Windows. It is Linux application.

So, everything what You need to use it on Linux is just Mono and then just click... Or better way use Geany as I found when was testing Calculix. It works great with its integrated terminal and Abaqus syntax highlighting with ccx, cgx and any other converting tool added to common shortcut. I cannot help more becouse I do not remember many about that software and even cgx, ccx and Paraview using. Last days I’m trying to renew that knowledge and maybe I’ll continue the second attempt to use all of this for structural design. Maybe this time it will be more successful.

Maciek
kmallick2000
Posts: 1
Joined: Wed May 23, 2018 5:06 am

Re: CalculiX results 'frd' to Paraview 'vtk' converter

Post by kmallick2000 »

Thank you very much for creating the codes to convert 'frd' to 'vtk' after Calculix runs. I am using the files provided by kimrj after he had modified the original codes and the new set of compiled codes is working well for me using mono in Linux.

But I have run into a situation where the code is unable to complete the conversion. My Calculix model uses material with incremental plasticity that uses 13 internal state variables (SDV) in ccx. I also have material with user multiple defined internal variables. When I try to use mmh_ccx2vtk.exe on the frd files, I get an error like so:

: Nodal results block found:'SDV', defined number of result lines: 4404, defined number of items: 13
! (33) Can not read the results in line: 29898

I see where this ERTXT0033 is caught within the Program.cs (line 339) but I have no idea what to modify to allow for up to 13 internal state variables. I do not know how to program in C. I would really appreciate if you can provide some hints or suggestions of what to modify.
shakir.1311
Posts: 1
Joined: Sun Jun 03, 2018 7:33 am

Re: CalculiX results 'frd' to Paraview 'vtk' converter

Post by shakir.1311 »

The reason for error is that Substring (85,12) returns error for following line:
-1 1 0.00000E+00 0.00000E+00 0.00000E+00 0.00000E+00 0.00000E+00 0.00000E+00

The line has only 86 characters so the substring fails.

I was thinking why there are substring being used? Would have been lots easier if String.Split was used OR it was done base don regular expressions.

Since you are the people who know the algrithm so will need your guidance whether to replace substrings with Split?
Post Reply