CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[CGNS] CGNS converters available

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree7Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2009, 16:06
Default Hello Hamdi, You probably i
  #41
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
Hello Hamdi,

You probably installed the "runtime" package for using tcl/tk, which is good.

You also need to install the "development" package for tcl/tk in order to get the C/C++ file headers like the missing tk.h, and also the libraries for linking applications.

adfwish.c:15:16: error: tk.h: Aucun fichier ou répertoire de ce type

Martin
mbeaudoin is offline   Reply With Quote

Old   March 5, 2009, 10:21
Default I spent all week to installing
  #42
Member
 
hamdi
Join Date: Mar 2009
Posts: 75
Rep Power: 17
hamcer is on a distinguished road
I spent all week to installing the cgnsconverter on ubuntu, but unfortunately I could not succeed. I installed tcl8.4, tcl8.4-dev tcl8.4-doc and tk8.4, tk8.4-dev, tk8.4-doc and some libraries,
compiling src gives:
.........
.........
...........
/usr/bin/install -c -m 644 'range.H' '/home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/libcgnsoo_3.0/platforms/linux GccDPOpt/include/libcgnsoo3/range.H'
make[2]: quittant le répertoire « /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/libcgnsoo_3.0/src »
make[1]: quittant le répertoire « /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/libcgnsoo_3.0/src »
make[1]: entrant dans le répertoire « /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/libcgnsoo_3.0 »
make[2]: entrant dans le répertoire « /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/libcgnsoo_3.0 »
make[2]: Rien à faire pour « install-exec-am ».
make[2]: Rien à faire pour « install-data-am ».
make[2]: quittant le répertoire « /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/libcgnsoo_3.0 »
make[1]: quittant le répertoire « /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/libcgnsoo_3.0 »
+ popd
~/OpenFOAM/hamdi-1.5/TurboMachinery/src



And the cgnstools compilation givse:



hamdi@hamdi-laptop:~/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnstools_2.5$ ./Allwmake
~/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnstools_2.5/cgnstools ~/OpenFOAM/hamdi-1.5/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... no
checking for local Tk distribution... no
configure: warning: couldn't find a tkConfig.sh
configure: warning: edit make.defs and set TKINCS and TKLIBS
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/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnstools_2.5/cgnstools/platfo rms/linuxGccDPOpt/bin
checking where to install Tcl scripts... /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnstools_2.5/cgnstools/platfo rms/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/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnstools_2.5/cgnstools/adfvie wer »
cc -DPROTOTYPE -O2 -I../common -I/home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnslib_2.5 -I/home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnslib_2.5/adf -c adfwish.c
adfwish.c:15:16: error: tk.h: Aucun fichier ou dossier de ce type
adfwish.c:31: erreur: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_'
adfwish.c: In function 'main':
adfwish.c:65: erreur: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_'
adfwish.c:65: erreur: 'Tcl_Interp' undeclared (first use in this function)
adfwish.c:65: erreur: (Each undeclared identifier is reported only once
adfwish.c:65: erreur: for each function it appears in.)
adfwish.c:65: erreur: 'interp' undeclared (first use in this function)
adfwish.c:78: erreur: 'Tcl_AppInit' undeclared (first use in this function)
adfwish.c: In function 'Tcl_AppInit':
adfwish.c:103: erreur: expected declaration specifiers before 'Tcl_Interp'
adfwish.c:105: erreur: 'TCL_ERROR' undeclared (first use in this function)
adfwish.c:111: erreur: 'Tk_SafeInit' undeclared (first use in this function)
adfwish.c:152: erreur: 'TCL_GLOBAL_ONLY' undeclared (first use in this function)
adfwish.c:153: erreur: 'TCL_OK' undeclared (first use in this function)
make[1]: *** [adfwish.o] Erreur 1
make[1]: quittant le répertoire « /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnstools_2.5/cgnstools/adfvie wer »
make: *** [prog-adfviewer] Erreur 2
----- adfviewer -----
make[1]: entrant dans le répertoire « /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnstools_2.5/cgnstools/adfvie wer »
installing shell scripts to /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnstools_2.5/cgnstools/platfo rms/linuxGccDPOpt/bin
cc -DPROTOTYPE -O2 -I../common -I/home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnslib_2.5 -I/home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnslib_2.5/adf -c adfwish.c
adfwish.c:15:16: error: tk.h: Aucun fichier ou dossier de ce type
adfwish.c:31: erreur: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_'
adfwish.c: In function 'main':
adfwish.c:65: erreur: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_'
adfwish.c:65: erreur: 'Tcl_Interp' undeclared (first use in this function)
adfwish.c:65: erreur: (Each undeclared identifier is reported only once
adfwish.c:65: erreur: for each function it appears in.)
adfwish.c:65: erreur: 'interp' undeclared (first use in this function)
adfwish.c:78: erreur: 'Tcl_AppInit' undeclared (first use in this function)
adfwish.c: In function 'Tcl_AppInit':
adfwish.c:103: erreur: expected declaration specifiers before 'Tcl_Interp'
adfwish.c:105: erreur: 'TCL_ERROR' undeclared (first use in this function)
adfwish.c:111: erreur: 'Tk_SafeInit' undeclared (first use in this function)
adfwish.c:152: erreur: 'TCL_GLOBAL_ONLY' undeclared (first use in this function)
adfwish.c:153: erreur: 'TCL_OK' undeclared (first use in this function)
make[1]: *** [adfwish.o] Erreur 1
make[1]: quittant le répertoire « /home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnstools_2.5/cgnstools/adfvie wer »
make: *** [install-adfviewer] Erreur 2


