You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/model_execution.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,15 @@ For multiscale simulations, model usage is configured in the mapping through `Mo
15
15
16
16
-`TimeStepModel(...)`: sets model execution clock.
17
17
-`InputBindings(...)`: sets producer, source variable, optional source scale, and policy for each consumer input.
18
+
-`MeteoBindings(...)`: sets weather aggregation rules at the model clock for meteo variables.
18
19
-`OutputRouting(...)`: sets whether an output is canonical (`:canonical`) or stream-only (`:stream_only`).
19
20
-`ScopeModel(...)`: partitions producer streams by scope (`:global`, `:plant`, `:scene`, `:self`) for multi-entity simulations.
20
21
21
22
Policy parameterization:
22
-
-`Integrate()` defaults to `:sum`; you can pass another reducer, e.g. `Integrate(:mean)` or `Integrate(vals -> maximum(vals) - minimum(vals))`.
23
-
-`Aggregate()` defaults to `:mean`; you can pass reducers such as `Aggregate(:max)`.
23
+
-`Integrate()` defaults to `SumReducer()`; you can pass another reducer, e.g. `Integrate(MeanReducer())` or `Integrate(vals -> maximum(vals) - minimum(vals))`.
24
+
-`Aggregate()` defaults to `MeanReducer()`; you can pass reducers such as `Aggregate(MaxReducer())`.
24
25
-`Interpolate()` defaults to `mode=:linear, extrapolation=:linear`; use `Interpolate(; mode=:hold, extrapolation=:hold)` for hold behavior.
26
+
- The same reducer objects are reused by meteo sampling (`MeteoBindings`) and by windowed policies (`Integrate`, `Aggregate`).
25
27
26
28
`TimeStepModel(...)` accepts either step counts (`Real`), `ClockSpec`, or fixed `Dates` periods
27
29
(for example `Dates.Hour(1)`, `Dates.Day(1)`). Fixed periods are converted internally using
0 commit comments