precice / calculix-adapter

preCICE-adapter for the CSM code CalculiX
GNU General Public License v3.0
52 stars 20 forks source link

CalculiX and exo output #4

Open 3rav opened 6 years ago

3rav commented 6 years ago

I suggest to implement CalculiX Extras Exodus written by Peter A. Gustafson to get results readable by Paraview from CalculiX.

https://www.openaircraft.com/calculix-extras/

More CalculiX extras: https://sites.google.com/site/kodanda/research/calculix-addons http://tfel.sourceforge.net/calculix.html https://gitlab.lrz.de/flayerbein/calculix https://arc.aiaa.org/doi/abs/10.2514/6.2019-0775

prosimas commented 5 years ago

Good suggestion! I would be glad to see this, too.

Or maybe some tips on how to accomplish the integration of calculix extras.

Best wishes

3rav commented 5 years ago

PreCICE with exodus extras works! Tutorial for SSI with CalculiX: https://github.com/precice/precice/wiki/Tutorial-for-SSI-with-CalculiX

exodus

Results from beam1.inp are in exo format, results from beam2.inp are in frd format.

uekerman commented 5 years ago

Great, @3rav! How did you managed to integrate the exodus add-on? Maybe also interesting: @KyleDavisSA recently adapted a frd2vtk converter script that he wanted to share with the adapter.

3rav commented 5 years ago

Hi,

  1. Copy preCICE adapter files to CalculiX src.
  2. Adapted CalculiX Extras Exodus from 2.14 to 2.15 (small changes).
  3. Apply Exodus patches (instruction on the website: https://www.openaircraft.com/calculix-extras/).
  4. Compile exodus from source (https://gsjaardema.github.io/seacas/).
  5. Add to ccx Makefile:
EXODUS      = /usr/local/exodus/include
SIERRA      = /usr/local/exodus/sierra
CFLAGS +=-DEXODUSII

Includes and libs:

INCLUDES += \
    -I$(EXODUS) \
    -I$(SIERRA)
DIR4=/usr/local/exodus
LIBS += \
       $(DIR4)/libexodus.a

Adapted exodus patch to 2.15 ccx: ccx_extras.2.15.exo.patch.zip

KyleDavisSA commented 5 years ago

Hi,

There is currently a tools folder added in the CalculiX-adapter. There is a FRD to VTK converter. This is an alternative to the Exodus package and does not require any changes to the installation of CalculiX or the adapter. The results can then be viewed in paraview. The README explains the installation procedure as the original script was developed in C#, and how to run an example.

imirzov commented 5 years ago

Hi all, Regarding FRD-To-VTK Converter written on C#: it works only with text frd-files. Please, try also my converter, based on frd-parser written by Lukas Bante.This one works with binary frd's. If you'l need additional features - just post issues on the project's page. https://github.com/imirzov/ccx2paraview

IshaanDesai commented 3 years ago

This issue is more for information rather than an issue and hence the wont fix label has been applied.