Python Script Tutorial: Hello Kratos

From KratosWiki
Jump to: navigation, search

The first step in writing a python script for Kratos is importing the KratosMultiphysics as follow:

 from KratosMultiphysics import *

This imports the Kratos and shows a logo of Kratos:

 |  /           |             
 ' /   __| _` | __|  _ \   __|
 . \  |   (   | |   (   |\__ \ 
_|\_\_|  \__,_|\__|\___/ ____/
           Multi-Physics 3.0.0

Now Kratos is ready to use and waiting for you. So let say hello:

>>> Hello()
'Hello, I am Kratos 3.0.0 :-)'


Next Tutorial : Python Script Tutorial: Reading ModelPart From Input File

All Tutorials : Kratos Tutorials

Personal tools
Categories