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

[swak4Foam] Foam warnings - related to swak4Foam

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2015, 16:40
Default
  #21
Member
 
Rafael Marques
Join Date: Mar 2014
Location: Almada/Mülheim a.d. Ruhr, Portugal/Germany
Posts: 67
Rep Power: 12
rafa13 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Salam,

In reference to you posts on this thread: http://www.cfd-online.com/Forums/ope...trol-dict.html - we can gather a full picture of the problem.

The main issue is whether swak4Foam is properly installed or not. From what I can see, you're using OpenFOAM 2.2.2. Here are the steps I suggest that you follow:
  1. If I'm guessing correctly, you probably have installed the Deb package of OpenFOAM 2.2.2 for Ubuntu. This means that you might be missing some essential build tools, so I suggest that you make sure they are installed, by running:
    Code:
    sudo apt-get install build-essential flex bison zlib1g-dev libreadline-dev libncurses-dev
  2. Next, let's get into a good work folder and download (git clone and checkout) the version of swak4Foam that I know for certain that will build with success:
    Code:
    mkdir -p $FOAM_RUN
    cd $FOAM_RUN
    cd ..
    git clone https://github.com/wyldckat/swak4foam.git
    cd swak4foam
    git checkout OF22X
  3. Now build swak4Foam, by running:
    Code:
    ./Allwmake > make.log 2>&1
    It will take a while to build everything. All of the usual output will be written into the file "make.log".
  4. Now run the same command again:
    Code:
    ./Allwmake > make.log 2>&1
    This will make a summary of whether all of the libraries and utilities were built properly. Once it's done, check the contents written into the file "make.log", which should look something like this:
    Code:
    No 'swakConfiguration'. Python etc won't work
    Checking swak4Foam-version and generating file
    abort: no repository found in '/home/ofuser/OpenFOAM/ofuser-2.2.2/swak4foam' (.hg not found)!
    Swak version is 0.2.4
    Bison is version 2.5
    Flex is version 2.5.35 (Minor version: 35)
    OpenFOAM-version: Major 2 Minor 2 Patch 2 (-1 == x)
    No change to swak4FoamParsers/foamVersion4swak.H
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date.
    SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date.
    make[1]: `/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/bin/replayTransientBC' is up to date.
    make[1]: `/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/bin/calcNonUniformOffsetsForMapped' is up to date.
    make[1]: `/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/bin/funkyDoCalc' is up to date.
    make[1]: `/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/bin/funkySetFields' is up to date.
    make[1]: `/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' is up to date.
    
    
    If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/ofuser/OpenFOAM/ofuser-2.2.2/swak4foam/Libraries (most people will be fine without setting that variable)
  5. If the content of the "make.log" file is substantially different from the one above, please search and replace any sensitive information, zip the file and attach it to your next post.


Now comes the part regarding the aforementioned case, available at the end of this page: https://www.hpc.ntnu.no/display/hpc/...Postprocessing
I ran the following commands to download and unpack the package:
Code:
cd $FOAM_RUN
wget "https://www.hpc.ntnu.no/download/attachments/4587593/beerBottle.tar.gz?version=1&modificationDate=1344854891000&api=v2" -O beerBottle.tar.gz
tar -xzf beerBottle.tar.gz
To run the case, I did these commands:
Code:
cd beerBottle
./Allrun
There seems to be several outdated definitions:
  • Edit the file "fillLevel.plot" and change these lines:
    Code:
    plot 'volumeIntegrate_totalLiquid/0/alpha1' axes x1y1 with lines title 'Volume of liquid', \
         'swakExpression_volFlow/0/volFlow' axes x1y2 with lines title 'Flow rate'
    To this:
    Code:
    plot 'postProcessing/volumeIntegrate_totalLiquid/0/alpha1' axes x1y1 with lines title 'Volume of liquid', \
         'postProcessing/swakExpression_volFlow/0/volFlow' axes x1y2 with lines title 'Flow rate'
  • Get a fresh copy of the fvSchemes file from the original tutorial:
    Code:
    cp $FOAM_TUTORIALS/multiphase/interFoam/laminar/damBreak/system/fvSchemes system/fvSchemes
Now, to run the case again, do it like this:
Code:
./Allclean
./Allrun
And I think that solves all of the reported problems!

Best regards,
Bruno




HI Bruno

thanks Bruno, you the greatest... I was trying to complie swak4foam for 2 days and now i found this post and WOOW it works....I can belive it! you helped me so much!


Greets to everbody

Rafa Marques
rafa13 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
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 11:51
Incompatible dimensions for operation ruben23 OpenFOAM Running, Solving & CFD 2 June 12, 2015 05:14
decomposePar is missing a library whk1992 OpenFOAM Pre-Processing 8 March 7, 2015 08:53
gmsh2ToFoam sarajags_89 OpenFOAM 0 November 24, 2009 23:50
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


All times are GMT -4. The time now is 16:26.