CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Wiki > What is Open Source?

What is Open Source?

From CFD-Wiki

(Difference between revisions)
Jump to: navigation, search
(Dual/Multiple booting section; Added details about YUMI. Added examples of cases, My own computer as an example.)
Line 30: Line 30:
Another method is by using a Live CD/ USB system. Here, the operating system utilises your CD or USB as the primary harddisk with the OS related files. The RAM of the host computer is used for it's functioning. It is also possible to install the OS onto the USB itself, but this is not recommended as it will wear out your USB stick very fast, simply because any such device has a limit on the number of read/write cycles that can be performed on it. The disadvantage here used to be that, changes made to files/ settings were not preserved on shut down. However, this can be overcome by using a Persistent File storage. Since Linux is about customisation, it is recommended to setup persistence and use a Live USB stick rather than a CD. There are several ways to make a USB stick or a CD bootable. Among the more popular windows based solutions are using [http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/ Universal USB installer] or [http://unetbootin.sourceforge.net/  UNetBootin]. The above mentioned applications allow you to set a certain amount of 'persistence' on the USB stick. This space will be used to preserve the User settings and all the changes made to the Operating System. Step by step tutorials with screenshots are available on [http://www.pendrivelinux.com/  Pen Drive Linux]. This method is a lot faster than using a virtual operating system. There may be an initial lag everytime you start up, but since the entire RAM is available for use, the entire feel of the OS as well the applications could be a lot faster than using a virtual system.
Another method is by using a Live CD/ USB system. Here, the operating system utilises your CD or USB as the primary harddisk with the OS related files. The RAM of the host computer is used for it's functioning. It is also possible to install the OS onto the USB itself, but this is not recommended as it will wear out your USB stick very fast, simply because any such device has a limit on the number of read/write cycles that can be performed on it. The disadvantage here used to be that, changes made to files/ settings were not preserved on shut down. However, this can be overcome by using a Persistent File storage. Since Linux is about customisation, it is recommended to setup persistence and use a Live USB stick rather than a CD. There are several ways to make a USB stick or a CD bootable. Among the more popular windows based solutions are using [http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/ Universal USB installer] or [http://unetbootin.sourceforge.net/  UNetBootin]. The above mentioned applications allow you to set a certain amount of 'persistence' on the USB stick. This space will be used to preserve the User settings and all the changes made to the Operating System. Step by step tutorials with screenshots are available on [http://www.pendrivelinux.com/  Pen Drive Linux]. This method is a lot faster than using a virtual operating system. There may be an initial lag everytime you start up, but since the entire RAM is available for use, the entire feel of the OS as well the applications could be a lot faster than using a virtual system.
-
It is also possible to use tools like [www.pendrivelinux.com/yumi-multiboot-usb-creator/ YUMI] for holding multiple Operating Systems on a single pendrive. The current version only allows persistent storage for one of the operating systems. It offers a GUI where the user can choose the Operating Sytem at the time of start up. It also automatically makes groups of the OS based on the kind of distribution or the type. (Eg Windows Based and Linux based).  
+
It is also possible to use tools like [http://www.pendrivelinux.com/yumi-multiboot-usb-creator/ YUMI] for holding multiple Operating Systems on a single pendrive. The current version only allows persistent storage for one of the operating systems. It offers a GUI where the user can choose the Operating Sytem at the time of start up. It also automatically makes groups of the OS based on the kind of distribution or the type. (Eg Windows Based and Linux based).  
===Dual/Multiple Booting===
===Dual/Multiple Booting===
 +
Dual/Multiple Booting with Windows and Linux is another solution. Open source distributions like those of SUSE and Ubuntu have the option, with an icon on the desktop, to install the OS onto the current Hard Disk. Windows 7, came out with the option of getting installed onto a pendrive. It is anyhow possible to do this using tools mentioned in the previous section, as long as CD/ISO image of the OS is available. Here both the operating systems work independently of each other. It is recommended to install Windows first and then install Linux. Current Linux configurations usually are able to identify popular configurations. Official and unoficial drivers for graphics cards exists. But it also can be seen in forums that particular laptop models (Eg : Acer Aspire Timeline 4820TG) with switchable graphics configurations have trouble with the Ubuntu distribution. External applications like 'Jupiter' can be used to control the CPU usage and bring down the heat. Jupiter is basically a software with customisable 'CPU performance' modes (ranging from 'Maximum Performance' to 'Power Saver'. Using the Power Saver option, has been reported to reduce the temperature by about 5-10 degrees as long as the laptop remains plugged in to a power source.
 +
 +
===Useful Linux Distributio==Introduction==
 +
 +
If you were to ask ten different people what Open Source Software (OSS) is, you would most likely get ten different answers. The official definition can be found, from [http://www.opensource.org/osd.html  The Open Source Initiative], along with guidelines and information related to an Open Source license. From an engineer's standpoint: "Open-source software ... is computer software that is ... provided under a software license that permits users to study, change, and improve the software."
 +
 +
For any decision, especially those related to significant cost and safety impacts, to rely on the analysis based on the results from a software package, the engineer or decision maker needs a mechanism whereby the validity of the algorithms and their implementation can be verified easily. This aspect is all the more important in the case of CFD, where several assumptions and simplifications are made in the process of breaking down the problem, into a set of parameters that can be computed with the available resources. Other factors resulting in the increased interest in CFD, other than the boom in computing power in recent years, is the cost and feasibility of setting up the facilities to realistically experiment and study complicated physical phenomenon.
 +
 +
Granted, not all of us are going to go digging around in the code to determine that a particular piece of software actually cranks out viable results; however, the fact that there are a large number of other users who ARE validating and improving the code provides us with a greater sense of confidence than taking some commercial entity's word for it. There are of course technical paper's and validation studies done using the commercial codes. However, the huge leap ahead in the User Interfaces, available applications and ease of use of Linux operating systems, in the past few years, have made OSS and custom Linux distributions a realistic solution to providing increased efficiency at lower costs along with more freedom
 +
 +
Other than the cost savings, there is another peripheral benefit that is often overlooked : the user community can be quite diverse, not to mention vast. Through forums and mailing lists, a good deal of support and assistance can be accessed without having to navigate through a corporate "Help" desk. These communities are often comprehensive sources of answers to specific questions. The kind of unofficial support, usually found in OpenSource Software, is often purely a function of 'getting things done' and 'gaining knowledge', sans the set commercial limitations. There are also an increasing number of official support channels and training programs offered by organisations like the  [http://www.openfoam.org/ OpenFOAM foundation]
 +
 +
Of course, in parallel, commercial software giants like ANSYS and Altair have made their own powerful impact on the industry and have become conventional, albeit 'reliable' solutions. They have comprehensive after-sales support and often hire well qualified professionals, including PhD's as application engineers, to solve the problems of their clients. Many of them are also active in developing new and probably more customized solutions in collaborations with Universities and the Industry as well. There are plenty of industries and users satisfied with being end users, as it serves their purpose well.
 +
 +
Another huge area where open source and literally 'free' applications are useful is for students with no access to commercial programs.
 +
 +
The objective of this wiki section is to provide a comprehensive reference and guide for harnessing the power of OpenSource and to make an informed  and unbiased decision of the kind of package that will provide the most efficient/comprehensive solution to the problem being faced.
 +
 +
==Cost and Licensing Considerations==
 +
 +
Note that there's nothing in the definition of OpenSource software about its cost. Fortunately, many of the OpenSource solutions now available for engineering applications also happen to be free of any licensing fees (although this is not always the case). Some of the OpenSource software that is available for free is restricted to personal-use; you are not allowed to use it in your commercial engineering practice. Yet many of the best tools we have encountered are not hindered by restrictive licenses. Still, one must be aware of such restrictions to avoid ethical violations or possible legal problems. More information can be found on The Open Source Initiative website.
 +
 +
 +
One's focus will naturally be upon Free and Open software. But, this particular category may not provide a viable solution for every circumstance. Therefore, as necessity dictates, the engineer should swerve off the path to explore some possibilities that are not free, or that may involve restrictive licenses. The goal is to identify the most cost-effective tools for engineering applications. And, of course, part of the cost that must be considered is the time one must invest in learning how to use the software. It lies in the engineer's purview to understand the software and make informed decisions about which kind of tool to use.
 +
 +
Based on the definitions above, it is not necessary for open source to be Operating system biased. It basically means code accessible to be modified and used. This can take place in Windows as well. In fact, there are articles suggesting that in many cases, Windows is simply the hassle free option where service is guaranteed and you do not have to get deeply involved with developmental sort of work (See this article on '[http://www.economist.com/blogs/babbage/2012/03/desktop-linux  The Economist]') CFD is also probably moving out in such directions, branching out to knowledgeable end users and those that play with numerical schemes and writing better code to put these schemes into use.
 +
 +
 +
===Installing Linux distributions=== :
 +
Different ways in which you can get started with Linux Distributions. The objective for the section is to eventually have comprehensive references and guides to using free CFD softwares, on both Windows and Linux, including reviews, links to interesting articles as well.
 +
 +
 +
====Virtual Operating System====
 +
The advent of functional User Interfaces in Linux distributions, even with styles matching that of Windows has made it a lot more easier to experiment with Open Source applications. One of the easiest ways to kickstart your open source experience within Windows itself is to use a virtual environment. There are free applications (eg : [https://www.virtualbox.org/ VirtualBox] , [https://www.vmware.com/  VMWare] ) which allow you to experience the Linux Operating system within Windows itself. All that is required is an ISO image or CD of the Operating System setup. It is possible to setup the virtual system to use a particular amount of RAM and also give it permission to access the host systems data and hardware. This method is often preferred as a starting point and also where very limited usage of other distributions is required. However, this method does not allow you to efficiently utilise all the computer's resources because Windows is the base OS and requires a minimum amount of RAM to keep running. This solution is also not effective for handling large geometries or heavy number crunching.
 +
 +
====Using Live USB/CD systems====
 +
Another method is by using a Live CD/ USB system. Here, the operating system utilises your CD or USB as the primary harddisk with the OS related files. The RAM of the host computer is used for it's functioning. It is also possible to install the OS onto the USB itself, but this is not recommended as it will wear out your USB stick very fast, simply because any such device has a limit on the number of read/write cycles that can be performed on it. The disadvantage here used to be that, changes made to files/ settings were not preserved on shut down. However, this can be overcome by using a Persistent File storage. Since Linux is about customisation, it is recommended to setup persistence and use a Live USB stick rather than a CD. There are several ways to make a USB stick or a CD bootable. Among the more popular windows based solutions are using [http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/ Universal USB installer] or [http://unetbootin.sourceforge.net/  UNetBootin]. The above mentioned applications allow you to set a certain amount of 'persistence' on the USB stick. This space will be used to preserve the User settings and all the changes made to the Operating System. Step by step tutorials with screenshots are available on [http://www.pendrivelinux.com/  Pen Drive Linux]. This method is a lot faster than using a virtual operating system. There may be an initial lag everytime you start up, but since the entire RAM is available for use, the feel of the OS as well the applications could be a lot faster than using a virtual system. With USB 3.0, it could be a much faster process with very less lag due to increased data transfer speeds. With the later versions of Ubuntu, there is a built in option to install the current OS onto a USB drive. The updates installed till date, can be selectively/collectively chosen to be written onto a CD/image and saved, using applications like [http://aptoncd.sourceforge.net/ Apton CD], see this [http://www.prash-babu.com/2009/07/how-to-backup-all-your-ubuntu.html tutorial]. Partitions of drives are similar to partition tools inbuilt in windows, eg Gparted. A large pendrive or a Harddisk can easily be partitioned into primary's for OS or space for portable storage, files that you want to take along with your portable OS.
 +
 +
It is also possible to use tools like [http://www.pendrivelinux.com/yumi-multiboot-usb-creator/ YUMI] for holding multiple Operating Systems on a single pendrive. The current version only allows persistent storage for one of the operating systems. It offers a GUI where the user can choose the Operating Sytem at the time of start up. It also automatically makes groups of the OS based on the kind of distribution or the type. (Eg Windows Based and Linux based).
 +
 +
====Dual/Multiple Booting====
Dual/Multiple Booting with Windows and Linux is another solution. Open source distributions like those of SUSE and Ubuntu have the option, with an icon on the desktop, to install the OS onto the current Hard Disk. Windows 7, came out with the option of getting installed onto a pendrive. It is anyhow possible to do this using tools mentioned in the previous section, as long as CD/ISO image of the OS is available. Here both the operating systems work independently of each other. It is recommended to install Windows first and then install Linux. Current Linux configurations usually are able to identify popular configurations. Official and unoficial drivers for graphics cards exists. But it also can be seen in forums that particular laptop models (Eg : Acer Aspire Timeline 4820TG) with switchable graphics configurations have trouble with the Ubuntu distribution. External applications like 'Jupiter' can be used to control the CPU usage and bring down the heat. Jupiter is basically a software with customisable 'CPU performance' modes (ranging from 'Maximum Performance' to 'Power Saver'. Using the Power Saver option, has been reported to reduce the temperature by about 5-10 degrees as long as the laptop remains plugged in to a power source.
Dual/Multiple Booting with Windows and Linux is another solution. Open source distributions like those of SUSE and Ubuntu have the option, with an icon on the desktop, to install the OS onto the current Hard Disk. Windows 7, came out with the option of getting installed onto a pendrive. It is anyhow possible to do this using tools mentioned in the previous section, as long as CD/ISO image of the OS is available. Here both the operating systems work independently of each other. It is recommended to install Windows first and then install Linux. Current Linux configurations usually are able to identify popular configurations. Official and unoficial drivers for graphics cards exists. But it also can be seen in forums that particular laptop models (Eg : Acer Aspire Timeline 4820TG) with switchable graphics configurations have trouble with the Ubuntu distribution. External applications like 'Jupiter' can be used to control the CPU usage and bring down the heat. Jupiter is basically a software with customisable 'CPU performance' modes (ranging from 'Maximum Performance' to 'Power Saver'. Using the Power Saver option, has been reported to reduce the temperature by about 5-10 degrees as long as the laptop remains plugged in to a power source.
===Useful Linux Distributions===
===Useful Linux Distributions===
 +
In the past, installing the applications and using the Command Line Interface (CLI) was quite an issue for users used to the easy Graphical USer Interface (GUI) in windows. There are customised Linux Distributions that solve this issue.
 +
 +
CAE-Linux is an Ubuntu based distribution with a huge number of pre installed applications that cater specifically to the Engineer. Currently, the 2011 edition is only available as a x64 edition though there was an earlier edition (2008) which also had a x32 option. 64 bit architecture is however preferred for serious computational efforts.
 +
 +
GeekoCFD is a SUSE based distribution with pre installed applications. There are far more applications on CAE-Linux. However, it is possible to customise your linux distribution online, using the SUSE studio to include exactly the applications that you would like in your basic OS installation/setup disc. This disc/configuration can be saved and downloaded as an ISO image.
 +
 +
==References==
 +
 +
 +
==Related Links==
 +
 +
*[http://www.cfd-online.com/Wiki/Codes#Free_codes Codes section on CFD Wiki] - Contains a pretty long list of Free & Commercial codes
 +
*[http://www.cfd-online.com/Wiki/Source_code_archive Source Code Archive - CFD Wiki] - Donated Source Codes and External Links
 +
*[http://www.caelinux.com/CMS/index.php?option=com_content CAE- Linux] - Official website of CAE- Linux, an x64 Ubuntu based Linux Distribution with a huge variety of pre installed engineering applications.
 +
*[http://susestudio.com/a/2qtLK2/geekocfd GeekoCFD] - A customisable SUSE based distribution with both x64 and x32 versions. Contains a few applications pre installed, but the Live CD can be customised online via SUSE studio.
 +
*[http://storify.com/ShreyasRagavan/linux-learning-resources Learning Linux - a Collation ] - This is a collection of web resources for learning Linux and gaining some practical skills.
 +
 +
 +
 +
 +
{{stub}}ns===
In the past, installing the applications and using the Command Line Interface (CLI) was quite an issue for users used to the easy Graphical USer Interface (GUI) in windows. There are customised Linux Distributions that solve this issue.
In the past, installing the applications and using the Command Line Interface (CLI) was quite an issue for users used to the easy Graphical USer Interface (GUI) in windows. There are customised Linux Distributions that solve this issue.

Revision as of 13:30, 19 June 2012

Contents

Introduction

If you were to ask ten different people what Open Source Software (OSS) is, you would most likely get ten different answers. The official definition can be found, from The Open Source Initiative, along with guidelines and information related to an Open Source license. From an engineer's standpoint: "Open-source software ... is computer software that is ... provided under a software license that permits users to study, change, and improve the software."

For any decision, especially those related to significant cost and safety impacts, to rely on the analysis based on the results from a software package, the engineer or decision maker needs a mechanism whereby the validity of the algorithms and their implementation can be verified easily. This aspect is all the more important in the case of CFD, where several assumptions and simplifications are made in the process of breaking down the problem, into a set of parameters that can be computed with the available resources. Other factors resulting in the increased interest in CFD, other than the boom in computing power in recent years, is the cost and feasibility of setting up the facilities to realistically experiment and study complicated physical phenomenon.

Granted, not all of us are going to go digging around in the code to determine that a particular piece of software actually cranks out viable results; however, the fact that there are a large number of other users who ARE validating and improving the code provides us with a greater sense of confidence than taking some commercial entity's word for it. There are of course technical paper's and validation studies done using the commercial codes. However, the huge leap ahead in the User Interfaces, available applications and ease of use of Linux operating systems, in the past few years, have made OSS and custom Linux distributions a realistic solution to providing increased efficiency at lower costs along with more freedom

Other than the cost savings, there is another peripheral benefit that is often overlooked : the user community can be quite diverse, not to mention vast. Through forums and mailing lists, a good deal of support and assistance can be accessed without having to navigate through a corporate "Help" desk. These communities are often comprehensive sources of answers to specific questions. The kind of unofficial support, usually found in OpenSource Software, is often purely a function of 'getting things done' and 'gaining knowledge', sans the set commercial limitations. There are also an increasing number of official support channels and training programs offered by organisations like the OpenFOAM foundation

Of course, in parallel, commercial software giants like ANSYS and Altair have made their own powerful impact on the industry and have become conventional, albeit 'reliable' solutions. They have comprehensive after-sales support and often hire well qualified professionals, including PhD's as application engineers, to solve the problems of their clients. Many of them are also active in developing new and probably more customized solutions in collaborations with Universities and the Industry as well. There are plenty of industries and users satisfied with being end users, as it serves their purpose well.

Another huge area where open source and literally 'free' applications are useful is for students with no access to commercial programs.

The objective of this wiki section is to provide a comprehensive reference and guide for harnessing the power of OpenSource and to make an informed and unbiased decision of the kind of package that will provide the most efficient/comprehensive solution to the problem being faced.

Cost and Licensing Considerations

Note that there's nothing in the definition of OpenSource software about its cost. Fortunately, many of the OpenSource solutions now available for engineering applications also happen to be free of any licensing fees (although this is not always the case). Some of the OpenSource software that is available for free is restricted to personal-use; you are not allowed to use it in your commercial engineering practice. Yet many of the best tools we have encountered are not hindered by restrictive licenses. Still, one must be aware of such restrictions to avoid ethical violations or possible legal problems. More information can be found on The Open Source Initiative website.


One's focus will naturally be upon Free and Open software. But, this particular category may not provide a viable solution for every circumstance. Therefore, as necessity dictates, the engineer should swerve off the path to explore some possibilities that are not free, or that may involve restrictive licenses. The goal is to identify the most cost-effective tools for engineering applications. And, of course, part of the cost that must be considered is the time one must invest in learning how to use the software. It lies in the engineer's purview to understand the software and make informed decisions about which kind of tool to use.


Using Open Source CFD

Virtual Operating System

The advent of functional User Interfaces in Linux distributions, even with styles matching that of Windows has made it a lot more easier to experiment with Open Source applications. One of the easiest ways to kickstart your open source experience within Windows itself is to use a virtual environment. There are free applications (eg : VirtualBox , VMWare ) which allow you to experience the Linux Operating system within Windows itself. All that is required is an ISO image or CD of the Operating System setup. It is possible to setup the virtual system to use a particular amount of RAM and also give it permission to access the host systems data and hardware. This method is often preferred as a starting point and also where very limited usage of other distributions is required. However, this method does not allow you to efficiently utilise all the computer's resources because Windows is the base OS and requires a minimum amount of RAM to keep running. This solution is also not effective for handling large geometries or heavy number crunching.

Using Live USB/CD systems

Another method is by using a Live CD/ USB system. Here, the operating system utilises your CD or USB as the primary harddisk with the OS related files. The RAM of the host computer is used for it's functioning. It is also possible to install the OS onto the USB itself, but this is not recommended as it will wear out your USB stick very fast, simply because any such device has a limit on the number of read/write cycles that can be performed on it. The disadvantage here used to be that, changes made to files/ settings were not preserved on shut down. However, this can be overcome by using a Persistent File storage. Since Linux is about customisation, it is recommended to setup persistence and use a Live USB stick rather than a CD. There are several ways to make a USB stick or a CD bootable. Among the more popular windows based solutions are using Universal USB installer or UNetBootin. The above mentioned applications allow you to set a certain amount of 'persistence' on the USB stick. This space will be used to preserve the User settings and all the changes made to the Operating System. Step by step tutorials with screenshots are available on Pen Drive Linux. This method is a lot faster than using a virtual operating system. There may be an initial lag everytime you start up, but since the entire RAM is available for use, the entire feel of the OS as well the applications could be a lot faster than using a virtual system.

It is also possible to use tools like YUMI for holding multiple Operating Systems on a single pendrive. The current version only allows persistent storage for one of the operating systems. It offers a GUI where the user can choose the Operating Sytem at the time of start up. It also automatically makes groups of the OS based on the kind of distribution or the type. (Eg Windows Based and Linux based).

Dual/Multiple Booting

Dual/Multiple Booting with Windows and Linux is another solution. Open source distributions like those of SUSE and Ubuntu have the option, with an icon on the desktop, to install the OS onto the current Hard Disk. Windows 7, came out with the option of getting installed onto a pendrive. It is anyhow possible to do this using tools mentioned in the previous section, as long as CD/ISO image of the OS is available. Here both the operating systems work independently of each other. It is recommended to install Windows first and then install Linux. Current Linux configurations usually are able to identify popular configurations. Official and unoficial drivers for graphics cards exists. But it also can be seen in forums that particular laptop models (Eg : Acer Aspire Timeline 4820TG) with switchable graphics configurations have trouble with the Ubuntu distribution. External applications like 'Jupiter' can be used to control the CPU usage and bring down the heat. Jupiter is basically a software with customisable 'CPU performance' modes (ranging from 'Maximum Performance' to 'Power Saver'. Using the Power Saver option, has been reported to reduce the temperature by about 5-10 degrees as long as the laptop remains plugged in to a power source.

=Useful Linux Distributio==Introduction

If you were to ask ten different people what Open Source Software (OSS) is, you would most likely get ten different answers. The official definition can be found, from The Open Source Initiative, along with guidelines and information related to an Open Source license. From an engineer's standpoint: "Open-source software ... is computer software that is ... provided under a software license that permits users to study, change, and improve the software."

For any decision, especially those related to significant cost and safety impacts, to rely on the analysis based on the results from a software package, the engineer or decision maker needs a mechanism whereby the validity of the algorithms and their implementation can be verified easily. This aspect is all the more important in the case of CFD, where several assumptions and simplifications are made in the process of breaking down the problem, into a set of parameters that can be computed with the available resources. Other factors resulting in the increased interest in CFD, other than the boom in computing power in recent years, is the cost and feasibility of setting up the facilities to realistically experiment and study complicated physical phenomenon.

Granted, not all of us are going to go digging around in the code to determine that a particular piece of software actually cranks out viable results; however, the fact that there are a large number of other users who ARE validating and improving the code provides us with a greater sense of confidence than taking some commercial entity's word for it. There are of course technical paper's and validation studies done using the commercial codes. However, the huge leap ahead in the User Interfaces, available applications and ease of use of Linux operating systems, in the past few years, have made OSS and custom Linux distributions a realistic solution to providing increased efficiency at lower costs along with more freedom

Other than the cost savings, there is another peripheral benefit that is often overlooked : the user community can be quite diverse, not to mention vast. Through forums and mailing lists, a good deal of support and assistance can be accessed without having to navigate through a corporate "Help" desk. These communities are often comprehensive sources of answers to specific questions. The kind of unofficial support, usually found in OpenSource Software, is often purely a function of 'getting things done' and 'gaining knowledge', sans the set commercial limitations. There are also an increasing number of official support channels and training programs offered by organisations like the OpenFOAM foundation

Of course, in parallel, commercial software giants like ANSYS and Altair have made their own powerful impact on the industry and have become conventional, albeit 'reliable' solutions. They have comprehensive after-sales support and often hire well qualified professionals, including PhD's as application engineers, to solve the problems of their clients. Many of them are also active in developing new and probably more customized solutions in collaborations with Universities and the Industry as well. There are plenty of industries and users satisfied with being end users, as it serves their purpose well.

Another huge area where open source and literally 'free' applications are useful is for students with no access to commercial programs.

The objective of this wiki section is to provide a comprehensive reference and guide for harnessing the power of OpenSource and to make an informed and unbiased decision of the kind of package that will provide the most efficient/comprehensive solution to the problem being faced.

Cost and Licensing Considerations

Note that there's nothing in the definition of OpenSource software about its cost. Fortunately, many of the OpenSource solutions now available for engineering applications also happen to be free of any licensing fees (although this is not always the case). Some of the OpenSource software that is available for free is restricted to personal-use; you are not allowed to use it in your commercial engineering practice. Yet many of the best tools we have encountered are not hindered by restrictive licenses. Still, one must be aware of such restrictions to avoid ethical violations or possible legal problems. More information can be found on The Open Source Initiative website.


One's focus will naturally be upon Free and Open software. But, this particular category may not provide a viable solution for every circumstance. Therefore, as necessity dictates, the engineer should swerve off the path to explore some possibilities that are not free, or that may involve restrictive licenses. The goal is to identify the most cost-effective tools for engineering applications. And, of course, part of the cost that must be considered is the time one must invest in learning how to use the software. It lies in the engineer's purview to understand the software and make informed decisions about which kind of tool to use.

Based on the definitions above, it is not necessary for open source to be Operating system biased. It basically means code accessible to be modified and used. This can take place in Windows as well. In fact, there are articles suggesting that in many cases, Windows is simply the hassle free option where service is guaranteed and you do not have to get deeply involved with developmental sort of work (See this article on 'The Economist') CFD is also probably moving out in such directions, branching out to knowledgeable end users and those that play with numerical schemes and writing better code to put these schemes into use.


===Installing Linux distributions=== : Different ways in which you can get started with Linux Distributions. The objective for the section is to eventually have comprehensive references and guides to using free CFD softwares, on both Windows and Linux, including reviews, links to interesting articles as well.


Virtual Operating System

The advent of functional User Interfaces in Linux distributions, even with styles matching that of Windows has made it a lot more easier to experiment with Open Source applications. One of the easiest ways to kickstart your open source experience within Windows itself is to use a virtual environment. There are free applications (eg : VirtualBox , VMWare ) which allow you to experience the Linux Operating system within Windows itself. All that is required is an ISO image or CD of the Operating System setup. It is possible to setup the virtual system to use a particular amount of RAM and also give it permission to access the host systems data and hardware. This method is often preferred as a starting point and also where very limited usage of other distributions is required. However, this method does not allow you to efficiently utilise all the computer's resources because Windows is the base OS and requires a minimum amount of RAM to keep running. This solution is also not effective for handling large geometries or heavy number crunching.

Using Live USB/CD systems

Another method is by using a Live CD/ USB system. Here, the operating system utilises your CD or USB as the primary harddisk with the OS related files. The RAM of the host computer is used for it's functioning. It is also possible to install the OS onto the USB itself, but this is not recommended as it will wear out your USB stick very fast, simply because any such device has a limit on the number of read/write cycles that can be performed on it. The disadvantage here used to be that, changes made to files/ settings were not preserved on shut down. However, this can be overcome by using a Persistent File storage. Since Linux is about customisation, it is recommended to setup persistence and use a Live USB stick rather than a CD. There are several ways to make a USB stick or a CD bootable. Among the more popular windows based solutions are using Universal USB installer or UNetBootin. The above mentioned applications allow you to set a certain amount of 'persistence' on the USB stick. This space will be used to preserve the User settings and all the changes made to the Operating System. Step by step tutorials with screenshots are available on Pen Drive Linux. This method is a lot faster than using a virtual operating system. There may be an initial lag everytime you start up, but since the entire RAM is available for use, the feel of the OS as well the applications could be a lot faster than using a virtual system. With USB 3.0, it could be a much faster process with very less lag due to increased data transfer speeds. With the later versions of Ubuntu, there is a built in option to install the current OS onto a USB drive. The updates installed till date, can be selectively/collectively chosen to be written onto a CD/image and saved, using applications like Apton CD, see this tutorial. Partitions of drives are similar to partition tools inbuilt in windows, eg Gparted. A large pendrive or a Harddisk can easily be partitioned into primary's for OS or space for portable storage, files that you want to take along with your portable OS.

It is also possible to use tools like YUMI for holding multiple Operating Systems on a single pendrive. The current version only allows persistent storage for one of the operating systems. It offers a GUI where the user can choose the Operating Sytem at the time of start up. It also automatically makes groups of the OS based on the kind of distribution or the type. (Eg Windows Based and Linux based).

Dual/Multiple Booting

Dual/Multiple Booting with Windows and Linux is another solution. Open source distributions like those of SUSE and Ubuntu have the option, with an icon on the desktop, to install the OS onto the current Hard Disk. Windows 7, came out with the option of getting installed onto a pendrive. It is anyhow possible to do this using tools mentioned in the previous section, as long as CD/ISO image of the OS is available. Here both the operating systems work independently of each other. It is recommended to install Windows first and then install Linux. Current Linux configurations usually are able to identify popular configurations. Official and unoficial drivers for graphics cards exists. But it also can be seen in forums that particular laptop models (Eg : Acer Aspire Timeline 4820TG) with switchable graphics configurations have trouble with the Ubuntu distribution. External applications like 'Jupiter' can be used to control the CPU usage and bring down the heat. Jupiter is basically a software with customisable 'CPU performance' modes (ranging from 'Maximum Performance' to 'Power Saver'. Using the Power Saver option, has been reported to reduce the temperature by about 5-10 degrees as long as the laptop remains plugged in to a power source.

Useful Linux Distributions

In the past, installing the applications and using the Command Line Interface (CLI) was quite an issue for users used to the easy Graphical USer Interface (GUI) in windows. There are customised Linux Distributions that solve this issue.

CAE-Linux is an Ubuntu based distribution with a huge number of pre installed applications that cater specifically to the Engineer. Currently, the 2011 edition is only available as a x64 edition though there was an earlier edition (2008) which also had a x32 option. 64 bit architecture is however preferred for serious computational efforts.

GeekoCFD is a SUSE based distribution with pre installed applications. There are far more applications on CAE-Linux. However, it is possible to customise your linux distribution online, using the SUSE studio to include exactly the applications that you would like in your basic OS installation/setup disc. This disc/configuration can be saved and downloaded as an ISO image.

References

Related Links

  • Codes section on CFD Wiki - Contains a pretty long list of Free & Commercial codes
  • Source Code Archive - CFD Wiki - Donated Source Codes and External Links
  • CAE- Linux - Official website of CAE- Linux, an x64 Ubuntu based Linux Distribution with a huge variety of pre installed engineering applications.
  • GeekoCFD - A customisable SUSE based distribution with both x64 and x32 versions. Contains a few applications pre installed, but the Live CD can be customised online via SUSE studio.
  • Learning Linux - a Collation - This is a collection of web resources for learning Linux and gaining some practical skills.



ns=== In the past, installing the applications and using the Command Line Interface (CLI) was quite an issue for users used to the easy Graphical USer Interface (GUI) in windows. There are customised Linux Distributions that solve this issue.

CAE-Linux is an Ubuntu based distribution with a huge number of pre installed applications that cater specifically to the Engineer. Currently, the 2011 edition is only available as a x64 edition though there was an earlier edition (2008) which also had a x32 option. 64 bit architecture is however preferred for serious computational efforts.

GeekoCFD is a SUSE based distribution with pre installed applications. There are far more applications on CAE-Linux. However, it is possible to customise your linux distribution online, using the SUSE studio to include exactly the applications that you would like in your basic OS installation/setup disc. This disc/configuration can be saved and downloaded as an ISO image.

References

Related Links

  • Codes section on CFD Wiki - Contains a pretty long list of Free & Commercial codes
  • Source Code Archive - CFD Wiki - Donated Source Codes and External Links
  • CAE- Linux - Official website of CAE- Linux, an x64 Ubuntu based Linux Distribution with a huge variety of pre installed engineering applications.
  • GeekoCFD - A customisable SUSE based distribution with both x64 and x32 versions. Contains a few applications pre installed, but the Live CD can be customised online via SUSE studio.
  • Learning Linux - a Collation - This is a collection of web resources for learning Linux and gaining some practical skills.



My wiki