「Pylith」Simple tutorial (I) Installing softwares

1 Model setup: Trelis

1.1 Download

Click here to the download page
You can request a free trial on the official website for three months after the registration.

1.2 Installation

  • For MacOS:
    Just double click the package and complete the installation
  • For Linux
    1
    2
    cd ~/Software/
    sudo dpkg -i Trelis-16.5.0-Lin64.deb
    Use the code you get from the trial request during Trelis Activation.

2 Calculation: Pylith

2.1 Download

2.2 Configuation

  1. Unzip the file to where you want, for example
    1
    2
    tar  zxvf  pylith-2.2.1-linux-x86_64.tgz  -C ~/Software/ 
    # for macos it's pylith-2.2.2-darwin-10.13.6.tgz
  2. Configuation
    1
    2
    3
    cd ~/Software/pylith-2.2.1-linux-x86_64
    # for macos it's cd ~/Software/pylith-2.2.2-darwin-10.13.6]
    source setup.sh
    If the output showes up as
    1
    Ready to run Pylith
    Then the pylith congiguation has completed. And everytime before running pylith you need run source setup.sh under corresponding direcotory. If you want to take it a easier way. You can add the following script into your ~/.bashrc
    1
    2
    # for pylith
    alias setpylith='tp=`pwd`; cd ~/Software/pylith-2.2.1-linux-x86_64 ; source setup.sh; cd $tp'
    Thus you just need to type setpylith for every new terminal window.

3 Visualization: Paraview

  • For MacOS:
    1
    brew cask install paraview
  • For Linux:
    1
    sudo apt install paraview