|
[Sponsors] | |||||
|
|
|
#1 |
|
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 9 ![]() |
Maybe its the right time and place to put some questions about groovyBC into a separate thread instead of posting them into other threads about transient boundary condition.
First I have to say, I'm talking about two different computers with two different errors: First one (running Kubuntu 9.04) Code:
rm: Entfernen von „Make/linux64GccDPOpt/PatchValueExpressionLexer.C“ nicht möglich: No such file or directory /bin/sh: flex: not found mv: Aufruf von stat für „*.c“ nicht möglich: No such file or directory g++: Make/linux64GccDPOpt/PatchValueExpressionLexer.C: No such file or directory g++: no input files make: *** [Make/linux64GccDPOpt/PatchValueExpressionLexer.o] Fehler 1 Second one (running OpenSUSE 10.3) Code:
Make/linux64GccDPOpt/groovyBCPointPatchFields.o: In function `Foam::getFvPatch(Foam::pointPatch const&)': groovyBCPointPatchFields.C:(.text+0x33): undefined reference to `typeinfo for Foam::fvMesh' groovyBCPointPatchFields.C:(.text+0x66): undefined reference to `Foam::fvMesh::boundary() const' groovyBCPointPatchFields.C:(.text+0xa3): undefined reference to `typeinfo for Foam::fvMesh' collect2: ld returned 1 exit status make: *** [OpenFOAM.out] Fehler 1
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
|
|
|
|
|
|
|
|
#2 | ||
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30 ![]() ![]() |
Quote:
![]() Quote:
Code:
Make/linux64GccDPOpt/groovyBCPointPatchFields.o: In function `Foam::getFvPatch(Foam::pointPatch const&)': groovyBCPointPatchFields.C:(.text+0x33): undefined reference to `typeinfo for Foam::fvMesh' groovyBCPointPatchFields.C:(.text+0x66): undefined reference to `Foam::fvMesh::boundary() const' groovyBCPointPatchFields.C:(.text+0xa3): undefined reference to `typeinfo for Foam::fvMesh' collect2: ld returned 1 exit status make: *** [OpenFOAM.out] Fehler 1 [/QUOTE] That's a strange one. There seem to be some very essential things to be missing from libOpenFOAM.so OR the .so is missing. Did anything every get successfully compiled on that machine? Bernhard |
|||
|
|
|
|||
|
|
|
#3 |
|
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 9 ![]() |
Actually not. I'm always struggling to compile OpenFOAM related things on this machine. Even funkySetFields did not work...
I'm working with this machine at the university, but as far as I know there has been big trouble to compile OpenFOAM 1.5.x at all...
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
|
|
|
|
|
|
|
|
#4 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30 ![]() ![]() |
Quote:
You're on your own. Good luck |
||
|
|
|
||
|
|
|
#5 | |
|
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 9 ![]() |
Quote:
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
||
|
|
|
||
|
|
|
#6 | ||
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30 ![]() ![]() |
Quote:
![]() libOpenFOAM.so Quote:
file $FOAM_LIBBIN/libOpenFOAM.so prints something like libOpenFOAM.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped If for instance you look at a .o file with file example.o the output should be similar: example.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV), not stripped http://en.wikipedia.org/wiki/Applica...nary_interface The ABIs of g++ are usually downward compatible. But if your OpenFOAM was compiled with a NEWER version of g++ than you are currently using (strange things happen) which g++ g++ -v But honestly: a recompile of your OF-installation seems to me to be the easiest solution in your case |
|||
|
|
|
|||
|
|
|
#7 | |
|
Senior Member
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 208
Rep Power: 6 ![]() |
Hi,
I have also started using OpenFOAM for some of my simulations. When trying to use the groovyBC condition and testing the Demo cases coming with the boundary condition, I always get the following error, which is independent of the demo I am running (circulatingSplash, pulsedPitzDaily, groovywaveTank): Quote:
Arne Last edited by Arnoldinho; November 6, 2009 at 08:57. |
||
|
|
|
||
|
|
|
#8 |
|
Member
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 70
Rep Power: 6 ![]() |
I'm not very familiar with groovyBC, but I guess you're using 1.6.x which reads the gravitational acceleration from file in <case>/constant/g file. In previous versions the file was called different. So the only thing you have to do is to look into tutorials of your OpenFOAM installation and copy the g file to your case and check the vector of gravity is heading to where you want.
good luck matej |
|
|
|
|
|
|
|
|
#9 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30 ![]() ![]() |
Quote:
Bernhard |
||
|
|
|
||
|
|
|
#10 |
|
Member
Michael
Join Date: Mar 2009
Posts: 48
Rep Power: 6 ![]() |
Hello,
I think I need some help with the compilation of the groovybc!! When I'm trying to do 'wmake libso', I get the following error: Code:
michael@wopl:~/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/fields/fvPatchFields/derived/groovyBC> wmake libso
SOURCE=PatchResult.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/home/michael/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/michael/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/michael/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/PatchResult.o
In file included from PatchResult.C:34:
PatchResult.H:47:19: error: Field.H: No such file or directory
PatchResult.C:35:20: error: vector.H: No such file or directory
PatchResult.C:36:20: error: tensor.H: No such file or directory
PatchResult.C:37:24: error: symmTensor.H: No such file or directory
PatchResult.C:38:29: error: sphericalTensor.H: No such file or directory
In file included from PatchResult.C:34:
PatchResult.H:62: error: ‘string’ does not name a type
PatchResult.H:86: error: ‘Field’ was not declared in this scope
PatchResult.H:86: error: expected primary-expression before ‘>’ token
PatchResult.H:86: error: expected primary-expression before ‘,’ token
PatchResult.H:86: error: expected primary-expression before ‘bool’
PatchResult.H:86: error: variable or field ‘setResult’ declared void
PatchResult.H:89: error: expected initializer before ‘<’ token
PatchResult.H:93: error: ISO C++ forbids declaration of ‘string’ with no type
PatchResult.H:93: error: ‘string’ declared as an ‘inline’ field
PatchResult.H:93: error: expected ‘;’ before ‘&’ token
In file included from PatchResult.H:105,
from PatchResult.C:34:
PatchResultI.H:40: error: variable or field ‘setResult’ declared void
PatchResultI.H:40: error: ‘Field’ was not declared in this scope
PatchResultI.H:40: error: expected primary-expression before ‘>’ token
PatchResultI.H:40: error: ‘val’ was not declared in this scope
PatchResultI.H:40: error: expected primary-expression before ‘bool’
PatchResultI.H:50: error: expected constructor, destructor, or type conversion before ‘<’ token
PatchResultI.H:75: error: expected initializer before ‘&’ token
PatchResult.C: In constructor ‘Foam::PatchResult::PatchResult()’:
PatchResult.C:46: error: class ‘Foam::PatchResult’ does not have any field named ‘valType_’
PatchResult.C:47: error: ‘NULL’ was not declared in this scope
PatchResult.C: In copy constructor ‘Foam::PatchResult::PatchResult(const Foam::PatchResult&)’:
PatchResult.C:55: error: class ‘Foam::PatchResult’ does not have any field named ‘valType_’
PatchResult.C:56: error: ‘NULL’ was not declared in this scope
PatchResult.C: In member function ‘void Foam::PatchResult::uglyDelete()’:
PatchResult.C:82: error: ‘valType_’ was not declared in this scope
PatchResult.C:82: error: ‘pTraits’ was not declared in this scope
PatchResult.C:82: error: ‘scalar’ was not declared in this scope
PatchResult.C:82: error: ‘::typeName’ has not been declared
PatchResult.C:83: error: expected type-specifier before ‘scalarField’
PatchResult.C:83: error: expected `>' before ‘scalarField’
PatchResult.C:83: error: expected `(' before ‘scalarField’
PatchResult.C:83: error: ‘scalarField’ was not declared in this scope
PatchResult.C:83: error: expected primary-expression before ‘>’ token
PatchResult.C:83: error: expected `)' before ‘;’ token
PatchResult.C:84: error: ‘vector’ has not been declared
PatchResult.C:85: error: expected type-specifier before ‘Field’
PatchResult.C:85: error: expected `>' before ‘Field’
PatchResult.C:85: error: expected `(' before ‘Field’
PatchResult.C:85: error: ‘Field’ was not declared in this scope
PatchResult.C:85: error: ‘vector’ was not declared in this scope
PatchResult.C:85: error: expected primary-expression before ‘>’ token
PatchResult.C:85: error: expected `)' before ‘;’ token
PatchResult.C:86: error: ‘tensor’ has not been declared
PatchResult.C:87: error: expected type-specifier before ‘Field’
PatchResult.C:87: error: expected `>' before ‘Field’
PatchResult.C:87: error: expected `(' before ‘Field’
PatchResult.C:87: error: ‘Field’ was not declared in this scope
PatchResult.C:87: error: ‘tensor’ was not declared in this scope
PatchResult.C:87: error: expected primary-expression before ‘>’ token
PatchResult.C:87: error: expected `)' before ‘;’ token
PatchResult.C:88: error: ‘symmTensor’ has not been declared
PatchResult.C:89: error: expected type-specifier before ‘Field’
PatchResult.C:89: error: expected `>' before ‘Field’
PatchResult.C:89: error: expected `(' before ‘Field’
PatchResult.C:89: error: ‘Field’ was not declared in this scope
PatchResult.C:89: error: ‘symmTensor’ was not declared in this scope
PatchResult.C:89: error: expected primary-expression before ‘>’ token
PatchResult.C:89: error: expected `)' before ‘;’ token
PatchResult.C:90: error: ‘sphericalTensor’ has not been declared
PatchResult.C:91: error: expected type-specifier before ‘Field’
PatchResult.C:91: error: expected `>' before ‘Field’
PatchResult.C:91: error: expected `(' before ‘Field’
PatchResult.C:91: error: ‘Field’ was not declared in this scope
PatchResult.C:91: error: ‘sphericalTensor’ was not declared in this scope
PatchResult.C:91: error: expected primary-expression before ‘>’ token
PatchResult.C:91: error: expected `)' before ‘;’ token
PatchResult.C:92: error: expected primary-expression before ‘bool’
PatchResult.C:92: error: expected `)' before ‘bool’
PatchResult.C:93: error: expected type-specifier before ‘Field’
PatchResult.C:93: error: expected `>' before ‘Field’
PatchResult.C:93: error: expected `(' before ‘Field’
PatchResult.C:93: error: ‘Field’ was not declared in this scope
PatchResult.C:93: error: expected primary-expression before ‘bool’
PatchResult.C:93: error: expected `)' before ‘bool’
PatchResult.C:93: error: expected `;' before ‘bool’
PatchResult.C:95: error: ‘WarningIn’ was not declared in this scope
PatchResult.C:96: error: ‘endl’ was not declared in this scope
PatchResult.C:97: warning: deleting ‘void*’ is undefined
PatchResult.C:100: error: ‘valType_’ was not declared in this scope
PatchResult.C:101: error: ‘NULL’ was not declared in this scope
PatchResult.C: In member function ‘void Foam::PatchResult::operator=(const Foam::PatchResult&)’:
PatchResult.C:109: error: ‘FatalErrorIn’ was not declared in this scope
PatchResult.C:111: error: ‘FatalError’ was not declared in this scope
PatchResult.C:111: error: ‘abort’ was not declared in this scope
PatchResult.C:115: error: ‘valType_’ was not declared in this scope
PatchResult.C:115: error: ‘const class Foam::PatchResult’ has no member named ‘valType_’
PatchResult.C:118: error: ‘NULL’ was not declared in this scope
make: *** [Make/linux64GccDPOpt/PatchResult.o] Error 1
Can somebody help me?? I'm using OpenFOAM 1.6.x and Bison 2.3 Cheers Michael |
|
|
|
|
|
|
|
|
#11 |
|
Member
Michael
Join Date: Mar 2009
Posts: 48
Rep Power: 6 ![]() |
Well, I think I have another problem with my installation...
|
|
|
|
|
|
|
|
|
#12 |
|
Member
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 70
Rep Power: 6 ![]() |
Yep. It looking at the topmost error, the shell does not know anything about your foam installation. Have you checked the foamInstallationTest ? Your comp. does not see the src I would say. Always look at the topmost error first
.good luck matej |
|
|
|
|
|
|
|
|
#13 |
|
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 7 ![]() |
Hi Michael,
Besides the OF installtion issue you mentioned, on the groovyBC wiki it says that groovyBC is know to work with Bison 2.4.1. Maybe you need to have a look at that as well ...
__________________
Regards, Gijs |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM | 284 | April 8, 2013 09:19 |
| FixedGradient BC update | stefan82 | OpenFOAM Running, Solving & CFD | 4 | April 28, 2009 03:10 |
| Addition of Boundary Condition | ubaid | OpenFOAM | 1 | March 9, 2009 10:39 |