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] OF Installation for Swak4foam + Linux Newbie (https://www.cfd-online.com/Forums/openfoam-community-contributions/130348-installation-swak4foam-linux-newbie.html)

RicME85 February 24, 2014 14:18

OF Installation for Swak4foam + Linux Newbie
 
Im trying to install Openfoam and Swak4foam on Lubuntu so that I can run simulations of my F1 car for the Khamsin Virtual Racecar Challenge, problem is Im new to Linux so most stuff goes straight over my head.

I have been following the guide at - http://www.tfd.chalmers.se/~hani/kur...OwnLaptop.html

I have got to the part of the guide that says:
Quote:

Close the terminal window, open a new one:
CTRL-ALT-T
and continue:
OF22x
foam
...problem is when I do OF22x I get this:
Quote:

bash: /opt/OpenFOAM-2.2.x/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.2.x/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.2.x/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.2.x/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.2.x/etc/config/settings.sh: No such file or directory
bash: /opt/OpenFOAM-2.2.x/etc/config/aliases.sh: No such file or directory
bash: /opt/OpenFOAM-2.2.x/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.2.x/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.2.x/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.2.x/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.2.x/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.2.x/bin/foamCleanPath: No such file or directory
Any ideas?

gschaider February 26, 2014 11:30

Quote:

Originally Posted by RicME85 (Post 476545)
Im trying to install Openfoam and Swak4foam on Lubuntu so that I can run simulations of my F1 car for the Khamsin Virtual Racecar Challenge, problem is Im new to Linux so most stuff goes straight over my head.

I have been following the guide at - http://www.tfd.chalmers.se/~hani/kur...OwnLaptop.html

I have got to the part of the guide that says:


...problem is when I do OF22x I get this:


Any ideas?

Check whether /opt/OpenFOAM-2.2.x/bin/ is there (or its parents). Seems that the script and reality are not aligned

BTW: use CODE instead of QUOTE for output in your postings

RicME85 February 27, 2014 06:18

Had a change of plan, decided to go exactly as the guide says in the link I posted in the OP so have an Ubuntu 12.04 LTS install and have got further through the guide than before.

The guide now says to do the following:
Code:

Test the installation:
CTRL-ALT_T #To open an new terminal window
OF22x
mkdir -p $FOAM_RUN
run
cp –r $FOAM_TUTORIALS/incompressible/icoFoam/cavity .
cd cavity
blockMesh
icoFoam
paraFoam

Problem I have now is this:
Code:

richard@laptop:~/OpenFOAM/richard-2.2.x/run$ cp –r $FOAM_TUTORIALS/incompressible/icoFoam/cavity .
cp: cannot stat `–r': No such file or directory
cp: omitting directory `/home/richard/OpenFOAM/OpenFOAM-2.2.x/tutorials/incompressible/icoFoam/cavity'


gschaider February 27, 2014 12:13

Quote:

Originally Posted by RicME85 (Post 477085)
Had a change of plan, decided to go exactly as the guide says in the link I posted in the OP so have an Ubuntu 12.04 LTS install and have got further through the guide than before.

The guide now says to do the following:
Code:

Test the installation:
CTRL-ALT_T #To open an new terminal window
OF22x
mkdir -p $FOAM_RUN
run
cp –r $FOAM_TUTORIALS/incompressible/icoFoam/cavity .
cd cavity
blockMesh
icoFoam
paraFoam

Problem I have now is this:
Code:

richard@laptop:~/OpenFOAM/richard-2.2.x/run$ cp –r $FOAM_TUTORIALS/incompressible/icoFoam/cavity .
cp: cannot stat `–r': No such file or directory
cp: omitting directory `/home/richard/OpenFOAM/OpenFOAM-2.2.x/tutorials/incompressible/icoFoam/cavity'


This looks like cp on your machine does not support -r (strange). Check the man-page. Maybe -R or --recursive work

wyldckat February 27, 2014 16:21

Greetings to all!

Just a quick drive-by to point out a very particular detail... better explained on this Wikipedia article: http://en.wikipedia.org/wiki/Hyphen-minus
  • "-" is a hyphen, which should work just fine on the terminal, such as "cp -r"
  • "−" is a minus sign, which will not work as intended on the terminal ;) (Note: I think it's a minus sign, but I haven't checked the HTML code to confirm this...)
