Skip to main content

AVxcelerate Simulation Framework 2025 R2 SP02

i_simulation_instance

Last update: 19.09.2025
1
3
4#pragma once
5
6#include <chrono>
7
13{
14namespace core
15{
16namespace lifecycle
17{
18
20
25{
26 public:
27 virtual ~ISimulationInstance() = default;
28
30 virtual void StepOnce() = 0;
31
33 virtual void Reset() = 0;
34
36 virtual void Init() = 0;
37
39 virtual bool IsSimulationFinished() = 0;
40
42 virtual std::chrono::milliseconds GetSimulationDuration() const = 0;
43
46 virtual std::chrono::milliseconds GetSimulationBaseCycleTime() const = 0;
47};
48
49} // namespace lifecycle
50} // namespace core
51} // namespace simulation_framework
virtual std::chrono::milliseconds GetSimulationDuration() const =0
return the duration of the simulation in milliseconds
virtual void Reset()=0
provides the reset to SimRunner to let the simulation back to init state
virtual void StepOnce()=0
Step the simulation based on base cycle time.
virtual void Init()=0
Initialize based on user config and turn the instance to ready state.
virtual std::chrono::milliseconds GetSimulationBaseCycleTime() const =0
return the base cycle time of the simulation in milliseconds, which usually is the greatest common di...
virtual bool IsSimulationFinished()=0
indicates whether this run if simulation reaches the end
The namespace for all core functionalities under namespace simulation_framework.
The top namespace for simulation framework.

Connect with Ansys