Skip to content

NFAQ (Not so Frequently Asked Questions)

Alexey Matveichev edited this page Oct 7, 2017 · 4 revisions

ParaView

Installation

There are several ways to install ParaView:

  1. Download DMG file from http://paraview.org, open it, drag-n-drop application into your /Applications folder. In general application file is called ParaView-<version>.app.

  2. Use Homebrew Cask, i.e. brew cask install paraview. Automated version of the previous option.

  3. Use Homebrew and install formula from science tap, i.e. just brew install paraview. Since usually formulas today are served in bottles, nothing is actually built on user’s computer. But for some reason do not link paraview application into /usr/local/bin.

Current version of paraview configuration script assumes, that you have it installed in /Applications folder under name paraview.app and complains about absent software package if name differs.

So if you have installed Paraview application as Paraview-<version>.app, you can

  1. Rename Paraview-<version>.app into Paraview.app.

  2. If you would like to keep version part of the file name, you can use modified version of $WM_PROJECT_DIR/etc/config.sh/mac/paraview provided below:

if [ -d /Applications/Paraview*.app ];
then
    [ "$FOAM_VERBOSE" -a "$PS1" ] && echo Using /Applications/Paraview*.app

    paraview () {
        /Applications/Paraview*/Contents/MacOS/paraview "$@"
    }

    export -f paraview
else
    echo
    echo "Please download binary Paraview release from"
    echo "http://paraview.org and install it in /Applications"
    echo "folder."
    echo
fi

# vi: set ft=sh et sw=4 ts=4:

Exported shell functions

paraview command is exported as a shell function:

$ type paraview
paraview is a function
paraview ()
{
    /Applications/Paraview*/Contents/MacOS/paraview "$@"
}

To avoid constant repetition of paraFoam -builtin also function pf is exported:

$ type pf
pf is a function
pf ()
{
    paraFoam -builtin > /dev/null 2>&1 &
}