Can't see the difference? Here's side-by-side, where the first one is incorrect:
Code:

cp –r $FOAM_TUTORIALS/incompressible/icoFoam/cavity .
cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity .

Always keep in mind that with OpenFOAM and Linux, every single detail, no matter how small, is more important than any other "user friendly interface" leads you to believe ;)

Best regards,
Bruno

PS: It gets worse: http://en.wikipedia.org/wiki/Dash

RicME85 February 27, 2014 16:52

Thank you!
I was copying and pasting into the Terminal so was assuming the guide had everything written correctly, obviously this wasnt the case!
Really appreciate the help.

gschaider February 27, 2014 19:00

Quote:

Originally Posted by wyldckat (Post 477182)
Always keep in mind that with OpenFOAM and Linux, every single detail, no matter how small, is more important than any other "user friendly interface" leads you to believe ;)

I've got this sign over my desk "Computers are like an old-testament god: lots of rules and no mercy"

RicME85 February 28, 2014 07:38

Ok, so I now have OpenFOAM installed :cool:

Now to Swak4foam.
This I have zero idea of. Is there a noobs install guide?

RicME85 February 28, 2014 07:48

Just had an attempt at this and here is what I got:

Code:

richard@laptop:~$ cd /home/richard/OpenFOAM/ThirdParty-2.2.x/
richard@laptop:~/OpenFOAM/ThirdParty-2.2.x$ svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_2.0/libraries/swak4Foam
Checked out revision 2035.
richard@laptop:~/OpenFOAM/ThirdParty-2.2.x$ cd swak4Foam
richard@laptop:~/OpenFOAM/ThirdParty-2.2.x/swak4Foam$ nice ./Allwmake
Previously compiled for OpenFOAM
No file 'swakConfiguration'. Python etc won't work. See README for details
Checking swak4Foam-version and generating file
Swak version is 0.3.0
./Allwmake: line 49: wmake: command not found

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard
richard@laptop:~/OpenFOAM/ThirdParty-2.2.x/swak4Foam$


gschaider February 28, 2014 13:10

Quote:

Originally Posted by RicME85 (Post 477280)
Just had an attempt at this and here is what I got:

Code:

richard@laptop:~$ cd /home/richard/OpenFOAM/ThirdParty-2.2.x/
richard@laptop:~/OpenFOAM/ThirdParty-2.2.x$ svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_2.0/libraries/swak4Foam
Checked out revision 2035.
richard@laptop:~/OpenFOAM/ThirdParty-2.2.x$ cd swak4Foam
richard@laptop:~/OpenFOAM/ThirdParty-2.2.x/swak4Foam$ nice ./Allwmake
Previously compiled for OpenFOAM
No file 'swakConfiguration'. Python etc won't work. See README for details
Checking swak4Foam-version and generating file
Swak version is 0.3.0
./Allwmake: line 49: wmake: command not found

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard
richard@laptop:~/OpenFOAM/ThirdParty-2.2.x/swak4Foam$


Have you sourced the etc/bashrc of your installation in that shell (either manually or via .bashrc)? Then wmake should be in the path

RicME85 February 28, 2014 13:12

No idea, I'm a complete Linux newbie.
How would I go about doing that?

gschaider February 28, 2014 15:03

Quote:

Originally Posted by RicME85 (Post 477338)
No idea, I'm a complete Linux newbie.
How would I go about doing that?

That is the part in the installation description that says "add a line '~/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc' to your ~/.bashrc" (something in that direction). I'm wondering: on that shell: does it even find (for instance) interFoam? The thing is: installing OF is one thing. But you've got to make sure that a new shell 'knows' where OF is

wyldckat March 1, 2014 19:25

Greetings to all!
Quote:

Originally Posted by RicME85 (Post 477338)
No idea, I'm a complete Linux newbie.
How would I go about doing that?

Here's some reading material: http://openfoamwiki.net/index.php/In...with_the_Shell ;)

Best regards,
Bruno


All times are GMT -4. The time now is 11:33.