Skip to main content

AVxcelerate Simulation Framework 2025 R2 SP02

fmu_config

Last update: 19.09.2025
1
3
4#pragma once
5
6#include <map>
7#include <set>
8#include <string>
9#include <variant>
10#include <vector>
11
17{
18namespace core
19{
20namespace lifecycle
21{
22
23using FmuInOutType = std::variant<bool, int, double, std::string, std::vector<uint8_t>>;
24using FmuInOutMap = std::map<std::string, FmuInOutType>;
25using FmuTopicToVarNames = std::map<std::string, std::set<std::string>>;
26using FmuTopicToVarMap = std::map<std::string, FmuInOutMap>;
27using FmuMessageToVarNames = std::map<std::string, std::string>;
28using FmuVarToMessageNames = std::map<std::string, std::string>;
29
33{
34 enum class MessageType
35 {
36 kFmuMessage,
37 kGenericBytesMessage
38 };
39
41 std::string path;
42
44 FmuTopicToVarNames topics_to_inputs{};
45
47 FmuTopicToVarNames topics_to_outputs{};
48
52 FmuMessageToVarNames message_to_var_name{};
53
57 FmuVarToMessageNames var_to_message_name{};
58
60 std::map<std::string, MessageType> topic_to_message_type{};
61};
62
63} // namespace lifecycle
64} // namespace core
65} // namespace simulation_framework
The namespace for all core functionalities under namespace simulation_framework.
The top namespace for simulation framework.
A helper struct to pass necessary information to create FmuBaseActivity.
Definition fmu_config.h:33
std::string path
The path to the FMU file.
Definition fmu_config.h:41
FmuMessageToVarNames message_to_var_name
A map used to coordinate variable names between the rtidds::FmuMessage and the FMU variable names.
Definition fmu_config.h:52
FmuTopicToVarNames topics_to_outputs
A map where the keys are output topics and the values are names of FMU variable are sent over that to...
Definition fmu_config.h:47
std::map< std::string, MessageType > topic_to_message_type
A map used to store the message type for each topic.
Definition fmu_config.h:60
FmuVarToMessageNames var_to_message_name
A map used to coordinate variable names between the FMU variable names and the rtidds::FmuMessage.
Definition fmu_config.h:57
FmuTopicToVarNames topics_to_inputs
A map where the keys are input topics and the values are names of FMU variable are sent over that top...
Definition fmu_config.h:44

Connect with Ansys