CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Installing CGNS

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By shainath

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 19, 2014, 20:36
Default Installing CGNS
  #1
New Member
 
Chintan Patel
Join Date: Oct 2014
Location: USA
Posts: 19
Rep Power: 11
chintan is on a distinguished road
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?
chintan is offline   Reply With Quote

Old   October 20, 2014, 02:40
Default
  #2
New Member
 
Jeffrey van Oostrom
Join Date: Feb 2014
Location: Delft, The Netherlands
Posts: 16
Rep Power: 12
Doriris is on a distinguished road
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
Doriris is offline   Reply With Quote

Old   October 22, 2014, 23:44
Default
  #3
New Member
 
Chintan Patel
Join Date: Oct 2014
Location: USA
Posts: 19
Rep Power: 11
chintan is on a distinguished road
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 02:06.
chintan is offline   Reply With Quote

Old   November 3, 2014, 01:58
Default
  #4
New Member
 
Shainath
Join Date: Apr 2011
Posts: 18
Rep Power: 15
shainath is on a distinguished road
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.
wel likes this.
shainath is offline   Reply With Quote

Old   November 19, 2014, 00:46
Default
  #5
New Member
 
Chintan Patel
Join Date: Oct 2014
Location: USA
Posts: 19
Rep Power: 11
chintan is on a distinguished road
Quote:
Originally Posted by shainath View Post
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.
Thanks a lot Shainath. It was helpful.
chintan is offline   Reply With Quote

Old   November 19, 2014, 01:36
Default cgnstool installation problem still exist
  #6
New Member
 
Chintan Patel
Join Date: Oct 2014
Location: USA
Posts: 19
Rep Power: 11
chintan is on a distinguished road
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.
chintan is offline   Reply With Quote

Reply

Tags
cgns, cgns to su2


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Gmsh] Cgns support for gmsh robyTKD OpenFOAM Meshing & Mesh Conversion 1 July 13, 2016 11:27
writing link between two CGNS files t.teschner Main CFD Forum 1 February 4, 2014 10:26
Install OF 1.6.ext on Arch based distribution miro2000 OpenFOAM Installation 4 October 9, 2013 14:39
Problems on installing cgns 3.2 under windows 7 cyclone8793 Main CFD Forum 0 April 1, 2013 08:10
parallel support with CGNS format not yet implemented kirkrich SU2 3 January 18, 2013 15:39


All times are GMT -4. The time now is 16:00.