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

Compiling with CGNS Support

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By economon

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2014, 07:14
Default Compiling with CGNS Support
  #1
New Member
 
Join Date: Apr 2013
Posts: 19
Rep Power: 13
granbycools is on a distinguished road
Hey everybody,

I am trying to import an cgns file but keep receiving an error within the Geometry Preprocessing:
"------------------------- Geometry Preprocessing ------------------------
Setting local point and element connectivity.
Checking the numerical grid orientation.
Identifying edges and vertices.
Computing centers of gravity.
Setting the control volume structure.
Searching for the closest normal neighbors to the surfaces.
Segmentation fault (core dumped)"

the input/output information within the cfg file looks like that:
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
%
% Mesh input file format (SU2, CGNS, NETCDF_ASCII)
MESH_FORMAT= CGNS
%
% Mesh input file
MESH_FILENAME= a.cgns
%
% Convert a CGNS mesh to SU2 format (YES, NO)
CGNS_TO_SU2= YES
%
% Converted SU2 mesh filename
NEW_SU2_FILENAME= new_mesh.su2
%
% Mesh output file
MESH_OUT_FILENAME= mesh_out.su2

But I actually don’t believe that the inp-file is the issue... Regarding to the instructions for cgns import I have installed cgnslib_3.1.4 within the SU2 directory.
(I am a noop when it comes to linux, but I am running Ubuntu and I was simple doing: ./configure -> make -> make install, which was so far that I can tell successful) and before that I have installed hdf5-1.8.12 in the root directory (same way).

Within the SU2_CFD/obj (there was no SU2_CFD/config/ directory) I have removed "-DNO_CGNS" from the Makefile but after checking Makefile.in I haven found that compiler within the c++-comp. list..

If anybody has any ideas where I went wrong I appreciate any ideas
Best Regards,
Josh
granbycools is offline   Reply With Quote

Old   January 30, 2014, 01:17
Default
  #2
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
Quote:
Originally Posted by granbycools View Post
Hey everybody,

I am trying to import an cgns file but keep receiving an error within the Geometry Preprocessing:
"------------------------- Geometry Preprocessing ------------------------
Setting local point and element connectivity.
Checking the numerical grid orientation.
Identifying edges and vertices.
Computing centers of gravity.
Setting the control volume structure.
Searching for the closest normal neighbors to the surfaces.
Segmentation fault (core dumped)"

the input/output information within the cfg file looks like that:
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
%
% Mesh input file format (SU2, CGNS, NETCDF_ASCII)
MESH_FORMAT= CGNS
%
% Mesh input file
MESH_FILENAME= a.cgns
%
% Convert a CGNS mesh to SU2 format (YES, NO)
CGNS_TO_SU2= YES
%
% Converted SU2 mesh filename
NEW_SU2_FILENAME= new_mesh.su2
%
% Mesh output file
MESH_OUT_FILENAME= mesh_out.su2

But I actually don’t believe that the inp-file is the issue... Regarding to the instructions for cgns import I have installed cgnslib_3.1.4 within the SU2 directory.
(I am a noop when it comes to linux, but I am running Ubuntu and I was simple doing: ./configure -> make -> make install, which was so far that I can tell successful) and before that I have installed hdf5-1.8.12 in the root directory (same way).

Within the SU2_CFD/obj (there was no SU2_CFD/config/ directory) I have removed "-DNO_CGNS" from the Makefile but after checking Makefile.in I haven found that compiler within the c++-comp. list..

If anybody has any ideas where I went wrong I appreciate any ideas
Best Regards,
Josh
Could you please post the complete console output.

Best,
francisco
fpalacios is offline   Reply With Quote

Old   January 30, 2014, 12:01
Default
  #3
New Member
 
Join Date: Apr 2013
Posts: 19
Rep Power: 13
granbycools is on a distinguished road
sure, please see attached file
Attached Files
File Type: txt SU2_log.txt (5.6 KB, 33 views)
granbycools is offline   Reply With Quote

Old   February 12, 2014, 13:11
Default
  #4
Super Moderator
 
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14
economon is on a distinguished road
Hi,

It may be that the library is not correctly linked. Are you building SU2 using the ./configure -> make -> make install process? Within our configure process, we have an option to build with the CGNS library. The configure process will then create new makefiles for you automatically that have removed the -DNO_CGNS directive from all the pertinent makefiles.

Can you please verify that you are building with CGNS by checking the console output from configure or sharing your command line argument that you enter for the configure step (type './configure --help' to see all of the available configure options)?

Hope this helps,
Tom
granbycools likes this.
economon is offline   Reply With Quote

Old   March 25, 2014, 09:33
Default
  #5
New Member
 
Join Date: Apr 2013
Posts: 19
Rep Power: 13
granbycools is on a distinguished road
you were absolutly right. I just linked one of the cgns library but finally succeeded! Thanks a lot for that

I was able to run an simple mesh (with low) quality, but when I am using a little bigger one with about 1 mio elements I receive the follwoing error:

"Successfully wrote the SU2 mesh file.
Three dimensional problem.
10346324 inner elements.
terminate called after throwing an instance of `st9bad_alloc`
what(): std::bad_alloc
Aborted (core dumped)"


any clues where that might comes from?

Last edited by granbycools; March 26, 2014 at 03:50.
granbycools is offline   Reply With Quote

Old   March 26, 2014, 23:44
Default
  #6
Super Moderator
 
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14
economon is on a distinguished road
Quote:
Originally Posted by granbycools View Post
Three dimensional problem.
10346324 inner elements.
terminate called after throwing an instance of `st9bad_alloc`
what(): std::bad_alloc
Aborted (core dumped)"[/I]
Are you running on a single processor? Perhaps you have run out of memory?

Also, does the same error happen if you convert the mesh to SU2 format and then attempt the same simulation with the native SU2 mesh?
economon is offline   Reply With Quote

Old   March 31, 2014, 06:52
Default
  #7
New Member
 
Join Date: Apr 2013
Posts: 19
Rep Power: 13
granbycools is on a distinguished road
Hey,
does anybody know what that means when I am trying parallel computation?
best Regards,
granbycools

mpirun was unable to launch the specified application as it could not access
or execute an executable:

Executable: /home/josh/Documents/SU_CGNS/SU2/bin/SU2_DDC
Node: ubuntu

while attempting to start process rank 0.

Last edited by granbycools; April 2, 2014 at 10:01.
granbycools 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
[Gmsh] Cgns support for gmsh robyTKD OpenFOAM Meshing & Mesh Conversion 1 July 13, 2016 11:27
CGNS Compiling Diego Main CFD Forum 17 December 21, 2014 01:40
parallel support with CGNS format not yet implemented kirkrich SU2 3 January 18, 2013 15:39
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
CGNS libraries, compiling and linking... Ironman80 Main CFD Forum 2 February 14, 2006 22:36


All times are GMT -4. The time now is 10:58.