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

[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error

Register Blogs Community New Posts Updated Threads Search

Like Tree9Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2014, 18:37
Default swak4foam installation failed
  #21
New Member
 
Nick Krgs
Join Date: Jan 2014
Posts: 13
Rep Power: 12
Nick_civ is on a distinguished road
Hi!
I am a new Openfoam user and i am trying to install swak4foam following the above steps ( i put the attached file into swak4foam folder etc) but it the problem hasn't been solved yet. what can i do to install it properly?


some messages from allwmake:

Making dependency list for source file fieldReport.C
could not open file directMappedFvPatch.H for source file fieldReport.C
could not open file directMappedWallFvPatch.H for source file fieldReport.C
could not open file directMappedPointPatch.H for source file fieldReport.C
could not open file FixedValuePointPatchField.H for source file fieldReport.C
could not open file ZeroGradientPointPatchField.H for source file fieldReport.C
could not open file CalculatedPointPatchField.H for source file fieldReport.C
could not open file directMappedPatchBase.H for source file fieldReport.C
make[1]: Entering directory `/home/nikos/OpenFOAM/swak4Foam/Utilities/fieldReport'

could not open file directMappedFvPatch.H for source file swakRadiationModelPluginFunction.C
could not open file directMappedWallFvPatch.H for source file swakRadiationModelPluginFunction.C
could not open file directMappedPointPatch.H for source file swakRadiationModelPluginFunction.C
could not open file FixedValuePointPatchField.H for source file swakRadiationModelPluginFunction.C
could not open file ZeroGradientPointPatchField.H for source file swakRadiationModelPluginFunction.C
could not open file CalculatedPointPatchField.H for source file swakRadiationModelPluginFunction.C
could not open file basicPsiThermo.H for source file swakRadiationModelPluginFunction.C
could not open file basicRhoThermo.H for source file swakRadiationModelPluginFunction.C
SOURCE=swakRadiationModelPluginFunction.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../../swak4FoamParsers/lnInclude -I/opt/openfoam222/src/meshTools/lnInclude -I/opt/openfoam222/src/finiteVolume/lnInclude -I/opt/openfoam222/src/sampling/lnInclude -I/opt/openfoam222/src/meshTools/lnInclude -I/opt/openfoam222/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam222/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam222/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam222/src/thermophysicalModels/radiationModels/lnInclude -IlnInclude -I. -I/opt/openfoam222/src/OpenFOAM/lnInclude -I/opt/openfoam222/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/swakRadiationModelPluginFunction.o
'/home/nikos/OpenFOAM/nikos-2.2.2/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date.
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file coalCloudEnthalpySourcePluginFunction.C
could not open file basicThermoCloud.H for source file coalCloudEnthalpySourcePluginFunction.C
could not open file CoalCloud.H for source file coalCloudEnthalpySourcePluginFunction.C
Making dependency list for source file coalCloudMassFractionPluginFunction.C
could not open file basicThermoCloud.H for source file coalCloudMassFractionPluginFunction.C
could not open file CoalCloud.H for source file coalCloudMassFractionPluginFunction.C
Making dependency list for source file coalCloudMassSourcePluginFunction.C
could not open file basicThermoCloud.H for source file coalCloudMassSourcePluginFunction.C
could not open file CoalCloud.H for source file coalCloudMassSourcePluginFunction.C
Making dependency list for source file coalCloudMomentumSourcePluginFunction.C
could not open file basicThermoCloud.H for source file coalCloudMomentumSourcePluginFunction.C
could not open file CoalCloud.H for source file coalCloudMomentumSourcePluginFunction.C
Making dependency list for source file coalCloudRhoEffPluginFunction.C
could not open file basicThermoCloud.H for source file coalCloudRhoEffPluginFunction.C
could not open file CoalCloud.H for source file coalCloudRhoEffPluginFunction.C
Making dependency list for source file coalCloudScatteringFactorPluginFunction.C
could not open file basicThermoCloud.H for source file coalCloudScatteringFactorPluginFunction.C
could not open file CoalCloud.H for source file coalCloudScatteringFactorPluginFunction.C
Making dependency list for source file coalCloudSpeciesSourcePluginFunction.C
could not open file basicThermoCloud.H for source file coalCloudSpeciesSourcePluginFunction.C
could not open file CoalCloud.H for source file coalCloudSpeciesSourcePluginFunction.C
Making dependency list for source file coalCloudVolumeFractionPluginFunction.C
could not open file basicThermoCloud.H for source file coalCloudVolumeFractionPluginFunction.C
could not open file CoalCloud.H for source file coalCloudVolumeFractionPluginFunction.C
Making dependency list for source file makeCoalCloudProxys.C
could not open file basicThermoCloud.H for source file makeCoalCloudProxys.C
could not open file CoalCloud.H for source file makeCoalCloudProxys.C
SOURCE=coalCloudEnthalpySourcePluginFunction.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../../../swak4FoamParsers/lnInclude -I


thank you in advance.
NK









Quote:
Originally Posted by wyldckat View Post
Greetings to all!

@Daniel: Many thanks for the report! I've submitted this issue to swak4Foam's bug tracker: https://sourceforge.net/apps/mantisb...iew.php?id=174 - along with the bug fix.

In addition, two notes:
  1. swak4Foam 0.2.4 is already available: http://www.cfd-online.com/Forums/ope...tml#post433484 post #29
  2. Attached is a patch for this version 0.2.4, for compiling with the latest OpenFOAM 2.2.x.
    • Additionally, for those who don't have Git nor SVN ready to be used for getting the latest swak4Foam 0.2.4, feel free to use the ZIP button at the upper left corner of this page: https://github.com/wyldckat/swak4foam/tree/OF22X - it's already patched for building with OpenFOAM 2.2.x.


For applying the attached patch, do the following steps:
  1. Place the attached file inside the main swak4Foam source code folder (version 0.2.4).
  2. Run the following commands:
    Code:
    gunzip patch_swak2Foam_024_OF22x_49808a1c.gz
    patch -p1 < patch_swak2Foam_024_OF22x_49808a1c
  3. And finally, build swak4Foam:
    Code:
    ./Allwmake > make.log 2>&1
Best regards,
Bruno
Nick_civ is offline   Reply With Quote

Old   January 28, 2014, 19:20
Default
  #22
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 Nick_civ View Post
Hi!
I am a new Openfoam user and i am trying to install swak4foam following the above steps ( i put the attached file into swak4foam folder etc) but it the problem hasn't been solved yet. what can i do to install it properly?


some messages from allwmake:

Making dependency list for source file fieldReport.C
could not open file directMappedFvPatch.H for source file fieldReport.C
I didn't see an actual error. The "could not open file"-messages are OK (I know where they come from and they can't be avoided)

Are you really trying to compile swak 0.2.3 (as the thread title indicates)? If yes: do yourself a favour and try the recently released version 0.3.0. If you are already using that: why do you post in a thread that says otherwise?
__________________
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   January 29, 2014, 17:31
Default
  #23
New Member
 
Nick Krgs
Join Date: Jan 2014
Posts: 13
Rep Power: 12
Nick_civ is on a distinguished road
Quote:
Originally Posted by gschaider View Post
I didn't see an actual error. The "could not open file"-messages are OK (I know where they come from and they can't be avoided)

Are you really trying to compile swak 0.2.3 (as the thread title indicates)? If yes: do yourself a favour and try the recently released version 0.3.0. If you are already using that: why do you post in a thread that says otherwise?

i finally compiled swak 0.2.4 succesfully. Thank you.
Nick_civ is offline   Reply With Quote

Old   April 7, 2014, 00:30
Default
  #24
New Member
 
IN
Join Date: Mar 2014
Posts: 9
Rep Power: 12
rohitpurdue is on a distinguished road
Hi Bruno,

I'm trying to install the swak4Foam in order to use the groovyBC, however I am running into issues when running the ./Allwmake. I have 2.2.x version of OpenFOAM and I am using 0.2.4 version of swak4Foam along with its patch patch_swak2Foam_024_OF22x_49808a1c.

But I am getting these errors.

Thanks,

Rohit
Attached Files
File Type: txt foam_compile.txt (17.0 KB, 14 views)
rohitpurdue is offline   Reply With Quote

Old   April 7, 2014, 17:00
Default
  #25
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by rohitpurdue View Post
I'm trying to install the swak4Foam in order to use the groovyBC, however I am running into issues when running the ./Allwmake. I have 2.2.x version of OpenFOAM and I am using 0.2.4 version of swak4Foam along with its patch patch_swak2Foam_024_OF22x_49808a1c.

But I am getting these errors.
Quick answer:
  1. The log file is incomplete. Please run Allwmake like this:
    Code:
    ./Allwmake > make.log 2>&1
  2. For finding an answer more quickly for these issues, please check this page: http://openfoamwiki.net/index.php/In...Error_Messages
__________________
wyldckat is offline   Reply With Quote

Old   April 7, 2014, 17:08
Default
  #26
New Member
 
IN
Join Date: Mar 2014
Posts: 9
Rep Power: 12
rohitpurdue is on a distinguished road
Thank you, although I am getting errors even after applying suggested edit the groovyBC is working fine.

Rohit
rohitpurdue is offline   Reply With Quote

Old   April 16, 2014, 05:32
Default
  #27
Member
 
nadine moussa
Join Date: Mar 2012
Posts: 30
Rep Power: 14
nadine is on a distinguished road
Hello Bruno,

I followed your instructions to install swak4foam for openfoam201 on ubuntu:
Quote:
Originally Posted by wyldckat View Post
Greetings to all!

@Daniel: Many thanks for the report! I've submitted this issue to swak4Foam's bug tracker: https://sourceforge.net/apps/mantisb...iew.php?id=174 - along with the bug fix.

In addition, two notes:
  1. swak4Foam 0.2.4 is already available: http://www.cfd-online.com/Forums/ope...tml#post433484 post #29
  2. Attached is a patch for this version 0.2.4, for compiling with the latest OpenFOAM 2.2.x.
    • Additionally, for those who don't have Git nor SVN ready to be used for getting the latest swak4Foam 0.2.4, feel free to use the ZIP button at the upper left corner of this page: https://github.com/wyldckat/swak4foam/tree/OF22X - it's already patched for building with OpenFOAM 2.2.x.


For applying the attached patch, do the following steps:
  1. Place the attached file inside the main swak4Foam source code folder (version 0.2.4).
  2. Run the following commands:
    Code:
    gunzip patch_swak2Foam_024_OF22x_49808a1c.gz
    patch -p1 < patch_swak2Foam_024_OF22x_49808a1c
  3. And finally, build swak4Foam:
    Code:
    ./Allwmake > make.log 2>&1
Best regards,
Bruno
I used the version you gave for openfoam2.0: https://github.com/wyldckat/swak4foam/tree/OF20

I guess the patch is not working: patch -p1 < patch_swak2Foam_024_OF22x_49808a1c
and honestly I dont know what this does!!!

Code:
the makelog file gives the following msgs:
No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Traceback (most recent call last):
  File "./maintainanceScripts/makeSwakVersionFile.py", line 8, in <module>
    output = Popen(["hg", "branch"], stdout=PIPE).communicate()[0]
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Bison is version 2.5
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 0 Patch 1 (-1 == x)
No change to swak4FoamParsers/foamVersion4swak.H
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date.
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
'/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date.
make[1]: Entering directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4foam-OF20/Utilities/funkyDoCalc'
make[1]: `/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/bin/funkyDoCalc' is up to date.
make[1]: Leaving directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4foam-OF20/Utilities/funkyDoCalc'
make[1]: Entering directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4foam-OF20/Utilities/funkySetBoundaryField'
make[1]: `/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' is up to date.
make[1]: Leaving directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4foam-OF20/Utilities/funkySetBoundaryField'
make[1]: Entering directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4foam-OF20/Utilities/funkySetFields'
make[1]: `/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/bin/funkySetFields' is up to date.
make[1]: Leaving directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4foam-OF20/Utilities/funkySetFields'
make[1]: Entering directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4foam-OF20/Utilities/replayTransientBC'
make[1]: `/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/bin/replayTransientBC' is up to date.
make[1]: Leaving directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4foam-OF20/Utilities/replayTransientBC'


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/nadine/OpenFOAM/nadine-2.0.1/swak4foam-OF20/Libraries (most people will be fine without setting that variable)
I think the swak4foam was not compiled properly and I cant use the groovybc! I really need to used it in order to impose a convective heat coefficient as bc!

I hope it is not a lot to ask, but can you pls help!

Thank you,
Nadine

Last edited by wyldckat; April 16, 2014 at 16:10. Reason: Added [CODE][/CODE] and [QUOTE][/QUOTE] for clarity
nadine is offline   Reply With Quote

Old   April 16, 2014, 16:14
Default
  #28
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Nadine,

Uhm, those instructions are now really outdated. The current ones, which are up-to-date, are available here: http://openfoamwiki.net/index.php/In...ling_On/Ubuntu

But still, from the output you've given, it seems that swak4Foam has been successfully been built. So you should be able to use groovyBC.

So the questions are:
  1. If you have already tried to use groovyBC, what error message did you get?
  2. And what changes did you do to the case, in order to use groovyBC?
Best regards,
Bruno
__________________
wyldckat 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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 01:21
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x Saxwax OpenFOAM Installation 25 November 29, 2013 06:34
[swak4Foam] installing funkySetFields igo OpenFOAM Community Contributions 1 November 20, 2012 21:16
How to get the max value of the whole field waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 06:07


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