Don't forget to add the following directory to your path in order to access the CGNS Tools:
/home/hamdi/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnstools_2.5/cgnstools/platfo rms/linuxGccDPOpt/bin
~/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnstools_2.5
hamdi@hamdi-laptop:~/OpenFOAM/hamdi-1.5/TurboMachinery/src/cgnstools_2.5$ martinmartin

I don't know where is the problem.
Sorry if I haven't a big knowledge on linux

Hamdi.
hamcer is offline   Reply With Quote

Old   March 5, 2009, 22:57
Default Hello Hamdi, The configure
  #43
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
Hello Hamdi,

The configure script for the cgnstools cannot find your local dev installation of Tcl/Tk.

From your previous post:


checking if Tcl directory was specified... no
checking if Tk directory was specified... no
checking for installed version of Tk... no
checking for local Tk distribution... no
configure: warning: couldn't find a tkConfig.sh
configure: warning: edit make.defs and set TKINCS and TKLIBS


This is why you get an error message about tk.h at compile time.

Please note that you don't need the cgnstools for running the cgns converters. The cgnstools are useful for viewing CGNS files. So you can safely skip that part.

If you really need the cgnstools, then let's try to run a couple of commands first:

find / -name tkConfig.sh
find / -name tk.h

Martin
mbeaudoin is offline   Reply With Quote

Old   April 2, 2009, 06:45
Default axisymmetry
  #44
Member
 
hamdi
Join Date: Mar 2009
Posts: 75
Rep Power: 17
hamcer is on a distinguished road
Hi CGNS foamers,
I have a probleme with the axisymmetry case,
I have generate in cgns format an axisymmetr case , and when I convet it to openfoam I would not have the same number of BC (a conflict with boundary conditions );
below is a part of script of conversion :
............................
.............................
............................
zone dimensions = 33x13x2
Identification of boundary conditions patches
3 patches were identified
Extracting patches
Extracting faces of patch named "bc_6"
--> FOAM Warning : The set of patches defining the BC named "bc_6" do not have the same BCType
BC "bc_6" (physical type : outlet) contains 132 points on 2 distinct patches having a total of 132 points.
Number of faces found : 64, expected 64
Extracting faces of patch named "bc_7"
--> FOAM Warning : The set of patches defining the BC named "bc_7" do not have the same BCType
--> FOAM Warning : The set of patches defining the BC named "bc_7" do not have the same BCType
BC "bc_7" (physical type : wallFunctions) contains 222 points on 5 distinct patches having a total of 226 points.
Number of faces found : 108, expected 108
Extracting faces of patch named "bc_8"
--> FOAM Warning : The set of patches defining the BC named "bc_8" do not have the same BCType
BC "bc_8" (physical type : outlet) contains 222 points on 5 distinct patches having a total of 226 points.
Number of faces found : 108, expected 108
Creation of Foam poly mesh
Patches:
Patch 0 named bc_6, type = patch/outlet
Patch 1 named bc_7, type = wall/wallFunctions
Patch 2 named bc_8, type = patch/outlet
--> FOAM Warning :
From function polyMesh:olyMesh(... construct from shapes...)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 577
Found 6914 undefined faces in mesh; adding to default patch.
Validation of the mesh
Output of mesh and boundary conditions
Please validate Boundary Conditions by running FoamX.
end.
some idea is welcom
Attached Files
File Type: zip Capture.png.zip (95.6 KB, 6 views)
hamcer is offline   Reply With Quote

