Output variable configuration

The output variable domain specific language allows a user to configure the curves or final state values Dynawo will export at the end of the simulation. This DSL defines the curve and fsvkeywords.

The curve keyword combined with the variable field create a single curve for a dynamic model. The id may reference either a static or dynamic model id (same id as in the Dynamic Models DSL). The variable to plot is identified by its name.

curve {
    id "dynamicId"
    variable "load_PPu"
}

If the only information needed is the variable final value, the curve keyword can be replaced by fsv keyword:

fsv {
    id "dynamicId"
    variable "load_PPu"
}

If you want to plot several variables of the same model, you can use the variables field that limits boilerplate code in the script.

// This:
curve {
    id load.id
    variable "load_PPu"
}
curve {
    id load.id
    variable "load_QPu"
}

// is equivalent to:
curve {
    id load.id
    variables "load_PPu", "load_QPu"
}

Output variables builder

Ultimately, all groovy scripts call the dedicated builder DynawoOutputVariablesBuilder that can be used directly by developers.