Configuration#
Implementation#
If you have several implementations in your classpath, you need to choose which implementation to use in your configuration file with the default-impl-name property.
Each implementation is identified by its name, that may be unique in the classpath:
use “DynaWaltz” to use powsybl-dynawo implementation
YAML configuration:
dynamic-simulation:
default-impl-name: Mock
XML configuration:
<dynamic-simulation>
<default-impl-name>Mock</default-impl-name>
</dynamic-simulation>
Parameters#
The dynamic-simulation-default-parameters module is used every time a dynamic-simulation is run. It defines the default values for the most common parameters a com.powsybl.dynamicsimulation.DynamicSimulation implementation should be able to handle.
You may configure some generic parameters for all implementations:
dynamic-simulation-default-parameters:
startTime: 0
stopTime: 1
The parameters may also be overridden with a JSON file, in which case the configuration will look like:
{
"version" : "1.0",
"startTime" : 0,
"stopTime" : 1,
"extensions" : {
...
}
}
Optional properties#
startTime
startTime defines when the simulation begins, in seconds. The default value of this property is 0.
stopTime
stopTime defines when the simulation stops, in seconds. The default value of this property is 1.
Specific parameters#
Some implementations use specific parameters that can be defined in the configuration file or in the JSON parameters file:
Examples#
YAML configuration:
dynamic-simulation-default-parameters:
startTime: 0
stopTime: 3600
XML configuration:
<dynamic-simulation-default-parameters>
<startTime>0</startTime>
<stopTime>3600</stopTime>
</dynamic-simulation-default-parameters>