Old   April 2, 2009, 21:55
Default
  #45
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
Hello Hamdi,

Difficult to say here without having access to the CGNS file.

How did you generate this CGNS file?

Can you share this CGNS file?

Martin
mbeaudoin is offline   Reply With Quote

Old   April 3, 2009, 04:19
Default
  #46
Member
 
hamdi
Join Date: Mar 2009
Posts: 75
Rep Power: 17
hamcer is on a distinguished road
hi mbeaudoin,
unfortunately, I could not send the file cgns because the maximum size allowed is 97.5. whereas my file is 352 kb, so how to do that,
if you give me your email, I can send it to you

hamdi.
hamcer is offline   Reply With Quote

Old   April 3, 2009, 11:25
Default
  #47
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
First thing first:

How did you generate this CGNS file?

Martin
mbeaudoin is offline   Reply With Quote

Old   April 3, 2009, 12:07
Default
  #48
Member
 
hamdi
Join Date: Mar 2009
Posts: 75
Rep Power: 17
hamcer is on a distinguished road
hi Mboudoin,

In fact, he is my supervisor who generated this file, and I think he used a blocks to do that. if you want more details I will tell him.

Hamdi.
hamcer is offline   Reply With Quote

Old   April 3, 2009, 13:43
Default
  #49
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
From the traces generated by the converter, I suspect some problem with the information stored in the CGNS file in the first place.

It does not mean that there is no problem with the converter, but if the CGNS file is not valid, then the converter will not do any magic for you.

That's why you should provide as much information as possible on how the CGNS file was generated.

Martin

Quote:
Originally Posted by hamcer View Post
hi Mboudoin,

In fact, he is my supervisor who generated this file, and I think he used a blocks to do that. if you want more details I will tell him.

Hamdi.
mbeaudoin is offline   Reply With Quote

Old   April 3, 2009, 14:25
Default
  #50
Member
 
hamdi
Join Date: Mar 2009
Posts: 75
Rep Power: 17
hamcer is on a distinguished road
hi mboudoin,

I discused with my supervisor, and he said that the mesh was generated by using the NUMECA IGG software , that's a structured blocks mesh , and we do not understand how to define the boundary patch names.

hamdi.
hamcer is offline   Reply With Quote

Old   April 6, 2009, 13:16
Default
  #51
Member
 
Nick Gardiner
Join Date: Apr 2009
Location: Chichester, UK
Posts: 94
Rep Power: 16
NickG is on a distinguished road
Hi

I'm having trouble installing libcgnsoo. Looking at other forums I think it's a libtool problem but I don't know how to get around it. Typically I get a long list of:

libtool: [number]: /usr/bin/sed: not found such as

../libtool: 7025: /usr/bin/sed: not found
../libtool: 7025: /usr/bin/sed: not found
: compile: cannot determine name of library object from `'
make[1]: *** [base.lo] Error 1
make[1]: Leaving directory `/home/nick/OpenFOAM/nick-1.5/TurboMachinery/src/libcgnsoo_3.0/src'
make: *** [install-recursive] Error 1
+ popd
~/OpenFOAM/nick-1.5/TurboMachinery/src


I've tried reinstalling the libtool and autoconf packages but to no avail.
Any ideas. Please be as specific as you can be as Linux is fairly new to me.

Thanks

Nick
NickG is offline   Reply With Quote

Old   April 6, 2009, 18:47
Default
  #52
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
Hello,

