CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] some errors in compiling groovyBC in OF220

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2013, 07:16
Default some errors in compiling groovyBC in OF220
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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)
immortality is offline   Reply With Quote

Old   March 26, 2013, 07:30
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
I want to compile groovyBC 0.2.1 in OF 220.but it shows errors and OF doesn't recognize the groovyBC boundary condition.
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
gschaider is offline   Reply With Quote

Old   March 26, 2013, 08:08
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   March 27, 2013, 10:52
Default
  #4
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
then it isn't possible to use groovyBC in new OpenFOAM 2.2.0?
immortality is offline   Reply With Quote

Old   March 27, 2013, 12:22
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
then it isn't possible to use groovyBC in new OpenFOAM 2.2.0?
Yes it is. Have you ever tried Advanced Search (in the Search Menu)? Keywords "swak4Foam 2.2.0" and "Show posts" finds you exactly one post with all you need to know: http://www.cfd-online.com/Forums/ope...tml#post415456

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
gschaider is offline   Reply With Quote

Old   March 28, 2013, 07:43
Default
  #6
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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
another question I have is that how can I be aware of new releases of SWAK4FOAM?
thanks.
immortality is offline   Reply With Quote

Old   March 28, 2013, 08:32
Default
  #7
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
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
another question I have is that how can I be aware of new releases of SWAK4FOAM?
thanks.
Remember the search function? Look for "swak4Foam new release", see which of the listed threads might be the right one and subscribe to it in the "Thread Tools"
__________________
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
gschaider is offline   Reply With Quote

Old   March 28, 2013, 09:32
Default
  #8
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
thanks.what about the problem?you prefer I propound it at that thread?
immortality is offline   Reply With Quote

Old   March 28, 2013, 14:41
Default
  #9
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
thank you dear Bernard.it resolved now has compiled and works successfully
immortality is offline   Reply With Quote

Old   March 29, 2013, 00:23
Default
  #10
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
you didn't introduce a way to be aware quickly of new advances in useful library groovyBC you provide other than thread.
Thank you.
immortality is offline   Reply With Quote

Old   April 1, 2013, 03:46
Default
  #11
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Reply


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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 5, 2023 23:48
Help for the small implementation in turbulence model shipman OpenFOAM Programming & Development 25 March 19, 2014 10:08
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 22:40
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 03:34


All times are GMT -4. The time now is 18:09.