Whereas the Fundamental Topics provided a broad overview of co-simulation and a good step-by-step introduction to setting up a HELICS co-simulation, the Advanced Topics section assumes you, the reader, have a familiarity and experience with running HELICS co-simulations. If that’s not the case, it’s well worth your while to go review the Fundamental Topics and corresponding examples. In this section it will be assumed you know things like:
The difference between value and message passing in HELICS
How to configure HELICS federate appropriately
Familiarity with the common HELICS APIs (e.g. requesting time, getting subscribed values, publishing values)
Experience running HELICS co-simulations
The Advanced Topics section will dig into specific features of HELICS that are less commonly used but can be very useful in particular situations. Each section below provides a description of the feature, what it does, the kind of use case that might utilize it, and then links to examples that demonstrate an implementation. It’s important to note that there are many other HELICS features and APIs not demonstrated here that can also be useful. As they say in academia, we’ll leave it as an exercise to the reader to discover these. (Hint: The API references and the Configuration Options Reference are good starting points to see what’s out there in the broader HELICS world.)
The Advanced Topics will cover:
Aliases - HELICS 3.3 introduced the notion of aliases. Aliases allow a mapping of an interface key to a different string.
Architectures - Introduction to different ways to connect federates, cores, and brokers to manage efficient passing of signals in a co-simulation.
Broker Hierarchies - Purpose of broker hierarchies and how to configure a HELICS co-simulation to implement one.
Callbacks - Over time a number of callbacks have been added for various operations and stages of the life cycle of a federate. This document describes the different callbacks available.
Callback Federates - HELICS 3.3 introduced a beta test for callback federates which allow a federate to operate purely inline with a core based solely on callbacks. This can allow a much higher number of federates on a given system than was previously possible.
Command Interface - HELICS v3 introduced the command interface as a method of asynchronously communicating between federates.
Cores - Discussion of the different types of message-passing buses and their implementation as HELICS cores.
Dynamic Federations - Sometimes it is useful to have a federate that is not ready at the beginning of co-simulation. This is a dynamic federation. There are various levels of this (not all are available yet) and this document discusses some aspects of dynamic co-simulation.
Encrypted Communication - How to encrypt communication between HELICS brokers/federates.
Environment Variables - HELICS supports some environment variables for configuration of a federate or broker.
Iteration - Setting up federates so that they can iterate without advancing simulation time to achieve a more consistent state.
Multi-compute-node Co-simulation - Executing a co-simulation across multiple compute nodes.
Multi-Protocol Brokers (Multi-broker) for Multiple Core Types) What to do when one type of communication isn’t sufficient.
Multi-Source Inputs - Using inputs (rather than subscriptions), it is possible to accept value signals from multiple sources. This section discusses the various tools HELICS provides for managing how to handle/resolve what can be conflicting or inconsistent signal data.
Networking - How to configure HELICS to run in more challenging networking environments.
Orchestration Tool (Merlin) - Brief guide on using Merlin to handle situations where a HELICS co-simulation is just one step in an automated analysis process (e.g. uncertainty quantification) or where assistance is needed deploying a large co-simulation in an HPC environment.
Program termination - Some additional features in HELICS related to program shutdown and co-simulation termination.
Profiling - Some profiling capability for co-simulations.
Queries - How queries can be used to get information on HELICS brokers, federates, and cores.
Simultaneous co-simulations - Options for running multiple independent co-simulations on a single system.
Targeted Endpoints - details on the new targeted endpoints in HELICS 3.
Timeouts - HELICS includes a number of timeouts to prevent failed operations from continuing indefinitely, the various timeout options are discussed in this document.
Translators - Translators provide a means of HELICS message interfaces to communicate with HELICS value interfaces and vice versa.
Webserver API - How to interact with a running co-simulation using a REST-based web API.