You are probably getting other error messages a bit sooner in the configuration and build sequence.

From the Allwmake script:

Code:
#
# Compile libcgnsoo
#
# Here, the configuration part might be trickier because it has been developped using relatively recent
# version of the autotools. We know that the auto-configuration part will work with these versions of
# the autotools:
#       autoconf 2.61
#       automake 1.10
#       libtool 1.5.24

LIBCGNSOOHOME=`pwd`/libcgnsoo_3.0
if [ -e $LIBCGNSOOHOME -a ! -r $LIBCGNSOOHOME/platforms/$WM_OPTIONS/lib/libcgnsoo3.a ]
then
    pushd $LIBCGNSOOHOME

    # Verify the bootstrap script against your own installation of the autotools
    ./bootstrap
    ./configure --prefix=$LIBCGNSOOHOME/platforms/$WM_OPTIONS --with-CGNSLIBHOME=$CGNSLIBHOME/platforms/$WM_OPTIONS
    make
    make install

    popd
fi
The parts in red are important...

The complete output from the bootstrap script might give more information.

Martin

Quote:
Originally Posted by NickG View Post
Hi

I'm having trouble installing libcgnsoo. Looking at other forums I think it's a libtool problem but I don't know how to get around it. Typically I get a long list of:

libtool: [number]: /usr/bin/sed: not found such as

../libtool: 7025: /usr/bin/sed: not found
../libtool: 7025: /usr/bin/sed: not found
: compile: cannot determine name of library object from `'
make[1]: *** [base.lo] Error 1
make[1]: Leaving directory `/home/nick/OpenFOAM/nick-1.5/TurboMachinery/src/libcgnsoo_3.0/src'
make: *** [install-recursive] Error 1
+ popd
~/OpenFOAM/nick-1.5/TurboMachinery/src


I've tried reinstalling the libtool and autoconf packages but to no avail.
Any ideas. Please be as specific as you can be as Linux is fairly new to me.

Thanks

Nick

Last edited by mbeaudoin; April 6, 2009 at 19:14.
mbeaudoin is offline   Reply With Quote

Old   April 7, 2009, 06:45
Default
  #53
Member
 
Nick Gardiner
Join Date: Apr 2009
Location: Chichester, UK
Posts: 94
Rep Power: 16
NickG is on a distinguished road
Thanks Martin

I'll try that

Nick
NickG is offline   Reply With Quote

Old   April 7, 2009, 10:07
Default
  #54
Member
 
Nick Gardiner
Join Date: Apr 2009
Location: Chichester, UK
Posts: 94
Rep Power: 16
NickG is on a distinguished road
Thanks again Martin

I uninstalled the versions of libtool, autoconf and automake I had and installed the versions requested.
Ran aclocal and makefile in the libcgnsoo_3.0 folder and it all seemed to install ok and the test cases all work.

Nick
NickG is offline   Reply With Quote

Old   April 7, 2009, 10:42
Default companion libraries
  #55
New Member
 
Join Date: Apr 2009
Posts: 17
Rep Power: 16
walex is on a distinguished road
Hello Martin,

just tried to compile the companion libraries for OpenFOAM 1.5. But I got following problem:

