-
Notifications
You must be signed in to change notification settings - Fork 244
Getting Kratos Binaries for Linux
This page covers the process of downloading a compiled version of Kratos for Linux and how to use it to run an example.
- Ubuntu 14.04 or greater (other flavors of Linux are supported but not tested. Ie. Suse, CentOS, RedHat...)
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.
1 - Download any example of your interest from the Examples Repo and execute:
kratos.sh MainKratos.py
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
- Getting Kratos (Last compiled Release)
- Compiling Kratos
- Running an example from GiD
- Kratos input files and I/O
- Data management
- Solving strategies
- Manipulating solution values
- Multiphysics
- Video tutorials
- Style Guide
- Authorship of Kratos files
- Configure .gitignore
- How to configure clang-format
- How to use smart pointer in Kratos
- How to define adjoint elements and response functions
- Visibility and Exposure
- Namespaces and Static Classes
Kratos structure
Conventions
Solvers
Debugging, profiling and testing
- Compiling Kratos in debug mode
- Debugging Kratos using GDB
- Cross-debugging Kratos under Windows
- Debugging Kratos C++ under Windows
- Checking memory usage with Valgind
- Profiling Kratos with MAQAO
- Creating unitary tests
- Using ThreadSanitizer to detect OMP data race bugs
- Debugging Memory with ASAN
HOW TOs
- How to create applications
- Python Tutorials
- Kratos For Dummies (I)
- List of classes and variables accessible via python
- How to use Logger
- How to Create a New Application using cmake
- How to write a JSON configuration file
- How to Access DataBase
- How to use quaternions in Kratos
- How to do Mapping between nonmatching meshes
- How to use Clang-Tidy to automatically correct code
- How to use the Constitutive Law class
- How to use Serialization
- How to use GlobalPointerCommunicator
- How to use PointerMapCommunicator
- How to use the Geometry
- How to use processes for BCs
- How to use Parallel Utilities in futureproofing the code
- Porting to Pybind11 (LEGACY CODE)
- Porting to AMatrix
- How to use Cotire
- Applications: Python-modules
- How to run multiple cases using PyCOMPSs
- How to apply a function to a list of variables
- How to use Kratos Native sparse linear algebra
Utilities
Kratos API
Kratos Structural Mechanics API