- 积分
- 0
- 注册时间
- 2003-11-3
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2012-9-7 09:02:25
|
显示全部楼层
来自 美国
The Ubuntu Deb pack is a good option for a user that wants to install OpenFOAM on a personal computer on which they have Ubuntu Linux running either as the native operating system or within a virtual machine. The pack contains both source code and binaries and includes a list of dependent system software which can be installed automatically to reduce the system administration overhead. It is therefore the simplest installation option, making it the ideal choice for those people with no experience of Linux. The pack is updated periodically to incorporate new features and bug fixes.
Ubuntu Versions
OpenFOAM and Paraview are currently available for the following versions of Ubuntu:
10.04 LTS, codename lucid
11.04, codename natty
11.10, codename oneiric
12.04, codename precise
Installation
OpenFOAM and Paraview can be simply installed using the apt package management tool. The user will need to provide superuser password authentication when executing the following commands with sudo
In a terminal window, add OpenFOAM to the list of repository locations for apt to search, by copying and pasting the following in a terminal prompt (Applications -> Accessories -> Terminal).
VERS=$(lsb_release -cs)
sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu $VERS main > /etc/apt/sources.list.d/openfoam.list"
Note 1: Line 1 stores the version name of your Ubuntu distribution (e.g. maverick) under $VERS, which is used in line 2
Note 2: This only needs to be done once for a given system
Update the apt package list to account for the new download repository location
sudo apt-get update
Install OpenFOAM (211 in the name refers to version 2.1.1):
sudo apt-get install openfoam211
Install Paraview (3120 in the name refers to version 3.12.0):
sudo apt-get install paraviewopenfoam3120
OpenFOAM-2.1.1 and Paraview-3.12.0 are now installed in the /opt directory. |
|