|
[Sponsors] |
February 22, 2010, 10:04 |
|
#101 |
Member
Nick Gardiner
Join Date: Apr 2009
Location: Chichester, UK
Posts: 94
Rep Power: 17 |
Fuller error message:
cgnsoo.H:383: error: ‘range’ is not a type cgnsoo.H:384: error: ISO C++ forbids declaration of ‘range’ with no type cgnsoo.H:384: error: conflicting declaration ‘const int range’ cgnsoo.H:384: error: ‘range’ has a previous declaration as ‘const CGNSOO::range& range’ cgnsoo.H:384: error: expected ‘,’ or ‘...’ before ‘&’ token Thanks |
|
March 7, 2010, 09:17 |
|
#102 |
Member
Gregor Olenik
Join Date: Jun 2009
Location: http://greole.github.io/
Posts: 89
Rep Power: 17 |
Hi,
same problem here (OpenFoam-1.5-dev Rev 1670 & ubuntu 9.10). Any solutions yet ?? Gregor |
|
March 7, 2010, 14:17 |
|
#103 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Nick, Gregor, did you use the following svn checkout?
svn checkout https://openfoam-extend.svn.sourcefo...TurboMachinery I'm not getting that error, and I don't even see "int range" in the line in question. This compilation should be independent of the OpenFOAM version you are using. Hamdi, I cannot reproduce your error. If you want to retrace my steps: Code:
mkdir $HOME/OpenFOAM/extend/ cd $HOME/OpenFOAM/extend/ svn checkout https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breeder_1.5/OSIG/TurboMachinery cd $HOME/OpenFOAM/extend/TurboMachinery/src ./Allwmake cd $HOME/OpenFOAM/extend/TurboMachinery/applications/utilities/mesh/conversion/cgnsToFoam/ wget http://dl.dropbox.com/u/1261220/CGNSBoundaryConditions.C wmake |
|
March 8, 2010, 04:03 |
|
#104 |
Member
Gregor Olenik
Join Date: Jun 2009
Location: http://greole.github.io/
Posts: 89
Rep Power: 17 |
Hi Anton,
thanks for your reply! Yes i used the same svn link to get the sources. Still the same error. The lines of Question in my "cgnsoo.H" are the following: Code:
// same method using ranges as arguments GridConnectivity1to1_t readGridConnectivity1to1( int index, string& connecname, string& donorname, range& range, range& donorrange, vector<int>& transform ) const; GridConnectivity1to1_t writeGridConnectivity1to1( const string& connecname, const string& donorname, const range& range, const range& donorrange, const vector<int>& transform ); Gregor |
|
March 8, 2010, 05:36 |
|
#105 |
Member
Gregor Olenik
Join Date: Jun 2009
Location: http://greole.github.io/
Posts: 89
Rep Power: 17 |
ok it seems that at least the libaries are compiled now.
looks like i got a problem with the declaration of "range" in the namespace CGNSOO. I added a "CGNSOO::" to every occurance of range& he didnt like. |
|
March 15, 2010, 04:00 |
cgnsToFoam memory usage
|
#106 |
Senior Member
Vincent RIVOLA
Join Date: Mar 2009
Location: France
Posts: 283
Rep Power: 18 |
Dear all,
I try to convert a grid in cgns format to OpenFOAM. The size of the cgns file is about 1.2Go. I have a machine with 16Go of RAM but apparently it is not enough, and there is also 8Go of swap which is used. I don't understand why it uses so much memory to convert the grid. And since I'll have to convert bigger meshes than that, I was wondering if there is something I missed which would help me to reduce memory usage? Any help is welcome. Regards, Vincent |
|
April 14, 2010, 06:02 |
|
#107 | |
Member
hamdi
Join Date: Mar 2009
Posts: 75
Rep Power: 17 |
Quote:
I have just updated my system and my Of to of-1.6. cgnstofoam worked well by this steps: mkdir $HOME/OpenFOAM/extend/ cd $HOME/OpenFOAM/extend/ svn checkout https://openfoam-extend.svn.sourcefo...TurboMachinery cd $HOME/OpenFOAM/extend/TurboMachinery/src ./Allwmake cd $HOME/OpenFOAM/extend/TurboMachinery/applications/utilities/mesh/conversion/cgnsToFoam/ wget http://dl.dropbox.com/u/1261220/CGNS...ryConditions.C wmake thank you for the effort you have made. |
||
May 14, 2010, 10:26 |
|
#108 |
Member
achinta
Join Date: May 2010
Location: Sydney
Posts: 66
Rep Power: 16 |
Hi Martin,
Is the converter for OpenFOAM 1.6 available? I want to convert flow solutions obtained in OpenFOAM to CGNS format(foamToCGNS command). Could we use the converter available for OF-1.5 in OF-1.6 directly? Or do we need to make any changes? Kind regards, Achinta |
|
November 4, 2010, 05:18 |
|
#109 |
Member
Hamza Motiwala
Join Date: Nov 2010
Posts: 41
Rep Power: 16 |
Hello,
I am new to this forum. Since the discussion was about CGNS, I thought of making a relevant request .I am looking for a working sample C program that can read and write data from an unstructured grid file in CGNS Format. Can anyone help me out with this problem please. Will really appreciate the help. Thanks |
|
November 19, 2010, 07:13 |
cgnsToFoam did not recognize faces/patches
|
#110 | |
Senior Member
|
Quote:
Hello, I had same problem when converting the CGNS file generated by MIME (Metacomp Technologies). See error messages below and file attached. // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time --> FOAM Warning : Cell type "QUAD_4" found in zone 0, section 2 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "TRI_3" found in zone 0, section 3 has no OpenFOAM equivalence - skipping --> FOAM Warning : BC "inlet" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "outlet" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "side" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "topbottom" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "cylinder" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : From function polyMesh::polyMesh(... construct from shapes...) in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 582 Found 28176 undefined faces in mesh; adding to default patch. Output of mesh and boundary conditions Could you help me to fix that? Actually the code converted the mesh but all patches had zero faces associated. Only a default patch was identified with all faces. Is there any way to automatically identify the faces of each patch? See the mesh at link below: https://www.4shared.com/file/eYuxdxRQ/gridcgns.html Regards, Guilherme Last edited by aerothermal; November 19, 2010 at 07:53. |
||
November 22, 2010, 14:16 |
|
#111 |
Senior Member
|
One way to fix it is to use the utility "autoPatch"
Code:
$ autoPatch 30 just copy it to your constant/polyMesh and erase all other polyMesh after that visualize in Paraview and rename the patches and types at constant/polyMesh/boundary file regards, Guilherme |
|
March 27, 2011, 03:24 |
|
#112 |
Senior Member
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19 |
Hello,
I wonder how you handle parallel data. As I see it the cgns files are written to the processor directories. Do you think it is possible to write a large 'serial' file in parallel, so that one avoids all the processor files. Best Regards! Fabian |
|
April 6, 2011, 06:15 |
|
#113 |
Member
Kurne
Join Date: Aug 2010
Location: Pune, INDIA
Posts: 88
Rep Power: 16 |
Dear Martin Beaudoin
I have taken the CGNS converter from here http://openfoamwiki.net/index.php/Si...GNS_Converters and as per instruction on this link i am trying to install CGNS converter but i am facing the error when i run ./Allwmake in src directory and the error is src/Makefile.am:31: its definition is in aclocal's search path. make: *** [Makefile.in] Error 1 + make install cd . && /bin/bash /home/sameer/OpenFOAM/sameer-1.5-dev/TurboMachinery/src/libcgnsoo_3.0/config/missing --run automake-1.11 --gnits src/Makefile.am:31: Libtool library used but `LIBTOOL' is undefined src/Makefile.am:31: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/Makefile.am:31: to `configure.in' and run `aclocal' and `autoconf' again. src/Makefile.am:31: If `AC_PROG_LIBTOOL' is in `configure.in', make sure src/Makefile.am:31: its definition is in aclocal's search path. make: *** [Makefile.in] Error 1 + popd I am using OpenFOAM 1.5-dev with gcc version 4.4.3.Will you please help me. Thanks in advance.
__________________
Simulation Is Determination Of Imagination Towards Approximation ® Best Regards Mubeen K Kurne |
|
April 21, 2011, 08:43 |
|
#115 |
Member
Kurne
Join Date: Aug 2010
Location: Pune, INDIA
Posts: 88
Rep Power: 16 |
Dear Maysam
I didn't get anywhere information regarding the CGNS converter on OpenFOAM 1.7.1 and what i read is CGNS is available up to OpenFOAM 1.6 only.And might be it is not available on OpenFOAM 1.7.1. But i am trying to install on OpenFOAM 1.5 dev and still i didn't get rid out of it.I am trying hope in coming days i will install it.
__________________
Simulation Is Determination Of Imagination Towards Approximation ® Best Regards Mubeen K Kurne |
|
May 12, 2011, 12:59 |
|
#116 |
New Member
Jennifer
Join Date: Aug 2009
Location: Germany
Posts: 28
Rep Power: 17 |
Hi,
in the meantime...is there a possibility to convert cgns files to OpenFoam 1.7 or are there still only the converters for OF 1.4 and 1.5? Best regards, Jennifer |
|
May 12, 2011, 13:25 |
|
#117 |
Senior Member
|
Hi OFU,
I used only 1.5 but ran simulations in 1.6-ext and 1.7.1. It works well. Just install the two (or three) distributions and setup the environment in different terminal windows. Regards, Guilherme |
|
June 15, 2011, 10:38 |
|
#119 |
New Member
Jennifer
Join Date: Aug 2009
Location: Germany
Posts: 28
Rep Power: 17 |
Hi,
I tried to convert a cgns file to OpenFOAM with version 1.5. As I want to extract and convert the solutions that are stored in the cgns file as OpenFOAM fields I used the option -saveSolutions. I got the following message: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time --> FOAM Warning : Cell type "QUAD_4" found in zone 0, section 1 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "QUAD_4" found in zone 0, section 2 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "QUAD_4" found in zone 0, section 3 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "QUAD_4" found in zone 0, section 4 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "QUAD_4" found in zone 0, section 5 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "QUAD_4" found in zone 0, section 6 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "QUAD_4" found in zone 0, section 7 has no OpenFOAM equivalence - skipping --> FOAM Warning : BC "BC_1" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "BC_2" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "BC_3" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "BC_4" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "BC_5" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "BC_6" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "BC_7" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : From function polyMesholyMesh(... construct from shapes...) in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 576 Found 88064 undefined faces in mesh; adding to default patch. Output of mesh and boundary conditions --> FOAM Warning : Skipping unknown CGNS scalar : "P" --> FOAM Warning : Skipping unknown CGNS scalar : "R" --> FOAM Warning : Skipping unknown CGNS scalar : "T" --> FOAM Warning : Skipping unknown CGNS scalar : "U" --> FOAM Warning : Skipping unknown CGNS scalar : "V" --> FOAM Warning : Skipping unknown CGNS scalar : "W" Can anybody tell me how to solve this problem? And where are the converted solutions stored, if the converter works without problems? In a 0/ directory? The only files I got after running cgnsToFoam were the five files in constant/polyMesh... Thanks Jennifer |
|
August 7, 2011, 06:20 |
|
#120 | |
New Member
Roland
Join Date: Jul 2010
Posts: 8
Rep Power: 16 |
Quote:
sudo apt-get install libtool |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issues with CGNS formatted mesh in SU2 | jlwhelan28 | SU2 | 5 | February 13, 2017 12:48 |
[Gmsh] Cgns support for gmsh | robyTKD | OpenFOAM Meshing & Mesh Conversion | 1 | July 13, 2016 12:27 |
SU2 not built with CGNS support. | maximus23 | SU2 Installation | 5 | May 11, 2016 13:05 |
writing link between two CGNS files | t.teschner | Main CFD Forum | 1 | February 4, 2014 11:26 |
parallel support with CGNS format not yet implemented | kirkrich | SU2 | 3 | January 18, 2013 16:39 |