make[1]: Betrete Verzeichnis '/home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0/src'
g++ -g -O2 -g -O2 -o libcgnsoo3.la -rpath /home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0/platforms/linux64GccDPOpt/lib base.lo bc.lo bcdataset.lo bcproperty.lo checkerror.lo dataarray.lo element.lofamily.lo familybc.lo file.lo node.lo quantity.lo range.lo structure_t.lo zone.lo zonebc.lo userdefineddata.lo flowequationset.lo flowsolution.lo geometryreference.lo gridconnectivity.lo gridcoordinates.lo gridconnectivityproperty.lo zonegridconnectivity.lo
g++: /home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0/platforms/linux64GccDPOpt/lib: No such file or directory
g++: base.lo: No such file or directory
g++: bc.lo: No such file or directory
g++: bcdataset.lo: No such file or directory
g++: bcproperty.lo: No such file or directory
g++: checkerror.lo: No such file or directory
g++: dataarray.lo: No such file or directory
g++: element.lo: No such file or directory
g++: family.lo: No such file or directory
g++: familybc.lo: No such file or directory
g++: file.lo: No such file or directory
g++: node.lo: No such file or directory
g++: quantity.lo: No such file or directory
g++: range.lo: No such file or directory
g++: structure_t.lo: No such file or directory
g++: zone.lo: No such file or directory
g++: zonebc.lo: No such file or directory
g++: userdefineddata.lo: No such file or directory
g++: flowequationset.lo: No such file or directory
g++: flowsolution.lo: No such file or directory
g++: geometryreference.lo: No such file or directory
g++: gridconnectivity.lo: No such file or directory
g++: gridcoordinates.lo: No such file or directory
g++: gridconnectivityproperty.lo: No such file or directory
g++: zonegridconnectivity.lo: No such file or directory
g++: unrecognized option '-rpath'
g++: no input files
make[1]: *** [libcgnsoo3.la] Fehler 1
make[1]: Verlasse Verzeichnis '/home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0/src'
make: *** [install-recursive] Fehler 1
+ popd
~/OpenFOAM/alexander-1.5/TurboMachinery/src

I think a problem occurs during the creation of the objective files, but I don't know why. Maybe you can help me with this?

Thanks and Regards
Alex
walex is offline   Reply With Quote

Old   April 7, 2009, 10:52
Default
  #56
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
Hello Alex,

All the compiled modules needed for building the library libcgnsoo_3.0 are missing...

You are certainly getting a lot of other error messages early in the configuration and build sequence of this library.

Martin
mbeaudoin is offline   Reply With Quote

Old   April 7, 2009, 11:10
Default
  #57
New Member
 
Join Date: Apr 2009
Posts: 17
Rep Power: 16
walex is on a distinguished road
Hi Martin,
Sorry, thought that this would be the main reason. Here you can see the messages from the beginning of the compilation till the first error message.

