|
[Sponsors] |
[swak4Foam] some errors in compiling groovyBC in OF220 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 26, 2013, 08:16 |
some errors in compiling groovyBC in OF220
|
#1 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
I want to compile groovyBC 0.2.1 in OF 220.but it shows errors and OF doesn't recognize the groovyBC boundary condition.
Code:
ehsan@Ehsan-com:~/Downloads/swak4Foam_2.x_release_0.2.1$ ./AllwmakeNo 'swakConfiguration'. Python etc won't work Checking swak4Foam-version and generating file abort: no repository found in '/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1' (.hg not found)! Bison is version 2.4.1 Flex is version 2.5.35 (Minor version: 35) OpenFOAM-version: Major 2 Minor 2 Patch 0 No change to swak4FoamParsers/foamVersion4swak.H make: *** No rule to make target `/opt/openfoam220/src/OpenFOAM/lnInclude/tetPointRef.H', needed by `plugins/SampledSurfaceValuePluginFunction.dep'. Stop. make: *** No rule to make target `/opt/openfoam220/src/OpenFOAM/lnInclude/mixedPointPatchField.H', needed by `groovyBCPointPatchFields.dep'. Stop. make: *** No rule to make target `/opt/openfoam220/src/sampling/lnInclude/coordSet.H', needed by `createSampledSet.dep'. Stop. make: *** No rule to make target `/opt/openfoam220/src/thermophysicalModels/basic/lnInclude/basicPsiThermo.H', needed by `modelLoading/loadThermoModelFunctionObjects.dep'. Stop. make: *** No rule to make target `/opt/openfoam220/src/OpenFOAM/lnInclude/tetPointRef.H', needed by `EvolveReactingMultiphaseCloudFunctionObject.dep'. Stop. SOURCE=general/swakExpressionFunctionObject.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../simpleFunctionObjects/lnInclude -I/home/ehsan/OpenFOAM/ehsan-2.2.0/Libraries/simpleFunctionObjects/lnInclude -I../swak4FoamParsers/lnInclude -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -I/opt/openfoam220/src/sampling/lnInclude -I/opt/openfoam220/src/triSurface/lnInclude -I/opt/openfoam220/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/swakExpressionFunctionObject.o In file included from ../simpleFunctionObjects/lnInclude/simpleFunctionObject.H:40:0, from ../simpleFunctionObjects/lnInclude/simpleDataFunctionObject.H:40, from ../simpleFunctionObjects/lnInclude/timelineFunctionObject.H:40, from general/swakExpressionFunctionObject.H:40, from general/swakExpressionFunctionObject.C:28: /opt/openfoam220/src/OpenFOAM/lnInclude/functionObject.H: In static member function ‘static Foam::autoPtr<Foam::functionObject> Foam::functionObject::adddictionaryConstructorToTable<functionObjectType>::New(const Foam::word&, const Foam::Time&, const Foam::dictionary&) [with functionObjectType = Foam::swakExpressionFunctionObject]’: /opt/openfoam220/src/OpenFOAM/lnInclude/functionObject.H:86:9: instantiated from ‘Foam::functionObject::adddictionaryConstructorToTable<functionObjectType>::adddictionaryConstructorToTable(const Foam::word&) [with functionObjectType = Foam::swakExpressionFunctionObject]’ general/swakExpressionFunctionObject.C:44:1: instantiated from here /opt/openfoam220/src/OpenFOAM/lnInclude/functionObject.H:86:9: error: cannot allocate an object of abstract type ‘Foam::swakExpressionFunctionObject’ general/swakExpressionFunctionObject.H:53:7: note: because the following virtual functions are pure within ‘Foam::swakExpressionFunctionObject’: /opt/openfoam220/src/OpenFOAM/lnInclude/functionObject.H:164:22: note: virtual void Foam::functionObject::updateMesh(const Foam::mapPolyMesh&) /opt/openfoam220/src/OpenFOAM/lnInclude/functionObject.H:167:22: note: virtual void Foam::functionObject::movePoints(const Foam::polyMesh&) /opt/openfoam220/src/OpenFOAM/lnInclude/functionObject.H:86:9: warning: control reaches end of non-void function [-Wreturn-type] make: *** [Make/linux64GccDPOpt/swakExpressionFunctionObject.o] Error 1 /usr/bin/ld: cannot find -lswak4FoamParsers collect2: ld returned 1 exit status make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libswakTopoSources.so] Error 1 make: *** No rule to make target `/opt/openfoam220/src/finiteVolume/lnInclude/makeBasicSource.H', needed by `swakImplicitSources.dep'. Stop. /usr/bin/ld: cannot find -lgroovyBC /usr/bin/ld: cannot find -lswak4FoamParsers collect2: ld returned 1 exit status make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so] Error 1 SWAK_PYTHON_INCLUDE not defined .... no Python-Integration /usr/bin/ld: cannot find -lswak4FoamParsers collect2: ld returned 1 exit status make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so] Error 1 /usr/bin/ld: cannot find -lswak4FoamParsers collect2: ld returned 1 exit status make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so] Error 1 /usr/bin/ld: cannot find -lswak4FoamParsers collect2: ld returned 1 exit status make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so] Error 1 /usr/bin/ld: cannot find -lswak4FoamParsers collect2: ld returned 1 exit status make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so] Error 1 make: *** No rule to make target `/opt/openfoam220/src/thermophysicalModels/basic/lnInclude/basicPsiThermo.H', needed by `swakThermophysicalPluginFunction.dep'. Stop. /usr/bin/ld: cannot find -lswak4FoamParsers collect2: ld returned 1 exit status make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so] Error 1 make: *** No rule to make target `/opt/openfoam220/src/sampling/lnInclude/coordSet.H', needed by `setValueMaximumPluginFunction.dep'. Stop. make: *** No rule to make target `/opt/openfoam220/src/OpenFOAM/lnInclude/tetPointRef.H', needed by `lcsSpeciesSourcePluginFunction.dep'. Stop. /usr/bin/ld: cannot find -lswak4FoamParsers collect2: ld returned 1 exit status make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so] Error 1 make[1]: Entering directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/funkyDoCalc' g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkyDoCalc.o -L/opt/openfoam220/platforms/linux64GccDPOpt/lib \ -lfiniteVolume -lmeshTools -L/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lm -o /home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/bin/funkyDoCalc /usr/bin/ld: cannot find -lswak4FoamParsers collect2: ld returned 1 exit status make[1]: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/bin/funkyDoCalc] Error 1 make[1]: Leaving directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/funkyDoCalc' make: *** [funkyDoCalc] Error 2 make[1]: Entering directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/funkySetBoundaryField' g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkySetBoundaryField.o -L/opt/openfoam220/platforms/linux64GccDPOpt/lib \ -lfiniteVolume -lmeshTools -L/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lm -o /home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/bin/funkySetBoundaryField /usr/bin/ld: cannot find -lswak4FoamParsers collect2: ld returned 1 exit status make[1]: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/bin/funkySetBoundaryField] Error 1 make[1]: Leaving directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/funkySetBoundaryField' make: *** [funkySetBoundaryField] Error 2 make[1]: Entering directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/funkySetFields' g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkySetFields.o -L/opt/openfoam220/platforms/linux64GccDPOpt/lib \ -lfiniteVolume -lmeshTools -L/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lm -o /home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/bin/funkySetFields /usr/bin/ld: cannot find -lswak4FoamParsers collect2: ld returned 1 exit status make[1]: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/bin/funkySetFields] Error 1 make[1]: Leaving directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/funkySetFields' make: *** [funkySetFields] Error 2 make[1]: Entering directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/replayTransientBC' make[1]: *** No rule to make target `/opt/openfoam220/src/OpenFOAM/lnInclude/tetPointRef.H', needed by `replayTransientBC.dep'. make[1]: Failed to remake makefile `replayTransientBC.dep'. make[1]: Target `/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/bin/replayTransientBC' not remade because of errors. make[1]: Leaving directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/replayTransientBC' make: *** [replayTransientBC] Error 2 make: Target `application' not remade because of errors. If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Libraries (most people will be fine without setting that variable) |
|
March 26, 2013, 08:30 |
|
#2 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Not even release 0.2.2 will compile on OF2.2. Get release 0.2.3. And you'll have to comment out one line with that (see discussions elsewhere) if you're using 2.2.0 (2.2.x will work out of the box)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
March 26, 2013, 09:08 |
|
#3 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thank you dear Bernard.
I should ask a silly question now about where can find latest versions you mentioned if they are released.I couldn't find them in openfoamwiki.net contrib. and where i can find discussions about compiling it for OF 2.2.0 thank you very much. |
|
March 27, 2013, 11:52 |
|
#4 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
then it isn't possible to use groovyBC in new OpenFOAM 2.2.0?
|
|
March 27, 2013, 13:22 |
|
#5 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Please try it yourself
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
March 28, 2013, 08:43 |
|
#6 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
I downloaded 0.2.3 and commented out the line you had told.but this error(end lines of message) is shown(OF versin is 2.2.0):
Code:
SOURCE=helpers/printSwakVersion.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/sampling/lnInclude -I/opt/openfoam220/src/fileFormats/lnInclude -I/opt/openfoam220/src/triSurface/lnInclude -I/opt/openfoam220/src/surfMesh/lnInclude -I/opt/openfoam220/src/lagrangian/basic/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/printSwakVersion.o In file included from helpers/printSwakVersion.C:44:0: lnInclude/swak.H:100:1: error: ‘define’ does not name a type make: *** [Make/linux64GccDPOpt/printSwakVersion.o] Error 1 Parser library did not compile OK. No sense continuing as everything else depends on it Requirements for Library not satisfied. I see no sense in going on thanks. |
|
March 28, 2013, 09:32 |
|
#7 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
March 28, 2013, 10:32 |
|
#8 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thanks.what about the problem?you prefer I propound it at that thread?
|
|
March 28, 2013, 15:41 |
|
#9 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thank you dear Bernard.it resolved now has compiled and works successfully
|
|
March 29, 2013, 01:23 |
|
#10 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
you didn't introduce a way to be aware quickly of new advances in useful library groovyBC you provide other than thread.
Thank you. |
|
April 1, 2013, 04:46 |
|
#11 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
always all people should refer to that thread?
I suggest to make a simple blog or anything like this for such a great work you have done then accessing it will be more easy. Thanks. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
courant number increases to rather large values | 6863523 | OpenFOAM Running, Solving & CFD | 22 | July 6, 2023 00:48 |
Help for the small implementation in turbulence model | shipman | OpenFOAM Programming & Development | 25 | March 19, 2014 11:08 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 14:58 |
same geometry,structured and unstructured mesh,different behaviour. | sharonyue | OpenFOAM Running, Solving & CFD | 13 | January 2, 2013 23:40 |
pisoFoam with k-epsilon turb blows up - Some questions | Heroic | OpenFOAM Running, Solving & CFD | 26 | December 17, 2012 04:34 |