|
[Sponsors] |
October 19, 2014, 21:36 |
Installing CGNS
|
#1 |
New Member
Chintan Patel
Join Date: Oct 2014
Location: USA
Posts: 19
Rep Power: 12 |
This is not particular question about SU2, but I think many SU2 users export mesh from commercial softwares like icem as I'm doing for my research
I exported file in .cgns format. But, I always have error in installing cgnstools (l want the ability to manipulating my cgns file), been working on this for days. I looked for cgns documentation and searched it but cannot find solution! Here's what I'm doing: I'm executing following commands (with root privileges) (OS: Mint 17 and RHEL 6, if that has any effect!): cd cgnslib_3.1.4/src/ ./configure --enable-cgnstools make make install This gives me error in "make" step itself: ---------------------------------------------------------------------------------------------------------------------- ----- cgnsview ----- make[2]: Entering directory `/home/chintan/Documents/cgnslib_3.1.4/src/cgnstools/cgnsview' cc -O2 -I/home/chintan/Documents/cgnslib_3.1.4/src -c cgiowish.c cgiowish.c:15:16: fatal error: tk.h: No such file or directory #include "tk.h" ^ compilation terminated. make[2]: *** [cgiowish.o] Error 1 make[2]: Leaving directory `/home/chintan/Documents/cgnslib_3.1.4/src/cgnstools/cgnsview' make[1]: *** [prog-cgnsview] Error 2 make[1]: Leaving directory `/home/chintan/Documents/cgnslib_3.1.4/src/cgnstools' make: [cgnstools] Error 2 (ignored) ---------------------------------------------------------------------------------------------------------------------- I installed tcl/tk package,too. But that didn't help. Is there anything that I'm missing? |
|
October 20, 2014, 03:40 |
|
#2 |
New Member
Jeffrey van Oostrom
Join Date: Feb 2014
Location: Delft, The Netherlands
Posts: 16
Rep Power: 12 |
Hello,
I think you should either make sure the tk.h is in the same folder as the source file it is trying to compile, or add the folder where your tk.h is in to your PATH variable: export PATH=$PATH:'/dir/to/tk/script/' I hope this helps! Jeffrey |
|
October 23, 2014, 00:44 |
|
#3 |
New Member
Chintan Patel
Join Date: Oct 2014
Location: USA
Posts: 19
Rep Power: 12 |
Hi Jeffrey, thanks for reply. I tried that but it didn't work. I also tried copying all "*.h" files to my source code folder but that didn't work either! It still gives me same error! What else can be done?
Also, as an alternative, I was able to install cgns library without cgnstools. Based on SU2 documentation I guess SU2 can convert cgns to .su2 format and that doesn't need cgnstools for that and as .su2 is human readable I would be able to edit boundary conditions in .su2 mesh file. Is that right? Last edited by chintan; November 3, 2014 at 03:06. |
|
November 3, 2014, 02:58 |
|
#4 |
New Member
Shainath
Join Date: Apr 2011
Posts: 18
Rep Power: 15 |
I have followed the following procedure to solve the CGNS problem:
Step 1: Installed CGNS library obtained from http://cgns.sourceforge.net/download.html Step 2: Installation of SU2 : Instead of only "./configure" I have used " ./configure --with-CGNS-lib=/usr/local/lib --with-CGNS-include=/usr/local/include --enable-metis" Step 3: Then went through usual procedures "make" and "make install" Till now everything works fine. I hope this can help you. Thanks. |
|
November 19, 2014, 01:46 |
|
#5 | |
New Member
Chintan Patel
Join Date: Oct 2014
Location: USA
Posts: 19
Rep Power: 12 |
Quote:
|
||
November 19, 2014, 02:36 |
cgnstool installation problem still exist
|
#6 |
New Member
Chintan Patel
Join Date: Oct 2014
Location: USA
Posts: 19
Rep Power: 12 |
I was able to compile cgns source code without cgnstools without any trouble. And I converted cgns mesh into su2 mesh. So, it solves my problem.
But if someone has successfully installed cgns tools, I would still like to know how. |
|
Tags |
cgns, cgns to su2 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] Cgns support for gmsh | robyTKD | OpenFOAM Meshing & Mesh Conversion | 1 | July 13, 2016 12:27 |
writing link between two CGNS files | t.teschner | Main CFD Forum | 1 | February 4, 2014 11:26 |
Install OF 1.6.ext on Arch based distribution | miro2000 | OpenFOAM Installation | 4 | October 9, 2013 15:39 |
Problems on installing cgns 3.2 under windows 7 | cyclone8793 | Main CFD Forum | 0 | April 1, 2013 09:10 |
parallel support with CGNS format not yet implemented | kirkrich | SU2 | 3 | January 18, 2013 16:39 |