menu
info Documentation

Automation in Scenario File

It is possible for D2S2 to execute changes to model input values as a function of simulation time. The Automation Schedule is embedded in the scenario file, under the AutomationSchedule section of the simulation settings. An example is shown below

{
  "$type": "D2S2.Simulation.ScenarioFile, D2S2",
  "Settings": {
    "$type": "D2S2.Simulation.SimulationSettings, D2S2",
    "SimulationStart": "2025-01-01T12:00:00",
    "SimulationDuration": "12:00:00",
    "SimulationPeriod": "00:00:00.2000000",
    "RunForever": true,
    "RealTime": false,
    "SamplePeriodMultiplier": 1,
    "SampleList": {
      "$type": "System.Collections.Generic.List`1[[D2S2.Simulation.SamplingDefinition, D2S2]], mscorlib",
      "$values": []
    },
    "AutomationSchedule": {
      "$type": "System.Collections.Generic.List`1[[D2S2.Simulation.ScheduledPropertySet, D2S2]], mscorlib",
      "$values": [
        {
          "$type": "D2S2.Simulation.ScheduledPropertySet, D2S2",
          "Time": "2025-01-01T12:00:00",
          "ModelObject": "Attitude Control System",
          "Property": "ControlModeSelection",
          "Value": 2
        },
        {
          "$type": "D2S2.Simulation.ScheduledPropertySet, D2S2",
          "Time": "2025-01-01T12:00:00",
          "ModelObject": "Attitude Control System",
          "Property": "ControlModeSelection",
          "Value": 4
        },
      ]
    },
    "CsvFilename": null
  },
  ...

The CsvFilename is not currently used.