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

[swak4Foam] Installation of swak4foam problem

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By philippose

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2012, 03:11
Default Installation of swak4foam problem
  #1
New Member
 
Anone
Join Date: Feb 2012
Posts: 16
Rep Power: 14
CFD_user_2012 is on a distinguished road
Hi all

I downloaded swak4foam files. I typed in

./Allwmake

Then the files are installed into the

platforms/linux64GccDPopt/lib/libgroovyBC...

etc...

However it does not seem to installed when I go to Openfoam and find that it does not recognise the groovyBC command

I am not sure if it installed properly


Please help


CFD_user
CFD_user_2012 is offline   Reply With Quote

Old   March 19, 2012, 09:35
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 CFD_user_2012 View Post
Hi all

I downloaded swak4foam files. I typed in

./Allwmake

Then the files are installed into the

platforms/linux64GccDPopt/lib/libgroovyBC...

etc...

However it does not seem to installed when I go to Openfoam and find that it does not recognise the groovyBC command

I am not sure if it installed properly


Please help


CFD_user
groovyBC is not a command. It is "only" a boundary condition. Have a look how to use that via the libs-entry in the controlDict

One command/utility that swak4Foam installs funkySetFields. If that executes then chances are good that swak installed correctly
gschaider is offline   Reply With Quote

Old   March 24, 2012, 17:02
Default Problem geting parts of Swak4Foam to run
  #3
New Member
 
Kevin Flora
Join Date: Oct 2009
Location: California, USA
Posts: 17
Rep Power: 16
kflora is on a distinguished road
I have compiled Swak4Foam on Kubunutu 11.10 with OF 2.1.x and don't see any probems with the compilation (see attached log). While I have no problems executing commands such as "funkySetBoundaryField", the python commands (e.g., pyFoamPlotRunner.py etc) are do not work and give "command not found" at the prompt. What do I need to do to have these commands recognized, or are they just not compiling right?
Attached Files
File Type: txt log.txt (76.3 KB, 7 views)
kflora is offline   Reply With Quote

Old   March 24, 2012, 17:22
Default
  #4
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello Kevin,

A Good Afternoon to you!

I think you have misinterpreted something in the documentation regarding swak4Foam.

The command you are trying to run "pyFoamPlotRunner.py" is not a part of the swak4Foam suite. It is a part of the "PyFoam" Package which is another set of utilities completely independent and unrelated to swak4Foam.

If you are interested in PyFoam, have a look at the following link:
http://openfoamwiki.net/index.php/Contrib_PyFoam

You can also read about the Installation and Usage of PyFoam from the same Website.

Also look at the following presentation by Berhard Gschaider (main driving force behind PyFoam and swak4Foam):
http://openfoamwiki.net/images/e/e0/...UWien_2012.pdf

Hope this helps!

Have a great day ahead!

Philippose
kflora likes this.
philippose is offline   Reply With Quote

Old   March 24, 2012, 17:37
Default
  #5
New Member
 
Kevin Flora
Join Date: Oct 2009
Location: California, USA
Posts: 17
Rep Power: 16
kflora is on a distinguished road
Philippose,

Thanks for you quick help. You were exactly right that I was a bit confused about what was included in swak4Foam. I've got PyFoam working now.

kflora is offline   Reply With Quote

Old   April 7, 2012, 09:03
Default
  #6
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 14
latvietis is on a distinguished road
Greetings!

I get this error and I couldn't find solution in forums. I guess it is rather simple error then...

Code:
Bison is version coetmeur@icdc.fr
No 'swakConfiguration'. Python etc won't work
OpenFOAM-version: Major  Minor  Patch 
No change to Libraries/swak4FoamParsers/foamVersion4swak.H
./Allwmake: line 87: wmake: command not found
./Allwmake: line 93: wmake: command not found
I believe Bison is installed successfully, I don't know about Python though.

I downloaded Python-2.7.2, extracted it and then followed installation manual. So everything should be in place I guess.

Sincerely,
Martin
latvietis is offline   Reply With Quote

Old   April 7, 2012, 16:08
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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
Hi Martin,

According to the error message, the problem is that you didn't have a working OpenFOAM environment, which is why "wmake" was not found!

I wrote sometime ago a blog post explaining a bit about how the "OpenFOAM environment" works: Advanced tips for working with the OpenFOAM shell environment

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 7, 2012, 17:02
Default
  #8
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 14
latvietis is on a distinguished road
Wow, that doesn't sound good. Could it mean I would need to reinstall OpenFOAM?
latvietis is offline   Reply With Quote

Old   April 7, 2012, 19:14
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 latvietis View Post
Wow, that doesn't sound good. Could it mean I would need to reinstall OpenFOAM?
It depends:
  • Are you able to use anything else from OpenFOAM?
  • Which version of OpenFOAM did you install?
  • From the same command line where you tried to build swak4Foam, are you able to run icoFoam?
    Code:
    icoFoam -help
  • Have you got only one version of OpenFOAM installed or more than one?
__________________
wyldckat is offline   Reply With Quote

Old   April 8, 2012, 14:58
Default
  #10
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 14
latvietis is on a distinguished road
This seems serious. OpenFoam just doesn't work anymore. I believe this happened after I installed Python. Every time when I open console it shows

Code:
bash: /opt/openfoam210/etc/bashrc: No such file or directory
I believe I have to do clean reinstall of everything now?

Martin
latvietis is offline   Reply With Quote

Old   April 8, 2012, 15:48
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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
Hi Martin,

What does this output:
Code:
ls -l /opt/openfoam210
If it outputs nothing, it looks like OpenFOAM got removed due to some weird dependency conflict versus python.

In theory, the only step you need for installing OpenFOAM once again is running this command:
Code:
sudo apt-get install openfoam210 paraviewopenfoam3120
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 9, 2012, 17:43
Default
  #12
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 latvietis View Post
This seems serious. OpenFoam just doesn't work anymore. I believe this happened after I installed Python. Every time when I open console it shows

Code:
bash: /opt/openfoam210/etc/bashrc: No such file or directory
I believe I have to do clean reinstall of everything now?

Martin
I doubt that Python is the problem directly. Maybe OF got "upgraded" when you were using the package manager

Before you do anything harsh have a look in /opt whether OF has moved to a similarly named directory
gschaider is offline   Reply With Quote

Old   April 11, 2012, 05:30
Default
  #13
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 14
latvietis is on a distinguished road
Well, yeah. It outputs nothing. I have paraviewopenfoam3120 folder in there. But I actually just checked that paraview is also removed.
latvietis is offline   Reply With Quote

Old   April 11, 2012, 05:34
Default
  #14
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 14
latvietis is on a distinguished road
Ok, I'll try to reinstall everything. Still, how should I properly install swak then?

I should just simply write in console:

and then in download folder run ./Allwmake

right?

Edit: Ok, done. It works.

Last edited by latvietis; April 11, 2012 at 07:13.
latvietis is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[swak4Foam] swak4foam >>>> INSTALLATION PROBLEM steven123 OpenFOAM Community Contributions 35 January 11, 2021 16:53
[OpenFOAM.org] Problem in installation of OpenFOAM-2.3.x Parisa_Khiabani OpenFOAM Installation 5 December 4, 2014 09:04
RHEL 6.3 Installation problem Turbulent STAR-CCM+ 0 September 3, 2014 07:01
[swak4Foam] installation problem: "./Allwmake: ... [[: not found" Rajarshi OpenFOAM Community Contributions 8 May 13, 2013 08:05
[swak4Foam] About installation of swak4Foam mmkr825 OpenFOAM Community Contributions 10 December 14, 2012 01:24


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