Skip to content

Getting Kratos Binaries for Linux

Carlos Roig edited this page Nov 27, 2020 · 14 revisions

This page covers the process of downloading a compiled version of Kratos for Linux and how to use it to run an example.

Minimum requirements

  • Ubuntu 14.04 or greater (other flavors of Linux are supported but not tested. Ie. Suse, CentOS, RedHat...)

Download and Installation

You can find the Kratos binaries for Linux in the Release Section

1 - Download the tgz file for linux

2 - Extract the contents of the tgz in a location of your choice

3 - kratos.sh is the script you will use to launch problems.

This finalizes the installation process.

Usage

1 - Download any example of your interest from the Examples Repo and execute:

kratos.sh MainKratos.py

Advanced

If you prefer to skip the installation part, or have multiple versions of kratos installed simultaneously:

1 - Copy this runner.sh script and edit the contents of the KRATOS_ROOT variable:

KRATOS_ROOT=/path/to/kratos   # Please change this variable

export PYTHONHOME=${KRATOS_ROOT}
export PYTHONPATH=${KRATOS_ROOT}
export LD_LIBRARY_PATH=${KRATOS_ROOT}/libs:${KRATOS_ROOT}/OpenMPI/lib:/home/roigcarlo/KratosInstall/libs
${KRATOS_ROOT}/runkratos $*

Do not forget to give the script execution rights:

chmod +x runner.sh

2 - Make an alias for the script

echo "alias kratos=runner.sh" >> $HOME/.bashrc

3 - Open the terminal and execute the problem script using kratos:

kratos MainKratos.py

Project information

Getting Started

Tutorials

Developers

Kratos structure

Conventions

Solvers

Debugging, profiling and testing

HOW TOs

Utilities

Kratos API

Kratos Structural Mechanics API

Clone this wiki locally