CGNS converters available
Hello,
We are pleased to announce that conversion between the CGNS standard format and OpenFOAM is now possible with two new converters that we have contributed to the openfoam-extend Subversion site. The first one, foamToCGNS, will convert an OpenFOAM mesh, boundary conditions and solutions to a CGNS file. The CGNS solutions are always stored at the mesh nodes. The resulting CGNS mesh will be unstructured. The second converter, cgnsToFoam will take a CGNS mesh (structured or unstructured) and its boundary conditions and will convert them to a valid OpenFoam mesh. The solution stored in the CGNS file can also be extracted to be used as an initial solution. Currently, both converters are able to deal only with stationnary flows on a fixed mesh. The converters also depend on a set of libraries that both need to be installed and compiled as well. The first one is cgnslib_2.5, a recent version of cgnslib from http://www.cgns.org/. The second one is libcgnsoo_3.0, a C++ wrapper around cgnslib_2.5. Allwmake files are provided for compiling the libraries and the converters. A set of simple test cases illustrating the use of both converters are also available. We plan to eventually put some additionnal documentation on the OpenFoam Wiki about these converters. So watch the Sig Turbomachinery section of the Wiki for more information. For now, the -help option will give you a rough description of the available options. You might have to adjust the Allwmake and Make/options files for your own installation or for your version of OpenFoam. Please take a quick look at those files before compiling. Here are the URLs for dowloading the CGNS converters, companion libraries and the test cases using svn. Converters: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breede r/OSIG/TurboMachinery/applications Libraries: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breede r/OSIG/TurboMachinery/src Test cases: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breede r/OSIG/TurboMachinery/tutorials Enjoy. Martin Beaudoin, Hydro-Quebec - IREQ Robert Magnan, Hydro-Quebec - IREQ |
Hi Martin,
Please let me know
Hi Martin,
Please let me know how to build CGNS converters. I tried compile but not succeed. After linking some files (pointVolInterpolation.H pointVolInterpolation.C pointVolInterpolate.C ) to cgnsToFoam directory, I typed ./Allwnake under TurboMachinery. I got following message. wmake Making dependency list for source file SolutionConverter.C could not open file structure_t.H for source file SolutionConverter.C : : : Make/linux64GccDPOpt/SolutionConverter.o: In function `void Foam::pointVolInterpolation::interpolate<double>(F oam::GeometricField<double,> const&, Foam::GeometricField<double,>&) const': SolutionConverter.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZNK4Foam21pointVolInterpolation11interpolat eIdEEvRKNS_14GeometricFieldIT_ NS_15pointPatchFieldENS_9pointMeshEEERNS2_IS3_NS_1 2fvPatchFieldENS_7volMeshEEE[v oid Foam::pointVolInterpolation::interpolate<double>(F oam::GeometricField<double,> const&, Foam::GeometricField<double,>&) const]+0x14): undefined reference to `Foam::pointVolInterpolation::debug' : : : Foam::dimensionSet const&, std::vector<foam::vector<double>, std::allocator<foam::vector<double> > > const&, bool, Foam::word, Foam::fvMesh&)]+0xaf9): undefined reference to `Foam::pointVolInterpolation::~pointVolInterpolati on()' collect2: ld returned 1 exit status |
Hello Hong,
You need to adj
Hello Hong,
You need to adjust your file cgnsToFoam/Make/options. Read the comments at the top of that file. I guess a proper Readme file would be usefull here as well. It will be added when I will port the converters to OF 1.5. Martin |
Hello Martin,
Thank you for y
Hello Martin,
Thank you for your information. I read cgnsToFoam/Make/options, and successed in build. |
Hello,
I'm trying to instal
Hello,
I'm trying to install the cgnsToFoam converter in OF 1.5. When I compile the utility I get the error message: cgnsToFoam.C:43:35: error: pointVolInterpolation.H: No such file or directory It seems like pointVolInterpolation is not longer a part of the OpenFOAM distribution. Has anybody managed to compile the cgnsToFoam utility for OF 1.5. Any help is greatly appreciated! Regards, Anders |
Hello Anders,
Just read a f
Hello Anders,
Just read a few posts up from this thread. (Or read the header from the file cgnsToFoam/Make/options.) The compilation will not get much further though. The code still needs some adjustments for compiling with 1.5. The source code for the CGNS converters for OF 1.5 will be posted on openfoam-extend under the Breeder_1.5 branch asap. Martin |
Hello Martin,
Thanks for yo
Hello Martin,
Thanks for your information about the work with porting the CGNS converter to OF 1.5. You guys in the turbomachinery group are doing a good job! I'm a new user of OpenFOAM, I'm now in the process of trying it out. We have until now used our own in-house gridgenerator and solver. I'm now very curious in comparing results using OpenFOAM with our own solver. In that process I need the cgnsToFoam converter for converting the grids created using our gridgenerator. I would be very grateful if you could just e-mail me a OF 1.4 executable of the cgnsToFoam. That would help me a lot :-) . If you would like the e-mail me the executable, my address is: anders@cfdnorway.no Thanks in advance. Anders |
Hello Anders,
cgnsToFoam an
Hello Anders,
cgnsToFoam and foamToCGNS compile without any problem with OF 1.4.1-dev and OF 1.4.1. Have you tried to compile the converters with either versions of OF 1.4.1? Martin |
Hi Martin,
No, I'm a new us
Hi Martin,
No, I'm a new user of OF and have only installed OF 1.5, I was hoping that I did not have to install older versions. But I can do that if that is the best way of getting the converter. Regards, Anders |
Hi Anders
> No, I'm a new u
Hi Anders
> No, I'm a new user of OF and have only installed OF 1.5, I was hoping that I did not have to install older versions. But I can do that if that is the best way of getting the converter. Well, if you want to run a binary version of the CGNS converters for OF 1.4.1, you will have to install OF 1.4.1 or 1.4.1-dev anyway because of the runtime dependency of the converters on OF dynamic libraries. So give it a try, or wait a little bit for the 1.5 version of the converters. Martin |
Hello,
The CGNS converters
Hello,
The CGNS converters are now available for OpenFOAM 1.5 Here are the svn URLs for dowloading from openfoam-extend the CGNS converters, the companion libraries and the test cases. Converters: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breede r_1.5/OSIG/TurboMachinery/applications Libraries: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breede r_1.5/OSIG/TurboMachinery/src Test cases: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breede r_1.5/OSIG/TurboMachinery/tutorials I am also in the process of writing some basic documentation for these converters. The information will be available at the following URL on the OpenFOAM Wiki: http://openfoamwiki.net/index.php/Si...GNS_Converters In the meantime, here is a quick recipe for downloading, compiling and testing the converters: # Downloading the code from openfoam-extend svn checkout https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breede r_1.5/OSIG/TurboMachinery # Compiling the converters cd TurboMachinery/src ./Allwmake cd ../applications ./Allwmake # Testing the converters cd ../tutorials/cgnsConverters/ ./Allrun Enjoy. Martin Beaudoin, Hydro-Quebec - IREQ |
Thanks a lot Martin!
Actuall
Thanks a lot Martin!
Actually I downloaded the 1.4.1 version of OF this weekend and managed to compile and run the cgnsToFoam converter. But this makes use of OF much easier. I will try to download and install it this evening. Regards, Anders |
Hi,
i have installed the CG
Hi,
i have installed the CGNS converters and i'm trying to convert some CGNS files to foam with cgnsToFoam. However, i encounter some problems like: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time --> FOAM Warning : Cell type "TRI_3" 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 "BAR_2" found in zone 0, section 4 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "NODE" found in zone 0, section 5 has no OpenFOAM equivalence - skipping --> FOAM Warning : From function polyMesh::polyMesh(... construct from shapes...) in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 576 Found 262798 undefined faces in mesh; adding to default patch. Output of mesh and boundary conditions Other case: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time --> FOAM Warning : Cell type "TRI_3" found in zone 0, section 1 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "TRI_3" 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 : Cell type "TRI_3" found in zone 0, section 4 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "TRI_3" found in zone 0, section 5 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "TRI_3" found in zone 0, section 6 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "TRI_3" found in zone 0, section 7 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "TRI_3" found in zone 0, section 8 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "TRI_3" found in zone 0, section 9 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "TRI_3" found in zone 0, section 10 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "TRI_3" found in zone 0, section 11 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "TRI_3" found in zone 0, section 12 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "TRI_3" found in zone 0, section 13 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "TRI_3" found in zone 0, section 14 has no OpenFOAM equivalence - skipping --> FOAM Warning : BC "intake" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "exhaust" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "intake ramp" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "downstream" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "lower" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "upper" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "upstream" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "strake" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "vertical tail" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "horizontal tail" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "side" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "wing" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "fuselage" : patch defined by a unsupported PointSetType_t - skipped. --> FOAM Warning : BC "symmetry" : 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 576 Found 27656 undefined faces in mesh; adding to default patch. Output of mesh and boundary conditions Is there any constraints on the cgns file, mesh or boundary name which i shuold respect ? Or is it an another problem ? Thank you in advance Eric |
Hello Eric,
The warnings ab
Hello Eric,
The warnings about the "Cell type" is for the non-3D cell types present in your CGNS file: triangles (TRI_3) rectangle (QUAD_4) line segments (BAR_2) points (NODE) As of now, the cgnsToFoam converter only supports the following type of 3D cells for unstructured mesh: tetrahedron (TETRA_4) pyramids (PYRA_5) prisms (PENTA_6) hexahedron (HEXA_8) It looks like your unstructured mesh has a lot of 2D elements (triangles and rectangles). The current implementation of cgnsToFoam will not reconstruct 3D cells from a bunch of 2D faces. This 3D topology information is normally known from your CGNS generator, so you need to find a way to export your mesh as 3D cells (tets, hexs, pyramids or prisms) and not as 2D faces. Is your unstructured mesh exported in CGNS as a bunch of 2D faces, or do you have 3D cells in your mesh as well? As for the following type of message: "FOAM Warning : BC "exhaust" : patch defined by a unsupported PointSetType_t - skipped.", It looks like some, if not all, of your boundary conditions are defined in your CGNS file as something other than a point list, or a point range. Which software did you use for generating your CGNS file? Is it possible for you to share this CGNS file? We have developped the CGNS converters based on the outputs generated by the commercial softwares we are using for our CFD simulations and mesh modelling. During that process, we have discovered that the CGNS "standard" can be implemented differently from vendor to vendor, so your CGNS file might be yet another implementation that we need to make some adjustments for. Martin |
Hello Martin,
thank you ver
Hello Martin,
thank you very much for your detailed answer. The meshes i'm trying to convert contain 3D cells as 2D cells, for the boundaries. Actually, i can see the geometry made of 3D cells which are well converted. The problem i have is that i lose the bidimensional boundaries where i will have to impose conditions in order to run an OpenFOAM simulation. Typically, it creates one "defaultWall" in place of my boundary surfaces. I don't understand how you define boundary conditions if you export only 3D elements. Do you recreate the boundaries surfaces after the conversion? Generally, the CGNS files we have have been generated by different software. In this case, i think they have been generated with IcemCFD. I don't know which commercial software you are using. Thank you again. Eric |
Hello Eric,
Since you do ge
Hello Eric,
Since you do get all the 3D cells out of the conversion, the real problem here seems to be related to the BC information that is stored in the CGNS file and defined by an "unsupported PointSetType_t". The best way for me to help you if to either get hold of your CGNS file, or for you to reproduce the problem using another CGNS file that you could share. Martin |
Hi,
I am trying to install t
Hi,
I am trying to install the cgns converters following the instructions given in the openwiki website. I am getting the following error message while running the ./Allclean command to compile the libraries: /bin/rm -f LINUX/*.o cd . && aclocal -I config /bin/sh: aclocal: command not found make: *** [aclocal.m4] Error 127 Just in case if it helps, I have downloaded all the files in my user directory. It would be really helpful if someone could let me know what the problem could be. Thank you in advance, Srikara |
Oh I forgot to mention that I
Oh I forgot to mention that I am installing the converters in the OF 1.5 version.
Thank you, Srikara |
Hi,
i would like to use the
Hi,
i would like to use the cgns converters and i have a question concerning the boundaries condition conversion. I have a OpenFoam case, i convert it to cgns but when using this file with a in-house program, all the boundary conditions are set to NULL. Reconverting this cgns file to OpenFoam case, i have other boundary conditions, which do not correspond to the initial OpenFoam case. For example, the folowing initial conditions boundaryname1 { type wall; nFaces 788; startFace 20078407; } boundaryname2 { type wall; nFaces 10217; startFace 20079195; } become, after foamToCGNS and then cgnsToFoam, boundaryname1 { type patch; physicalType empty; nFaces 788; startFace 20087646; } boundaryname2 { type patch; physicalType inlet; nFaces 10217; startFace 20088434; Walls have been changed in empty and inlet conditions. Are there specifications to avoid such problems? Thank you Bastien |
Hello Srikara,
> /bin/sh: a
Hello Srikara,
> /bin/sh: aclocal: command not found You are missing a package called automake on your system. Martin |
Hello Bastien,
Can you see
Hello Bastien,
Can you see the BC information in the CGNS file using a third-party software like adfviewer from the cgnsTools? One possible explanation is that your in-house program cannot handle unstructured mesh. As for the conversion back to OpenFOAM, have you tried doing this back and forth conversion without going through your in-house software? Can you share your CGNS file and/or your OpenFOAM case? Martin |
Hello Martin,
Thank you so m
Hello Martin,
Thank you so much for the help. I will install the automake package and try to install the libraries again. Thank you once again. Srikara |
Hello Martin,
I installed au
Hello Martin,
I installed automake and ran the ./configure command and ./Allclean commands which work perfectly. But when I run the ./Allwmake command I get a message saying " No rule to make target base.lo required by libcgnsoo3.la". I searched on other linux forums for an answer. I found out I had a few other packages missing as well. But nothing seems to be working. I have already spent a week trying to find a solution. Do you know if I am missing any other package or do I have to modify the ./Allwmake script? I am just posting the last 20 lines of my session file here: + make cd . && /bin/sh /home/smahishi/OpenFOAM/smahishi-1.5/TurboMachinery/src/libcgnsoo_3.0/config/mis sing --run autoheader rm -f stamp-h1 touch config.h.in make all-recursive make[1]: Entering directory `/home/smahishi/OpenFOAM/smahishi-1.5/TurboMachinery/src/libcgnsoo_3.0' Making all in src make[2]: Entering directory `/home/smahishi/OpenFOAM/smahishi-1.5/TurboMachinery/src/libcgnsoo_3.0/src' make[2]: *** No rule to make target `base.lo', needed by `libcgnsoo3.la'. Stop. make[2]: Leaving directory `/home/smahishi/OpenFOAM/smahishi-1.5/TurboMachinery/src/libcgnsoo_3.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/smahishi/OpenFOAM/smahishi-1.5/TurboMachinery/src/libcgnsoo_3.0' make: *** [all] Error 2 + make install Making install in src make[1]: Entering directory `/home/smahishi/OpenFOAM/smahishi-1.5/TurboMachinery/src/libcgnsoo_3.0/src' make[1]: *** No rule to make target `base.lo', needed by `libcgnsoo3.la'. Stop. make[1]: Leaving directory `/home/smahishi/OpenFOAM/smahishi-1.5/TurboMachinery/src/libcgnsoo_3.0/src' make: *** [install-recursive] Error 1 + popd Could you please help me out with this? Thank you, Srikara |
I am a researcher uses OF-1.4.
I am a researcher uses OF-1.4.1, and I w'd like installig CGNSCONVERTER , but, I didn't know if this website is applicable for this or not ,
http://openfoamwiki.net/index.php/Si...GNS_Converters because i find in it OF-1.5: still I followed the command lines, but when I type. / Allwmake of 2.2, I receive the following message: make[1]: entrant dans le répertoire « /home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstool s/adfviewer » cc -DPROTOTYPE -O2 -I../common -I/home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnslib_2.5 -I/home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnslib_2.5/adf -c adfwish.c adfwish.c:15:16: error: tk.h: Aucun fichier ou répertoire de ce type adfwish.c:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' adfwish.c: In function 'main': adfwish.c:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' adfwish.c:65: error: 'Tcl_Interp' undeclared (first use in this function) adfwish.c:65: error: (Each undeclared identifier is reported only once adfwish.c:65: error: for each function it appears in.) adfwish.c:65: error: 'interp' undeclared (first use in this function) adfwish.c:78: error: 'Tcl_AppInit' undeclared (first use in this function) adfwish.c: In function 'Tcl_AppInit': adfwish.c:103: error: expected declaration specifiers before 'Tcl_Interp' adfwish.c:105: error: 'TCL_ERROR' undeclared (first use in this function) adfwish.c:111: error: 'Tk_SafeInit' undeclared (first use in this function) adfwish.c:152: error: 'TCL_GLOBAL_ONLY' undeclared (first use in this function) adfwish.c:153: error: 'TCL_OK' undeclared (first use in this function) make[1]: *** [adfwish.o] Erreur 1 make[1]: quittant le répertoire « /home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstool s/adfviewer » make: *** [prog-adfviewer] Erreur 2 ----- adfviewer ----- make[1]: entrant dans le répertoire « /home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstool s/adfviewer » installing shell scripts to /home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstool s/platforms/linuxGccDPOpt/bin cc -DPROTOTYPE -O2 -I../common -I/home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnslib_2.5 -I/home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnslib_2.5/adf -c adfwish.c adfwish.c:15:16: error: tk.h: Aucun fichier ou répertoire de ce type adfwish.c:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' adfwish.c: In function 'main': adfwish.c:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' adfwish.c:65: error: 'Tcl_Interp' undeclared (first use in this function) adfwish.c:65: error: (Each undeclared identifier is reported only once adfwish.c:65: error: for each function it appears in.) adfwish.c:65: error: 'interp' undeclared (first use in this function) adfwish.c:78: error: 'Tcl_AppInit' undeclared (first use in this function) adfwish.c: In function 'Tcl_AppInit': adfwish.c:103: error: expected declaration specifiers before 'Tcl_Interp' adfwish.c:105: error: 'TCL_ERROR' undeclared (first use in this function) adfwish.c:111: error: 'Tk_SafeInit' undeclared (first use in this function) adfwish.c:152: error: 'TCL_GLOBAL_ONLY' undeclared (first use in this function) adfwish.c:153: error: 'TCL_OK' undeclared (first use in this function) make[1]: *** [adfwish.o] Erreur 1 make[1]: quittant le répertoire « /home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstool s/adfviewer » make: *** [install-adfviewer] Erreur 2 Don't forget to add the following directory to your path in order to access the CGNS Tools: /home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstool s/platforms/linuxGccDPOpt/bin ~/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5 hamdi@nrj1pc75:~/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5$ Best regards. can any body say me which wrong! |
Bonjour Hamdi,
Basically, y
Bonjour Hamdi,
Basically, you are missing the dev package for Tcl/Tk on your system. >>> adfwish.c:15:16: error: tk.h: Aucun fichier ou répertoire de ce type Tcl/Tk is necessary for compiling the cgnstools, which are quite handy to have around when playing with CGNS files. Martin |
Thank you for your reply and h
Thank you for your reply and help;
i did what you said to me , I have installed Tcl/Tk on my system, it runs fifty Ok ,but, i still have this message when i do this command line in section 2.3: cd $WM_PROJECT_USER_DIR/TurboMachinery/src/cgnstools_2.5 tar -zxvf ./cgnstools-2-5-2.tar.gz ./Allwmake .... .... ... Don't forget to add the following directory to your path in order to access the CGNS Tools: /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstools/plat forms/linux64GccDPOpt/bin ~/OpenFOAM/Hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5 Thank you Hamdi |
This is not an error message.
This is not an error message.
It means that the cgnstools applications (adfviewer, etc) are installed under this directory. Configure your PATH accordingly if you plan on using the cgnstools. Otherwise, just forget about it. Martin |
Thanks for this reply,
I Ch
Thanks for this reply,
I Chose to forget about it, but, in section 3 when I type ./Allrun , I have this message : ./Allrun: line 8: cgnsToFoam: command not found Can't open constant/polyMesh/boundary: No such file or directory at -e line 3. Running simpleFoam... --> FOAM FATAL ERROR : Cannot find file "points" in directory "constant/polyMesh" From function Time::findInstance(const word& dir, const word& name) in file db/Time/findInstance.C at line 133. FOAM exiting Done. /*---------------------------------------------------------------------------*\ | ========= | | | \ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \ / O peration | Version: 1.4.1 | | \ / A nd | Web: http://www.openfoam.org | | \/ M anipulation | | \*---------------------------------------------------------------------------*/ Exec : blockMesh .. case Date : Jan 29 2009 Time : 09:49:46 Host : nrj0pc238 PID : 24061 Root : .. Case : case Nprocs : 1 Create time Reading block mesh description dictionary Creating block mesh Creating blockCorners Creating curved edges Creating blocks Creating patches Creating block mesh topology Default patch type set to empty Check block mesh topology Basic statistics Number of internal faces : 3 Number of boundary faces : 18 Number of defined boundary faces : 18 Number of undefined boundary faces : 0 Checking patch -> block consistency Creating block offsets Creating merge list . Creating points Creating cells Creating patches Creating mesh from block mesh Default patch type set to empty Creating merge patch pairs Writing polyMesh end Running simpleFoam... ./Allrun: line 14: foamToCGNS: command not found Done. ln: création d'un lien symbolique `mesh.cgns' vers `../test2/case/ConversionCGNS/*.cgns': Le fichier existe. ./Allrun: line 10: cgnsToFoam: command not found Running simpleFoam... Done. [Hamdi@nrj0pc238 cgnsConverters]$ although the script ./Allrun exists in $WM_PROJECT_USER_DIR/TurboMachinery/tutorials/cgnsConverters folder Thanks again. Hamdi |
Hello Hamdi.
Well, it looks
Hello Hamdi.
Well, it looks like cgnsToFoam is not available, meaning that the compilation of cgnsToFoam failed somehow. Would you mind sending me the complete output generated when trying to compile cgnsToFoam? Email is fine. Martin |
Thanks for reply
cd $WM_PRO
Thanks for reply
cd $WM_PROJECT_USER_DIR/TurboMachinery/applications ./Allclean ./Allwmake this gives: [Hamdi@nrj0pc238 applications]$ ./Allwmake + cd utilities + wmake all make[1]: entrant dans le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh » make[2]: entrant dans le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn » make[3]: entrant dans le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn /props » make[3]: Rien à faire pour « application ». make[3]: quittant le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn /props » make[3]: entrant dans le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn /tmp » make[4]: entrant dans le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn /tmp/props » make[4]: Rien à faire pour « application ». make[4]: quittant le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn /tmp/props » make[4]: entrant dans le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn /tmp/prop-base » make[4]: Rien à faire pour « application ». make[4]: quittant le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn /tmp/prop-base » make[4]: entrant dans le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn /tmp/text-base » make[4]: Rien à faire pour « application ». make[4]: quittant le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn /tmp/text-base » make[3]: quittant le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn /tmp » make[3]: entrant dans le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn /prop-base » make[3]: Rien à faire pour « application ». make[3]: quittant le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn /prop-base » make[3]: entrant dans le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn /text-base » make[3]: Rien à faire pour « application ». make[3]: quittant le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn /text-base » make[2]: quittant le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/.svn » make[2]: entrant dans le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/conv ersion » make[3]: entrant dans le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/conv ersion/cgnsToFoam » SOURCE=cgnsToFoam.C ; g++ -m64 -Dlinux64 -DDP -Wall -W -Wno-unused-parameter -Wno-old-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/Hamdi/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/home/Hamdi/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -I/home/Hamdi/OpenFOAM/OpenFOAM-1.4.1/src/dynamicMesh/lnInclude -I/home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/co nversion/cgnsToFoam/../../../../../src/cgnslib_2.5/platforms/linux64GccDPOpt/inc lude -I/home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/co nversion/cgnsToFoam/../../../../../src/libcgnsoo_3.0/platforms/linux64GccDPOpt/i nclude -IlnInclude -I. -I/home/Hamdi/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -DOPENFOAM_VERSION=141 -c $SOURCE -o Make/linux64GccDPOpt/cgnsToFoam.o cgnsToFoam.C:43:35: error: pointVolInterpolation.H: Aucun fichier ou répertoire de ce type FoamReplaceChar.H:32: warning: 'std::string FoamReplaceChar(const std::string&, char, char)' defined but not used make[3]: *** [Make/linux64GccDPOpt/cgnsToFoam.o] Erreur 1 make[3]: quittant le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/conv ersion/cgnsToFoam » make[2]: *** [cgnsToFoam] Erreur 2 make[2]: quittant le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh/conv ersion » make[1]: *** [conversion] Erreur 2 make[1]: quittant le répertoire « /home/Hamdi/OpenFOAM/Hamdi-1.4.1/TurboMachinery/applications/utilities/mesh » make: *** [mesh] Erreur 2 Hamdi |
Hello Hamdi,
>>> cgnsToFoam
Hello Hamdi,
>>> cgnsToFoam.C:43:35: error: pointVolInterpolation.H: Aucun fichier ou répertoire de ce type You need to adjust the file cgnsToFoam/Make/options when compiling for OpenFOAM 1.4.1. The necessary adjustment is documented in the file cgnsToFoam/Make/options. I have just made some modification to section "2.4 Compiling the CGNS converters" on the Wiki page so this information will be easier to find for now on. Sorry about that one. Martin |
Hello Martin!
Thanks for th
Hello Martin!
Thanks for this help, I followed what you writen in Wiki, and now it works well. Thanks again. Hamdi |
Hi foamers!
I installed the
Hi foamers!
I installed the CGNSconvertor in redhat succefully (of course with wiki web) , but, now I'm installing it in ubuntu 8.10 32 bit in my laptop , and I have had an error when I compiled the companion libraries : + wmake libso OpenFoamTurbo wmakeLnInclude: linking include files to /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/OpenFoamTurbo/lnInclude Making dependency list for source file finiteVolume/fields/fvPatchFields/derived/profile1DfixedValue/profile1DfixedValu eFvPatchFields.C Making dependency list for source file finiteVolume/fields/fvPatchFields/derived/profile1DfixedValue/profile1DRawData.C SOURCE=finiteVolume/fields/fvPatchFields/derived/profile1DfixedValue/profile1Dfi xedValueFvPatchFields.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/hamdi/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/hamdi/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/hamdi/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/profile1DfixedValueFvPatchFields.o SOURCE=finiteVolume/fields/fvPatchFields/derived/profile1DfixedValue/profile1DRa wData.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/hamdi/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/hamdi/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/hamdi/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/profile1DRawData.o '/home/hamdi/OpenFOAM/hamdi-1.5/lib/linuxGccDPOpt/libOpenFoamTurbo.so' is up to date. + pwd + CGNSLIBHOME=/home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnslib_2.5 + [ -e /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnslib_2.5 -a ! -r /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnslib_2.5/platforms/linuxGcc DPOpt/lib/libcgns_2.5.a ] + pushd /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnslib_2.5 ./Allwmake: 1: pushd: not found + ./configure --prefix=/home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnslib_2.5/platforms /linuxGccDPOpt ./Allwmake: 1: ./configure: not found + make make: *** Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt. + mkdir -p /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnslib_2.5/platforms/linuxGcc DPOpt/include + mkdir -p /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnslib_2.5/platforms/linuxGcc DPOpt/lib + make install make: *** Pas de règle pour fabriquer la cible « install ». Arrêt. + ln -s /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnslib_2.5/platforms/linuxGcc DPOpt/lib/libcgns.a /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnslib_2.5/platforms/linuxGcc DPOpt/lib/libcgns_2.5.a + popd ./Allwmake: 1: popd: not found + pwd + LIBCGNSOOHOME=/home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/libcgnsoo_3.0 + [ -e /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/libcgnsoo_3.0 -a ! -r /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/libcgnsoo_3.0/platforms/linuxG ccDPOpt/lib/libcgnsoo3.a ] + pushd /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/libcgnsoo_3.0 ./Allwmake: 1: pushd: not found + ./bootstrap ./Allwmake: 1: ./bootstrap: not found + ./configure --prefix=/home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/libcgnsoo_3.0/platfor ms/linuxGccDPOpt --with-CGNSLIBHOME=/home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnslib_2.5 /platforms/linuxGccDPOpt ./Allwmake: 1: ./configure: not found + make make: *** Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt. + make install make: *** Pas de règle pour fabriquer la cible « install ». Arrêt. + popd ./Allwmake: 1: popd: not found Thanks in advance for help. |
My mistake, pushd and popd are
My mistake, pushd and popd are not available for /bin/sh under Ubuntu.
The fix is now available on openfoam-extend. Just do a "svn update" of your local copy of the TurboMachinery Breeder project. Martin |
hi ! Martin,
It has a few d
hi ! Martin,
It has a few days when I put a question about an Pelton injector (nozzle), you can see : http://www.cfd-online.com/cgi-bin/Op...cus/discus.cgi. but I didn't recieved any answer. In fact I looking for a case which talking about a twophasic flow in axisymetric geometry preprocessing with a RANS turbulence. some ideas will be welcome. Hamdi. |
Hamdi,
This thread is about
Hamdi,
This thread is about the CGNS converters. Please stop cross-posting or hijaking threads like this, you are just injecting noise into the Forum. And no, I cannot help you with your twophasic case. Martin |
hello! Martin
I apologize t
hello! Martin
I apologize to all foamers to this question that I asked, I was really stick, and my thanks to you for the support that you have done for me to install the CGNS converter few days ago, the converter is installed in centos5. 2 (redhat) I apologize again. Hamdi. |
Hello Martin!
I returned on d
Hello Martin!
I returned on debian to install the CGNSFOAM converter, I done what you told me there are a few days (I typed "svn update") but I always receive the following message when I compile the libraries of the converter (if I made mistakes that because I have'nt a great experience in lunix): ~/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstools ~/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5 loading cache ./config.cache checking if gcc is requested... no checking for cc... (cached) cc checking whether the C compiler (cc ) works... yes checking whether the C compiler (cc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking if compiler supports prototyping... yes checking for object suffix... (cached) o checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking for executable suffix... (cached) no checking if debugging is enabled... no checking for ranlib... (cached) ranlib checking for strip... (cached) strip checking if CGNS directory was specified... ../../cgnslib_2.5 checking if system was specified... no checking if 64bit support is requested... no checking cgsystem... LINUX checking if cutting plane is requested... yes checking if mesh boundaries is requested... yes checking for matherr in -lm... (cached) yes checking return type of signal handlers... (cached) void checking if ADFH directory was specified... not used checking how to run the C preprocessor... (cached) cc -E checking for X... (cached) libraries , headers checking if Tcl directory was specified... no checking if Tk directory was specified... no checking for installed version of Tk... /usr/lib checking for GL/gl.h... (cached) yes checking for a BSD compatible install... (cached) /usr/bin/install -c checking if multi-platform support is requested... no checking where to install executables... /home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstool s/platforms/linuxGccDPOpt/bin checking where to install Tcl scripts... /home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstool s/platforms/linuxGccDPOpt/share/cgnstools checking whether make sets ${MAKE}... (cached) yes Makefile already exists - renamed to Makefile.bak make.defs already exists - renamed to make.defs.bak cgconfig already exists - renamed to cgconfig.bak creating ./config.status creating Makefile creating make.defs creating cgconfig ----- adfviewer ----- make[1]: entrant dans le répertoire « /home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstool s/adfviewer » cc -DPROTOTYPE -O2 -I../common -I/home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnslib_2.5 -I/home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnslib_2.5/adf -c adfwish.c adfwish.c:15:16: error: tk.h: Aucun fichier ou répertoire de ce type adfwish.c:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' adfwish.c: In function 'main': adfwish.c:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' adfwish.c:65: error: 'Tcl_Interp' undeclared (first use in this function) adfwish.c:65: error: (Each undeclared identifier is reported only once adfwish.c:65: error: for each function it appears in.) adfwish.c:65: error: 'interp' undeclared (first use in this function) adfwish.c:78: error: 'Tcl_AppInit' undeclared (first use in this function) adfwish.c: In function 'Tcl_AppInit': adfwish.c:103: error: expected declaration specifiers before 'Tcl_Interp' adfwish.c:105: error: 'TCL_ERROR' undeclared (first use in this function) adfwish.c:111: error: 'Tk_SafeInit' undeclared (first use in this function) adfwish.c:152: error: 'TCL_GLOBAL_ONLY' undeclared (first use in this function) adfwish.c:153: error: 'TCL_OK' undeclared (first use in this function) make[1]: *** [adfwish.o] Erreur 1 make[1]: quittant le répertoire « /home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstool s/adfviewer » make: *** [prog-adfviewer] Erreur 2 ----- adfviewer ----- make[1]: entrant dans le répertoire « /home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstool s/adfviewer » installing shell scripts to /home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstool s/platforms/linuxGccDPOpt/bin cc -DPROTOTYPE -O2 -I../common -I/home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnslib_2.5 -I/home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnslib_2.5/adf -c adfwish.c adfwish.c:15:16: error: tk.h: Aucun fichier ou répertoire de ce type adfwish.c:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' adfwish.c: In function 'main': adfwish.c:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' adfwish.c:65: error: 'Tcl_Interp' undeclared (first use in this function) adfwish.c:65: error: (Each undeclared identifier is reported only once adfwish.c:65: error: for each function it appears in.) adfwish.c:65: error: 'interp' undeclared (first use in this function) adfwish.c:78: error: 'Tcl_AppInit' undeclared (first use in this function) adfwish.c: In function 'Tcl_AppInit': adfwish.c:103: error: expected declaration specifiers before 'Tcl_Interp' adfwish.c:105: error: 'TCL_ERROR' undeclared (first use in this function) adfwish.c:111: error: 'Tk_SafeInit' undeclared (first use in this function) adfwish.c:152: error: 'TCL_GLOBAL_ONLY' undeclared (first use in this function) adfwish.c:153: error: 'TCL_OK' undeclared (first use in this function) make[1]: *** [adfwish.o] Erreur 1 make[1]: quittant le répertoire « /home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstool s/adfviewer » make: *** [install-adfviewer] Erreur 2 Don't forget to add the following directory to your path in order to access the CGNS Tools: /home/users/hamdi/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5/cgnstool s/platforms/linuxGccDPOpt/bin ~/OpenFOAM/hamdi-1.4.1/TurboMachinery/src/cgnstools_2.5 Thanks in advance. Hamdi. |
Hamdi,
You already asked th
Hamdi,
You already asked the exact same question one month ago, and I already provided you with the answer. Just scroll back a little bit.... Martin |
Hi, Martin
Thanks for repply
Hi, Martin
Thanks for repply Yes I already installed tcl/tk, in debian and ubuntu by: "apt-get install " command, but, I still have the errors, I think I should do modifications in Allwmake file! I don't know! I have not had this pb in redhat (centos). Thanks. |
All times are GMT -4. The time now is 11:25. |