+ wmake libso OpenFoamTurbo
'/home/alexander/OpenFOAM/alexander-1.5/lib/linux64GccDPOpt/libOpenFoamTurbo.so' is up to date.
++ pwd
+ CGNSLIBHOME=/home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/cgnslib_2.5
+ '[' -e /home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/cgnslib_2.5 -a '!' -r /home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/cgnslib_2.5/platforms/linux64GccDPOpt/lib/libcgns_2.5.a ']'
++ pwd
+ LIBCGNSOOHOME=/home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0
+ '[' -e /home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0 -a '!' -r /home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0/platforms/linux64GccDPOpt/lib/libcgnsoo3.a ']'
+ pushd /home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0
~/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0 ~/OpenFOAM/alexander-1.5/TurboMachinery/src
+ ./bootstrap
+ '[' '!' -r ./NEWS ']'
+ '[' '!' -r ./THANKS ']'
+ '[' '!' -r ./README ']'
+ '[' '!' -r ./AUTHORS ']'
+ '[' '!' -r ./ChangeLog ']'
+ rm -rf aclocal.m4 autom4te.cache
+ aclocal -I config
+ libtoolize --force --copy
./bootstrap: line 31: libtoolize: command not found
+ autoheader
+ automake --add-missing --copy
src/Makefile.am:31: Libtool library used but `LIBTOOL' is undefined
src/Makefile.am:31:
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.
+ autoconf
configure.in:24: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
+ ./configure --prefix=/home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0/platforms/linux64GccDPOpt --with-CGNSLIBHOME=/home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/cgnslib_2.5/platforms/linux64GccDPOpt
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking path for CGNSLIBHOME: /home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/cgnslib_2.5/platforms/linux64GccDPOpt... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
./configure: line 2929: AC_PROG_LIBTOOL: command not found
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for an ANSI C-conforming const... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default commands
------------------------------------------------------------------------
Configuration:
Source code location: .
Compiler CC: gcc
Compiler CC flags: -g -O2
Compiler CXX: g++
Compiler CXX flags: -g -O2
Host System Type:
Install path: /home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0/platforms/linux64GccDPOpt
CGNSLIB_HOME path: /home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/cgnslib_2.5/platforms/linux64GccDPOpt
See config.h for further configuration information.
------------------------------------------------------------------------
+ make
cd . && /bin/sh /home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0/config/missing --run autoheader
touch ./config.h.in
make all-recursive
make[1]: Betrete Verzeichnis '/home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0'
Making all in src
make[2]: Betrete Verzeichnis '/home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0/src'
g++ -g -O2 -g -O2 -o libcgnsoo3.la -rpath /home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0/platforms/linux64GccDPOpt/lib base.lo bc.lo bcdataset.lo bcproperty.lo checkerror.lo dataarray.lo element.lo family.lo familybc.lo file.lo node.lo quantity.lo range.lo structure_t.lo zone.lo zonebc.lo userdefineddata.lo flowequationset.lo flowsolution.lo geometryreference.lo gridconnectivity.lo gridcoordinates.lo gridconnectivityproperty.lo zonegridconnectivity.lo
g++: /home/alexander/OpenFOAM/alexander-1.5/TurboMachinery/src/libcgnsoo_3.0/platforms/linux64GccDPOpt/lib: No such file or directory
g++: base.lo: No such file or directory
g++: bc.lo: No such file or directory
....

Alex
walex is offline   Reply With Quote

Old   April 7, 2009, 11:24
Default
  #58
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
You should have caught this error message first:

./bootstrap: line 31: libtoolize: command not found

You are missing some development tools.

Read post #52 from this thread for some more clues...

Martin
mbeaudoin is offline   Reply With Quote

Old   April 7, 2009, 12:07
Default Thanks
  #59
New Member
 
Join Date: Apr 2009
Posts: 17
Rep Power: 16
walex is on a distinguished road
Hi Martin,

thanks for the quick replies. To install libtool solved the problem. Should have seen this....

But anyway, thanks for the help.

Alex
walex is offline   Reply With Quote

Old   April 8, 2009, 10:09
Default
  #60
Member
 
Nick Gardiner
Join Date: Apr 2009
Location: Chichester, UK
Posts: 94
Rep Power: 16
NickG is on a distinguished road
Bonjour Martin

I'm having a similar problem to Eric in post #13 in that I get QUAD and TRI warnings. So this is just to let you know that the mesh was created as a 2D extruded mesh (1 layer thick) in CFX-mesh and exported as a CGNS file from a CFX .def file. I assume that the CFX translator is using the surface mesh rather than the extruded volumes but I don't know.

Other than that the cgnsToFoam converter aborts with:


Trying to specify a boundary face 4(1663 1279 1403 1787) on the face on cell 8 which is either an internal face or already belongs to some other patch. This is face 18 of patch 9 named SymC.#0 Foam::error:rintStack(Foam::Ostream&) in "/home/nick/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/nick/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Foam:olyMesh:olyMesh(Foam::IOobject const&, Foam::Field<Foam::Vector<double> > const&, Foam::List<Foam::cellShape> const&, Foam::List<Foam::List<Foam::face> > const&, Foam::List<Foam::word> const&, Foam::List<Foam::word> const&, Foam::word const&, Foam::word const&, Foam::List<Foam::word> const&, bool) in "/home/nick/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#3 CGNSBoundaryConditions::buildFoamMesh(Foam::Time const&) const in "/home/nick/OpenFOAM/nick-1.5/applications/bin/linuxGccDPOpt/cgnsToFoam"
#4 main in "/home/nick/OpenFOAM/nick-1.5/applications/bin/linuxGccDPOpt/cgnsToFoam"
#5 __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#6 Foam::regIOobject::writeObject(Foam::IOstream::str eamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const in "/home/nick/OpenFOAM/nick-1.5/applications/bin/linuxGccDPOpt/cgnsToFoam"


From function polyMesh:olyMesh
(
const IOobject& io,
const pointField& points,
const cellShapeList& cellsAsShapes,
const faceListList& boundaryFaces,
const wordList& boundaryPatchTypes,
const wordList& boundaryPatchNames,
const word& defaultBoundaryPatchType
)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 483.

FOAM aborting


Any suggestions? I did use the -cfxCompatibility option, and the area SymC that the code aborts at should just be a symmetry plane.

Thanks in advance

Nick
NickG is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


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