Kratos Structure: Workflow
The basic ingredients required to solve a problem using Kratos Multiphysics are the following
- The Model Part (.mdpa) file.
- A Python script.
The Model Part (.mdpa) file
The Model Part file defines the geometry and mesh of the problem, as well as the initial and boundary conditions to be applied. It is a regular text file with the extension .mdpa which follows the structure outlined in Input Data.
The Python script
Kratos Multiphysics uses the Python scripting language to provide a flexible and dynamic way of combining its components to perform different types of simulations. The main Python script plays the part of the main function of the program, but with the crucial advantage of being easily accessible both to users and developers, who can modify the flow of the program without having to recompile the source code.
For models defined using GiD, there will be an auxiliary Python file defining additional problem settings to be read from the main script. This file is used to communicate the input provided by the user to the default Python file that GiD launches when the simulation is launched.