Skip to content

InstallationScripts

mueller-lab edited this page Jan 9, 2024 · 24 revisions

Installing PyFRAP (short version)

We provide PyFRAP installation scripts for the three major operating systems Linux, OSX, and Windows. This section describes how to install PyFRAP using these scripts. This assumes that your computer does not have any specific Python installation running. Moreover, it will automatically download Gmsh. Note that the installation can take a while depending on the download speed.

It is important to execute the following steps exactly as described to guarantee a working PyFRAP installation.

Linux

This describes how to install PyFRAP on Debian-based operating systems such as Ubuntu. Linux generally already comes with a Python installation, and it is therefore not necessary to install Anaconda. The following instructions only work with a native Python installation.

  1. Download and unzip PyFRAP to your computer.
  2. Open a terminal and navigate to the folder containing PyFRAP.
  3. Type
sudo ./install_linux.sh
  1. Type
./runPyFRAP.sh

OSX

Even though OSX comes with a Python installation, we highly recommend using Anaconda instead. The following instructions only work with Anaconda.

  1. Install the Java Development Kit.
  2. Install Anaconda to obtain Python 3.
  3. If you have not yet accepted the Xcode license agreement on your computer, open a terminal (can be found in Applications/Utilities/Terminal) and type
sudo xcodebuild -license accept
  1. Type your administrator password and hit enter.
  2. Download and unzip PyFRAP to your computer.
  3. In Finder, navigate to your PyFRAP folder.
  4. Simultaneously press Control and click on install_osx.command to open (this allows running apps from anywhere; see here).
  5. Run PyFRAP by simultaneously pressing Control and clicking runPyFRAP.command to open (this allows running apps from anywhere; see here).
  6. You can now run PyFRAP and analyze FRAP experiments. A tutorial on how to use PyFRAP's GUI to do so can be found here.

Optional: If you want to use some of PyFRAP's more complicated meshing options, you will need to install openscad.

  1. Download and install openscad from here.
  2. In PyFRAP, go to settings and adjust the path (FolderContainingPyFRAP\pyfrp\executables\openscad\openscad.app).

Windows

In order for PyFRAP to run properly, you must ensure during the installation of all components to only select file paths that do not contain any spaces. A good directory for installation compatible with proper running of PyFRAP is C:\FRAP

  1. Install the Java Development Kit.
  2. Install Anaconda to obtain Python 3 (in the Advanced Installation Options, check the Add Anaconda to my PATH environment variable option).
  3. Download the Microsoft Visual C++ Compiler for Python 3 from https://c2rsetup.officeapps.live.com/c2r/downloadVS.aspx?sku=community&channel=Release&version=VS2022&source=VSLandingPage&includeRecommended=true&cid=2030 and install the program.
  4. Download and unzip PyFRAP to your computer.
  5. In explorer, navigate to your PyFRAP folder.
  6. Double-click on install_win.bat.
  7. Run PyFRAP by double-clicking runPyFRAP.bat.
  8. You can now run PyFRAP and analyze FRAP experiments. A tutorial on how to use PyFRAP's GUI to do so can be found here .

Optional: If you want to use some of PyFRAP's more complicated meshing options, you will need to install openscad.

  1. Download and install openscad from here.
  2. In PyFRAP, go to settings and adjust the path (FolderContainingPyFRAP\pyfrp\executables\openscad\openscad.exe).