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

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 Display Modes
Old   March 19, 2012, 04:11
Default Installation of swak4foam problem
  #1
New Member
 
Anone
Join Date: Feb 2012
Posts: 16
Rep Power: 5
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, 10:35
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
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, 18: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: 7
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, 18:22
Default
  #4
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 530
Rep Power: 16
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, 18:37
Default
  #5
New Member
 
Kevin Flora
Join Date: Oct 2009
Location: California, USA
Posts: 17
Rep Power: 7
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: 5
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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 online now   Reply With Quote

Old   April 7, 2012, 17:02
Default
  #8
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 5
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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 online now   Reply With Quote

Old   April 8, 2012, 14:58
Default
  #10
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 5
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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 online now   Reply With Quote

Old   April 9, 2012, 17:43
Default
  #12
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
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: 5
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: 5
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
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM-2.0.1 installation problem benru OpenFOAM Installation 1 September 14, 2011 09:15
/Allwmake Problem During Installation of OpenFOAM-2.0.0 MPD78 OpenFOAM 0 July 26, 2011 08:38
Installation problem for 64-bits system Chande FLOW-3D 1 March 27, 2011 17:59
HP Elite i7 64bit machine installation problem ahlo7 OpenFOAM Installation 1 March 1, 2011 18:36
Installation paraFoam - still problem nhl OpenFOAM Installation 7 June 22, 2010 09:22


All times are GMT -4. The time now is 19:02.