Fenics Course Lecture 1: Installation of Fenics

Fenics Course Lecture 1: Installation of Fenics

FEniCS Course Lecture 1: Installation of FEniCS Contributors Anders Logg 1 / 8 Installation + Use official packages for Debian and Ubuntu + Use drag and drop installation on Mac OS X + Use VirtualBox + official FEniCS image + Build from source (fenics-install.sh) + Other options: Docker, Conda packages http://fenicsproject.org/download/ 2 / 8 Installation using Debian / Ubuntu packages For latest Debian / Ubuntu release (currently 1.3): Bash code $ sudo apt-get update $ sudo apt-get install fenics For most recent FEniCS release (currently 1.5): Bash code $ sudo add-apt-repository ppa:fenics-packages/fenics $ sudo apt-get update $ sudo apt-get install fenics $ sudo apt-get dist-upgrade 3 / 8 Installation using Mac packages Download the Apple Disk Image (.dmg), click the image and then drag FEniCS into the Applications folder. 4 / 8 Installation using virtual machine images Install VirtualBox, download FEniCS image (.ova), import into VirtualBox (\Import Appliance"), then press Start. For file access, add shared folder under Settings - Shared Folders and enable Auto mount. Folder can be found under /media/. Must be accessed as root (or add user fenics to group vboxsf). 5 / 8 Installation from source Automated installation from source: Bash code $ curl -s http://fenicsproject.org/fenics-install.sh | bash Manual installation from source: Bash code <download and build Boost, MPI, PETSc, NumPy, SymPy, ...> $ git clone [email protected]:fenics-project/ffc.git $ cd ffc && sudo python setup.py install && cd .. $ git clone [email protected]:fenics-project/dolfin.git ... $ cd dolfin && cmake .. && make && sudo make install For developers: Bash code $ git clone [email protected]:fenics-project/fenics-developer-tools.git $ cd fenics-developer-tools $ sudo python setup.py install $ fenics-install-all.sh 6 / 8 The FEniCS challenge! Install FEniCS on your laptop! http://fenicsproject.org/download/ 7 / 8 Does it work? Python code from fenics import* mesh= UnitCubeMesh(16, 16, 16) plot(mesh) interactive() 8 / 8.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    8 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us