How kratosmultiphysics/kratos works
Kratos is a C++ multiphysics framework with an extensive Python interface; application packages extend its shared simulation core. The typical user workflow is to prepare model/input data, select a domain application and solving strategy, run a simulation, and inspect output. The README documents this workflow broadly, not a single runtime entry point, so the workflow links below are documented at the framework level. The sampled source supports the controller and Python-binding details; unsampled application internals are represented only at their tree paths.
Main entry points: kratos_application.h Kratos core · buffer.hpp Asio buffers · wind_engineering_python_application.cpp Wind Python bindings · controller.h Controller API
Components 29
Simulation core
- Kratos core
kratos/includes/kratos_application.h - Model data
kratos/includes/model_part.h - Solving strategies
kratos/includes/element.h - Parallel runtime
kratos/mpi/sources/mpi_manager.cpp - Variable definitions
kratos/includes/variables.h - Mesh nodes
kratos/includes/node.h - Runtime parameters
kratos/includes/kratos_parameters.h - Core definitions
kratos/includes/define.h - Variable utilities
kratos/utilities/variable_utils.h
Domain applications
- Particle simulation
applications/DEMApplication - Fluid dynamics
applications/FluidDynamicsApplication - Fluid-structure interaction
applications/FSIApplication - Structural mechanics
applications/StructuralMechanicsApplication - Material models
applications/ConstitutiveLawsApplication - Contact mechanics
applications/ContactStructuralMechanicsApplication - Wind engineering
applications/WindEngineeringApplication/wind_engineering_application.h - Wind Python bindings
applications/WindEngineeringApplication/custom_python/wind_engineering_python_application.cpp
Workflow and control
- Model and input
- Python interface
- Controller API
kratos/controllers/controller.h - Output controller
kratos/controllers/output_controller.cpp - Controlled output
kratos/python_scripts/output_process_with_controller.py
Co-simulation
- Co-simulation services
applications/CoSimulationApplication - CoSimIO transport
applications/CoSimulationApplication/custom_external_libraries/CoSimIO/co_sim_io - Asio buffers
applications/CoSimulationApplication/custom_external_libraries/CoSimIO/external_libraries/asio/include/asio/buffer.hpp - Asio configuration
applications/CoSimulationApplication/custom_external_libraries/CoSimIO/external_libraries/asio/include/asio/detail/config.hpp - Compiler options
applications/CoSimulationApplication/custom_external_libraries/CoSimIO/external_libraries/asio/include/asio/detail/push_options.hpp - Restore options
applications/CoSimulationApplication/custom_external_libraries/CoSimIO/external_libraries/asio/include/asio/detail/pop_options.hpp
Other components
- Simulation user
Connections 22
- Simulation user → Model and input: prepares model
- Simulation user → Python interface: uses interface
README.md - Model and input → Kratos core: configures simulation
- Python interface → Kratos core: accesses framework
README.md - Kratos core → Model data: provides model data
- Kratos core → Solving strategies: provides solving
README.md - Kratos core → Parallel runtime: supports parallelism
README.md - Kratos core → Particle simulation: hosts plug-in
README.md - Kratos core → Fluid dynamics: hosts plug-in
README.md - Kratos core → Fluid-structure interaction: hosts plug-in
README.md - Kratos core → Structural mechanics: hosts plug-in
README.md - Kratos core → Material models: hosts plug-in
README.md - Kratos core → Contact mechanics: hosts plug-in
README.md - Python interface → Wind Python bindings: binds application
applications/WindEngineeringApplication/custom_python/wind_engineering_python_application.cpp - Wind Python bindings → Wind engineering: registers application
applications/WindEngineeringApplication/custom_python/wind_engineering_python_application.cpp - Python interface → Controller API: exposes controllers
- Controller API → Output controller: specializes as
- Controlled output → Output controller: evaluates control
- Co-simulation services → CoSimIO transport: includes communication
- Asio buffers → Asio configuration: uses definitions
applications/CoSimulationApplication/custom_external_libraries/CoSimIO/external_libraries/asio/include/asio/buffer.hpp - Asio buffers → Compiler options: pushes options
applications/CoSimulationApplication/custom_external_libraries/CoSimIO/external_libraries/asio/include/asio/buffer.hpp - Asio buffers → Restore options: restores options
applications/CoSimulationApplication/custom_external_libraries/CoSimIO/external_libraries/asio/include/asio/buffer.hpp