CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] About installation of swak4Foam (https://www.cfd-online.com/Forums/openfoam-community-contributions/106951-about-installation-swak4foam.html)

mmkr825 September 13, 2012 03:08

About installation of swak4Foam
 
Hi everyone,
I am fresher to openFoam. I came to know the uses of swak4Foam utility for writing boundary conditions. In my application also i need to apply zero flux boundary condition. So i wish to install swak4Foam. Now i am working on OF 2.1.1 version.
I followed every step as mentioned in the tutorials but i am not able to get it. The error message as follows

Error message:-

malli_reddy@ubuntu:~/OpenFOAM/malli_reddy-2.1.1$ svn checkout https://openfoam-extend.svn.sourcefo...ies/swak4Foam/

svn: OPTIONS of 'https://openfoam-extend.svn.sourcefo...ries/swak4Foam': Could not resolve hostname `openfoam-extend.svn.sourceforge.net': No address associated with hostname (https://openfoam-extend.svn.sourceforge.net)



Could you please suggest me how to overcome this problem. And suggest me some good tutorial for the swak4Foam.

Thanks
Regardshttps://mail.google.com/mail/images/cleardot.gif


Mallikarjuna

treima September 13, 2012 06:25

Hello,

you can have a look at this side:
https://github.com/wyldckat/swak4foam

If it isnīt working with svn, you can download the repository as a zip-archive. There is a long README, where you can find several informations and links about swak4foam, too.

I think, there arenīt very much tutorials about swak4foam, but there are others, who can give you more information about this. You can find some examples in the OpenFOAM wiki, depending on your application of swak4foam, i.e. groovyBC:
http://openfoamwiki.net/index.php/Contrib_groovyBC

regards

treima

mmkr825 September 13, 2012 06:43

hi treima,
Thanks for quick reply. I did the same procedure as you suggested. I downloaded swak4Foam zip-archive, and i compiled it with wmake all. I have doubt whether it is installed correctly or not. Please guide me how to test it's functionality.

Thanks
Regards
Mallikarjuna

treima September 13, 2012 07:54

I donīt know, if there is a short procedure or a command, like foamInstallationTest for OpenFOAM, to test the Installation of swak4foam. But you can take one of the tutorials and change a boundary condtion and calculate one with groovyBC. In this case you get some practice, too ;)


regards

treima

mmkr825 September 13, 2012 08:01

hi treima,
Thank you very much for your quick reply. I will go through your suggestion.
I have one more doubt about groovyBC. Is it works for OF 2.1.1 also. I studied in some tutorials that it is only applicable for older versions like OF 1.6,etc.
Could you please clarify my doubt.
Thanks
Regards
Mallikarjuna

treima September 13, 2012 08:24

I havenīt installt version 2.1.1 on my computer, but Iīm working with version 2.1.0 and 1.6-ext. GroovyBC works fine for both versions (for my cases). So it might be the same with version 2.1.1.
Sometimes the tutorials are written for older versions and no one has ever updated the tutorial description ;)

mmkr825 September 13, 2012 08:32

hi sir,
Thanks for quick reply. When i recompiled with wmake all in the swak4Foam library i gotthe following message.

malli_reddy@ubuntu:~/OpenFOAM/malli_reddy-2.1.1/swak4Foam$ wmake all
No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
./Allwmake: 9: [[: not found
./Allwmake: 17: [[: not found
Bison is version 2.4.1
./Allwmake: 33: cannot open 2.3: No such file
./Allwmake: 33: [[: not found
OpenFOAM-version: Major 2 Minor 1 Patch 1
./Allwmake: 67: [[: not found
No change to swak4FoamParsers/foamVersion4swak.H
'/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/platforms/linuxGccDPOpt/lib/libswak4FoamParsers.so' is up to date.
'/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/platforms/linuxGccDPOpt/lib/libgroovyBC.so' is up to date.
'/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/platforms/linuxGccDPOpt/lib/libswakFunctionObjects.so' is up to date.
'/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/platforms/linuxGccDPOpt/lib/libsimpleFunctionObjects.so' is up to date.
'/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/platforms/linuxGccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
'/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/platforms/linuxGccDPOpt/lib/libswakTopoSources.so' is up to date.
'/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/platforms/linuxGccDPOpt/lib/libswakSourceFields.so' is up to date.
'/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/platforms/linuxGccDPOpt/lib/libgroovyStandardBCs.so' is up to date.
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
make[1]: Entering directory `/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/swak4Foam/Utilities/funkyDoCalc'
make[1]: `/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/platforms/linuxGccDPOpt/bin/funkyDoCalc' is up to date.
make[1]: Leaving directory `/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/swak4Foam/Utilities/funkyDoCalc'
make[1]: Entering directory `/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/swak4Foam/Utilities/funkySetBoundaryField'
make[1]: `/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/platforms/linuxGccDPOpt/bin/funkySetBoundaryField' is up to date.
make[1]: Leaving directory `/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/swak4Foam/Utilities/funkySetBoundaryField'
make[1]: Entering directory `/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/swak4Foam/Utilities/funkySetFields'
make[1]: `/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/platforms/linuxGccDPOpt/bin/funkySetFields' is up to date.
make[1]: Leaving directory `/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/swak4Foam/Utilities/funkySetFields'
make[1]: Entering directory `/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/swak4Foam/Utilities/replayTransientBC'
make[1]: `/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/platforms/linuxGccDPOpt/bin/replayTransientBC' is up to date.
make[1]: Leaving directory `/home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/swak4Foam/Utilities/replayTransientBC'



I want to know it is installed correctly or not.

Thanks
Regards
Mallikarjuna

treima September 13, 2012 08:52

It seems, that you donīt have python on your machine, so perhaps some parts wouldnīt work.
But as you can see, the compiled parts are all up to date. You should be able to use them without any problems. That includes groovyBC, funkySetFields and so on, you can see them on your list.

mmkr825 September 13, 2012 08:54

Hi sir,
Thank you very much for spending time on my problem. I have checked in the /home/malli_reddy/OpenFOAM/malli_reddy-2.1.1/platforms/linuxGccDPOpt/lib/ , it consisting of the following files.
libgroovyBC.so libswak4FoamParsers.so
libgroovyStandardBCs.so libswakFunctionObjects.so
libsimpleFunctionObjects.so libswakSourceFields.so
libsimpleSwakFunctionObjects.so libswakTopoSources.so


I will check according to your suggestion. Again thank you so much. I can't forget your help in my project.

Thanks
Regards
Mallikarjuna

aujamal20 December 8, 2012 20:29

Dear

Did u run the allwmake directly or make some changes in any file. I am doing in the same way but it is not working .....

Thanks

mmkr825 December 14, 2012 01:24

Quote:

Originally Posted by aujamal20 (Post 396461)
Dear

Did u run the allwmake directly or make some changes in any file. I am doing in the same way but it is not working .....

Thanks

Hi,

In your swak4Foam/Libraries/Allwmake, Change the first line to
Code:

#! /bin/bash
Then run with wmake all every thing will be o.k.

Thanks
Regards
Mallikarjuna.r


All times are GMT -4. The time now is 14:07.