This page shows you how to set up using
CAELinux
Configuring a Vitual Machine (VM)
You create a virtual machine (VM) to run on your existing system. This runs a bit slower but saves you the hassle of switching back and forth between running operating systems. You can also move the VM between computers and increase RAM (depending on what is available) easily.
There is some old info available:
http://www.caelinux.org/wiki/images/f/fd/Install_CAELinux2008_on_VMware.pdf
Build VM
Here is how I set it up on Windows 7 using
VMPlayer
-
Install VM Player and download the CAELinux iso
-
Start > VM Player
-
Create a New Virtual Machine
-
Select "I will install the operating system later" > Next
-
"Linux" + Version "Ubuntu 64-bit" > Next (though 32 bit Ubuntu might be OK)
-
Name the virtual machine and give it a location (e.g. CAELinux) > Next
-
Max disk size of 20G should be enough > Next
-
Customize the hardware for Max RAM as meshing is a RAM hog (maybe half of what the host has) > Finish
Start VM
Now get ready to start the VM
-
"Edit virtual machine settings"
-
"CD/DVD (IDE)" + "Use ISO image file" + select the CAELinux iso > OK
-
Now "Play" the Image and set it up

Configure VM
Setting it up
-
Install CAELinux on the image (rather than having it "boot" of a virtual DVD iso every time) - double click on "Install CAELinux2011" icon and follow the prompts (will take a while to complete and a "restart now" required)
-
It is worth setting up VMWare tools to allow funky things like display resolution changes, copy+paste etc
-
Player > Manage > Install VMWare Tools...
-
Double click on "VMWare Tools DVD" icon
-
Right click on VMWareTools.tar.gz file an "Extract to..." the Desktop
-
Start a terminal: Applications > Accessories > Terminal (Note: any Linux distribution that thinks you don't need to a terminal easily is insane - so right click and add this to the panel, then start it from the panel)
-
cd ~/Desktop/vmware-tools-distrib/
-
sudo ./vmware-install.pl (requires your password)
-
The above will ask lots of questions, just hit enter for all the defaults until complete
-
Reboot
Running OpenFOAM MotorBike Tutorial
To do a test run of the tutorial provided do the following:
-
Applications > CAELinux > OpenFOAM Terminal (you can also right-click add this to the panel for quick access in future)
-
From the terminal enter the following commands - make a copy, change directory to the base directory of the case and start the run script
-
cp -r /opt/openfoam201/tutorials/incompressible/simpleFoam/motorBike .
-
cd motorBike/
-
./AllRun
-
The run will take about 20 minutes and you can look at the log.simpleFoam for the result ("tail log.simpleFoam" will show the last 10 lines)

Visualising the Result
To view the result the best tool is ParaView but there is a trick. OpenFOAM uses a directory structure for all the results, however ParaView needs a single file to open. To solve the problem simply create an empty file in the base directory of the OpenFOAM case with the following command:
touch motorBike.foam

More to come...
Tips for Using Linux
Talk about gedit, mounting a local file system, etc...
|