CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > Pointwise & Gridgen

Installing CGNS libraries

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2014, 03:15
Default Installing CGNS libraries
  #1
Member
 
Join Date: Jul 2014
Posts: 31
Rep Power: 12
nba1942 is on a distinguished road
Hi, I am working on unstructured grid and a solver for it. I read lots of pdfs from "http://cgns.sourceforge.net/" and now I know I should use CGNS libraries to export BC, solutions etc from CGNS data.

But those pdfs don't tell me what to do to install the libraries. And one of my colleagues who had installed the library on Linux told me what he did to install it, but obviously that doesn't work for on windows.

I am using Windows 8.1 and am working with fortran. I tried using "Visual Studio Command Prompt" and that didn't work. I want to try using "Cmake", as the "read me" told me to, but I really don't know where to start.

What I want to ask is;

1. Is it possible to install to install CGNS library on Windows OS?

2. What does "compile" means when it comes to installing the libraries? I know installing a library is not different from just clicking "install". So when I try to compile something to install CGNS libraries, what am I doing??

I am desperately waiting for any reply.

Thanks for reading.
nba1942 is offline   Reply With Quote

Old   November 17, 2014, 13:18
Default
  #2
Senior Member
 
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14
dgarlisch is on a distinguished road
I get the impression from your questions that you may not be an experienced programmer. Building the CGNS libraries from source code is NOT trivial. Depending on your specific IO requirements, you may also need to obtain or build ADF, HDF5, and MPI libraries! You may want to consider looking for pre-built libraries from a trusted source. It will save you a lot of headache.

The CGNS website suggests that they support cmake. If it is properly configured for windows, then cmake will do a lot of the work for you.

Are you required to use CGNS? If not, there are other well documented, grid file formats that are much easier to work with. If your grid files are not too large, I suggest using an ASCII grid format. ASCII files are easier to write and debug.
dgarlisch is offline   Reply With Quote

Old   November 17, 2014, 21:54
Default Thanks for your reply, dgarlisch :)
  #3
Member
 
Join Date: Jul 2014
Posts: 31
Rep Power: 12
nba1942 is on a distinguished road
You are right. I am a graduate student and this is my first year to study in the lab haha lots of things to learn..

About my situation, my professor is coding an unstructured solver and until now, his solver was for only structured grid with techplot format.

I think we should use CGNS libraries to import BC into the new solver to start calculation and to manage the solution data.

###############################################

I already installed HDF5.

the source codes are located at

C:\Users\Kim\Desktop\CGNS\cgnslib_3.2.1\src

and I want to build them to

C:/Users/Kim/Desktop/CGNS/installed

as you can see from figure 1. And I specified the generator as "VS 12 2013".

Then I encounter the error as you can see from figure 3.

###############################################

I googled the error and I read a comments saying that I should do "ccmake",
which I have no idea what it is yet. Figure 4 is what I encountered.



Your replies are always so helpful. Thanks for your reply, dgarlisch

waiting for reply!
Attached Images
File Type: jpg 1.jpg (24.1 KB, 55 views)
File Type: jpg 2.JPG (34.2 KB, 45 views)
File Type: jpg 3.jpg (51.6 KB, 56 views)
File Type: jpg 4.jpg (57.8 KB, 55 views)
nba1942 is offline   Reply With Quote

Old   November 18, 2014, 01:28
Default
  #4
Senior Member
 
Pay D.
Join Date: Aug 2011
Posts: 166
Blog Entries: 1
Rep Power: 15
pdp.aero is on a distinguished road
Hi,

You may install cygwin, and then install the CGNS in your windows like what your friend did in linux. Besides, you can also read the step 8 from here, and also follow it in for the future section.

Good Luck,
PDP
pdp.aero is offline   Reply With Quote

Old   November 18, 2014, 15:07
Default
  #5
Senior Member
 
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14
dgarlisch is on a distinguished road
If the error message is accurate, you need to add a cmake_minimum_required() macro to the top level CMakeLists.txt file.

For details see: http://www.cmake.org/cmake/help/v3.0..._required.html

As PDP suggested above, you may be able to get away with building everything with cygwin. Cygwin is a unix-like environment for winOS that includes gcc. I am not sure if cygwin generated libs will link properly with microsoft generated libs. So, for link compatibility, you may (or may not) need to rebuild the HDF5 libs with cygwin.

Good luck.
dgarlisch is offline   Reply With Quote

Old   November 19, 2014, 02:57
Default Thanks guys for your replies :)
  #6
Member
 
Join Date: Jul 2014
Posts: 31
Rep Power: 12
nba1942 is on a distinguished road
I think I will try a lyx installer for windows first. I found the "install.lyx" in the library folder.

My colleague says that he installed it through that file. Maybe I can try this before I start something complicated

Anyway thanks for your help!!
nba1942 is offline   Reply With Quote

Old   December 23, 2014, 12:22
Default
  #7
New Member
 
Alex Chen
Join Date: Dec 2014
Posts: 2
Rep Power: 0
chen04 is on a distinguished road
hi nba1942:
I recently also try to install Cgns on windows. I install it with MVS 2010 and inter fortran 2011. I used nmake but it always warn me can not find "Cgns.lib". I also tried cmake and still failed. Have you succeed in installing and would you tell me how to install it on windows and which c and fortran compiler should I take. Thank you very much. Expecting to hear your reply!
, Chen
chen04 is offline   Reply With Quote

Reply


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
[swak4Foam] difficulties installing swak4foam newbie29 OpenFOAM Community Contributions 120 October 21, 2022 05:01
Installing CGNS chintan SU2 5 November 19, 2014 02:36
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
CGNS libraries, compiling and linking... Ironman80 Main CFD Forum 2 February 14, 2006 23:36


All times are GMT -4. The time now is 22:24.