events

Hackathon: Enhancing Kratos Multiphysics with ML & Optimization

Published: 24/04/2025

📅 June 19-20, 2025
📍 Meeting Room, B0 Building, CIMNE, Campus Nord UPC, Barcelona

The Kratos Multiphysics research group ─part of CIMNE's Large Scale Multiphysics Computations research cluster─ organizes the Hackaton Enhancing Kratos Multiphysics with ML & Optimization.

The hackaton is oriented to maximizing the interoperability between Kratos and machine learning environements, in particular PyTorch.

The specific goal is to enable using Kratos routines within ML optimization loops, combining forward differentiation with alternative techniques for the calculation of derivatives (for example based on available jacobians).

The hackaton will target both the identification of bottelenecks towards such integration and the improvement of the existing documentation.

The ideal profile for attendees is people with a working knowledge of FEM and or ML, and with knowledge of the Kratos/PyTorch python layer. It is expected that participants are active contributors to the Kratos github repository.

Attendance is limited to 20 people. 





Programme


Day 1 (June 19): Setting the Stage & Ideation



09:00 - 09:30 | Welcome & Introduction
- usecases in optimization
- usecases in ROM training
- other applications (open)


09:30 - 10:30 | Overview of Kratos-ML/Optimization Interactions (Presentations from experts, key challenges, and past work)
- workflow design & discussion of integration objectives
- matrix/vector views (both sparse and dense) in python
- strategies redesign (access to FEM assembly and Jacobians)
- expressions/variable_utils redesign (numpy/torch inteinteroperability )
- other proposals


10:30 - 11:00 | Coffee Break
11:00 - 12:30 | Discussion, Work distribution and Group Formation (Discuss ideas, form teams based on interests & expertise)
12:30–14:00 | Lunch Break
14:00 - 16:30 | Hands-on Hacking (Session 1) (Teams start implementing ideas, exploring APIs, setting up workflows)
16:30 - 17:00 | Check-in & Discussion (Each team shares progress, roadblocks, and next steps)
17:00 - 18:00 | Open Discussion & Networking (Informal exchange of ideas over drinks/snacks)

Day 2 (June 20): Prototyping & Presentations


09:00 - 09:30 | Recap & Goals for the Day
09:30 - 12:30 | Hands-on Hacking (Session 2) (Development, debugging, testing solutions)
12:30 - 14:00 | Lunch Break
14:00 - 16:00 | Finalizing Projects (Last-minute refinements & preparation for demos)
16:00 - 17:30 | Project Presentations & Feedback (Each team presents, feedback from experts & peers)
17:30 - 18:00 | Wrap-up & Next Steps (Discuss future collaborations, repository for work, follow-ups)

About Kratos Multiphysics


Kratos Multiphysics, or simply Kratos, is a framework for creating parallel, multi-disciplinary simulation software. Designed for modularity, extensibility, and high performance, it is written in C++ with a robust Python interface. Kratos is free under the BSD license, making it suitable for both academic and commercial use.