Skip to main content

AVxcelerate Simulation Framework 2025 R2 SP02

simulation_parameters

Last update: 19.09.2025
1
2
3#pragma once
4
5#include <chrono>
6#include <string>
7#include <unordered_map>
8#include <vector>
9
15{
16namespace core
17{
18
23{
28 using CustomizedParameters = std::unordered_map<std::string, std::string>;
29
33 static constexpr size_t kMaxCustomizedParamNameLength = 64;
34 static constexpr size_t kMaxCustomizedParamValueLength = 1024;
38 std::string version = "";
39
43 std::string log_level = "Debug";
44
48 std::string id = "";
49
54 std::string simulation_config = "";
55
59 std::string scheduling_config = "";
60
64 std::string output_directory = "./";
65
70
75 std::string cli_control_grpc_address = "localhost:50051";
76
81
85 std::chrono::milliseconds scheduler_event_timeout = std::chrono::milliseconds(60000);
86
90 float timescale_factor = -1.0f;
91
95 bool debugger_enabled = false;
96};
97
98} // namespace core
99} // namespace simulation_framework
The namespace for all core functionalities under namespace simulation_framework.
The top namespace for simulation framework.
The SimulationParameters struct encapsulates parameters related to simfwk-core configuration.
bool debugger_enabled
A boolean indicating whether the Debugger is enabled.
bool cli_control_mode_enabled
A boolean indicating whether CLI control mode is enabled.
CustomizedParameters customized_parameters
A map of customized parameters which simulation could use as input.
std::chrono::milliseconds scheduler_event_timeout
A duration representing the timeout for scheduler events, expressed in milliseconds.
std::unordered_map< std::string, std::string > CustomizedParameters
A definition of customized parameters which simulation could use as input. key is the name of the cus...
std::string simulation_config
A string indicating the path to the simulation configuration file for your built simulation applicati...
std::string version
version A string representing the version of the simulation.
std::string log_level
A string indicating the logging level for the simulation.
std::string output_directory
A string indicating the path where simulation shall dump out files.
float timescale_factor
A floating-point value representing the timescale factor for simulation time.
std::string scheduling_config
A string containing the scheduling configuration file path for the simulation.
std::string cli_control_grpc_address
A string specifying the gRPC address for CLI (Command Line Interface) control. The format should be "...
static constexpr size_t kMaxCustomizedParamNameLength
Maximum allowed lengths for customized parameter names and values, to prevent unintended behavior.

Connect with Ansys