{
    "$schema": "https://gitlab.sintef.no/energy/ltm/pyltmapi/-/raw/main/model.schema.json",
    "model": {
        "global_settings": {
            "name": "global_settings",
            "output_path": "testout_2d_load/",
            "generate_output_dir": true,
            "delete_output_dir": false,
            "simulation_period": {
                "timestamps": [
                    "2023-W20",
                    "2025-W23"
                ],
                "unit": "ON/OFF"
            },
            "historical_period": {
                "timestamps": [
                    "2000-01-01T00:00:00Z",
                    "2008-01-01T00:00:00Z"
                ],
                "scenarios": [
                    [
                        1,
                        0
                    ]
                ],
                "unit": "ON/OFF"
            },
            "timesteps_per_week": 28
        },
        "dclines": [
            {
                "#comment": "",
                "name": "PUMPE_TEV_DC",
                "forward_capacity": {
                    "timestamps": [
                        "2023-01-02T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            200
                        ]
                    ]
                },
                "backward_capacity": {
                    "timestamps": [
                        "2023-01-02T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            200
                        ]
                    ]
                },
                "loss_percentage": 2.0,
                "forward_cost": 2.0,
                "backward_cost": 1.0
            }
        ],
        "market_steps": [
            {
                "name": "market_step",
                "price": {
                    "timestamps": [
                        "2023-01-01T00:00:00Z",
                        "2024-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            260,
                            200
                        ]
                    ]
                },
                "capacity": {
                    "timestamps": [
                        "2023-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            150
                        ]
                    ]
                }
            }
        ],
        "loads": [
            {
                "#comment": "Gruppe 16",
                "name": "weekly_2d_1",
                "capacity": {
                    "timestamps": [
                        "2023-W01",
                        "2023-W21",
                        "2023-W22"
                    ],
                    "scenarios": [
                        [
                            100.0,
                            101.1,
                            102.2
                        ],
                        [
                            200.0,
                            201.1,
                            202.2
                        ],
                        [
                            200.0,
                            201.1,
                            202.2
                        ],
                        [
                            200.0,
                            201.1,
                            202.2
                        ],
                        [
                            200.0,
                            201.1,
                            202.2
                        ],
                        [
                            200.0,
                            201.1,
                            202.2
                        ],
                        [
                            200.0,
                            201.1,
                            202.2
                        ],
                        [
                            200.0,
                            201.1,
                            202.2
                        ]
                    ]
                }
            },
            {
                "#comment": "Gruppe 16",
                "name": "weekly_2d_2",
                "capacity": {
                    "timestamps": [
                        "2023-W01",
                        "2023-W21",
                        "2023-W22"
                    ],
                    "scenarios": [
                        [
                            100.0,
                            101.1,
                            102.2
                        ],
                        [
                            200.0,
                            201.1,
                            202.2
                        ],
                        [
                            200.0,
                            201.1,
                            202.2
                        ],
                        [
                            200.0,
                            201.1,
                            202.2
                        ],
                        [
                            200.0,
                            201.1,
                            202.2
                        ],
                        [
                            200.0,
                            201.1,
                            202.2
                        ],
                        [
                            200.0,
                            201.1,
                            202.2
                        ],
                        [
                            200.0,
                            201.1,
                            202.2
                        ]
                    ]
                }
            },
            {
                "#comment": "Gruppe 16",
                "name": "hourly_2d",
                "capacity": {
                    "timestamps": [
                        "2023-W01",
                        "2023-W20-1T00",
                        "2024-W20-1T10"
                    ],
                    "scenarios": [
                        [
                            100.0,
                            100.0,
                            101.1
                        ],
                        [
                            200.0,
                            200.0,
                            201.1
                        ],
                        [
                            200.0,
                            200.0,
                            201.1
                        ],
                        [
                            200.0,
                            200.0,
                            201.1
                        ],
                        [
                            200.0,
                            200.0,
                            201.1
                        ],
                        [
                            200.0,
                            200.0,
                            201.1
                        ],
                        [
                            200.0,
                            200.0,
                            201.1
                        ],
                        [
                            200.0,
                            200.0,
                            201.1
                        ]
                    ]
                }
            },
            {
                "#comment": "Gruppe 16",
                "name": "constant_1d",
                "capacity": {
                    "timestamps": [
                        "2020-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            10
                        ]
                    ]
                }
            },
            {
                "#comment": "Gruppe 16",
                "name": "constant_2d",
                "capacity": {
                    "timestamps": [
                        "2020-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            10
                        ],
                        [
                            11
                        ],
                        [
                            11
                        ],
                        [
                            11
                        ],
                        [
                            11
                        ],
                        [
                            11
                        ],
                        [
                            11
                        ],
                        [
                            11
                        ]
                    ]
                }
            },
            {
                "#comment": "Gruppe 16",
                "name": "daily_1d_1",
                "capacity": {
                    "timestamps": [
                        "2023-W01",
                        "2023-W20",
                        "2023-W20-4"
                    ],
                    "scenarios": [
                        [
                            1,
                            10,
                            20
                        ]
                    ]
                }
            },
            {
                "#comment": "Gruppe 16",
                "name": "daily_1d_2",
                "capacity": {
                    "timestamps": [
                        "2023-W01",
                        "2023-W20",
                        "2023-W20-4"
                    ],
                    "scenarios": [
                        [
                            1,
                            10,
                            20
                        ]
                    ]
                }
            }
        ],
        "areas": [
            {
                "name": "only_1D",
                "feedback_factors": {
                    "feedback_factor": {
                        "normal_value": 1.42,
                        "start_week_values": {
                            "timestamps": [
                                "2000-01-02T00:00:00Z"
                            ],
                            "scenarios": [
                                [
                                    1.95
                                ]
                            ]
                        }
                    },
                    "form_factor": {
                        "normal_value": 2.5,
                        "start_week_values": {
                            "timestamps": [
                                "2000-01-02T00:00:00Z"
                            ],
                            "scenarios": [
                                [
                                    2.65
                                ]
                            ]
                        }
                    },
                    "flexibility_factor": {
                        "normal_value": 3.5,
                        "start_week_values": {
                            "timestamps": [
                                "2000-01-02T00:00:00Z"
                            ],
                            "scenarios": [
                                [
                                    3.65
                                ]
                            ]
                        }
                    },
                    "conversion_limit": {
                        "normal_value": 4.43,
                        "value": 4.67
                    },
                    "artificial_minimum_production": 1.4
                }
            },
            {
                "name": "only_2D"
            },
            {
                "name": "mixed_load"
            }
        ],
        "inflow_series": [
            {
                "name": "small",
                "series": {
                    "timestamps": [
                        "1900-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0.001
                        ]
                    ]
                }
            },
            {
                "name": "ten",
                "series": {
                    "timestamps": [
                        "1900-01-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            10.0
                        ]
                    ]
                }
            },
            {
                "name": "after_one_year",
                "series": {
                    "timestamps": [
                        "1900-01-01T00:00:00Z",
                        "2000-01-01T00:00:00Z",
                        "2001-01-01T01:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0,
                            0,
                            1.0
                        ]
                    ]
                }
            }
        ],
        "reservoirs": [
            {
                "name": "upper_main",
                "degree_of_regulation": 3,
                "regulated_inflow_name": "ten",
                "average_regulated_inflow": 0,
                "max_discharge": 70.30,
                "reference_curve": {
                    "scenarios": [
                        [
                            300
                        ]
                    ]
                },
                "initial_volume": 400,
                "tailrace_elevation": 50.0,
                "gross_head": 900.0,
                "volume_curve": {
                    "x": [
                        1125.20,
                        1129.20
                    ],
                    "y": [
                        0,
                        500
                    ]
                }
            },
            {
                "name": "extra_rsv",
                "degree_of_regulation": 1,
                "regulated_inflow_name": "ten",
                "average_regulated_inflow": 1.0,
                "max_discharge": 170.30,
                "reference_curve": {
                    "scenarios": [
                        [
                            500
                        ]
                    ]
                },
                "initial_volume": 750,
                "tailrace_elevation": 150.0,
                "gross_head": 450.0,
                "volume_curve": {
                    "x": [
                        600,
                        630
                    ],
                    "y": [
                        0,
                        1500
                    ]
                }
            },
            {
                "name": "lower_main",
                "degree_of_regulation": 1,
                "regulated_inflow_name": "ten",
                "average_regulated_inflow": 0.0,
                "max_discharge": 100.0,
                "reference_curve": {
                    "scenarios": [
                        [
                            30.0
                        ]
                    ]
                },
                "initial_volume": 1,
                "volume_curve": {
                    "x": [
                        45,
                        50
                    ],
                    "y": [
                        0,
                        45
                    ]
                },
                "tailrace_elevation": 40.0,
                "gross_head": 3
            },
            {
                "name": "rsv_pump_1",
                "degree_of_regulation": 3,
                "regulated_inflow_name": "after_one_year",
                "average_regulated_inflow": 45,
                "max_discharge": 45,
                "reference_curve": {
                    "scenarios": [
                        [
                            30.0
                        ]
                    ]
                },
                "initial_volume": 200,
                "volume_curve": {
                    "x": [
                        1000,
                        1050
                    ],
                    "y": [
                        0,
                        250
                    ]
                },
                "tailrace_elevation": 1000.0,
                "gross_head": 50
            }
        ],
        "plants": [
            {
                "name": "plant",
                "ownership": 100,
                "average_energy_equivalent": 1.2,
                "discharge_energy_equivalent": {
                    "timestamps": [
                        "2023-01-02T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            1.2
                        ]
                    ]
                },
                "pq_curves": {
                    "2023-01-02T00:00:00Z": {
                        "x": [
                            0.0,
                            70.30
                        ],
                        "y": [
                            0.0,
                            200.0
                        ]
                    }
                },
                "unregulated_inflow_name": "small",
                "average_unregulated_inflow": 0.0,
                "unavailable_capacity": {
                    "timestamps": [
                        "2023-01-02T00:00:00Z",
                        "2024-06-01T00:00:00Z",
                        "2024-12-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            170,
                            150,
                            0
                        ]
                    ]
                }
            },
            {
                "name": "extra_plant",
                "ownership": 100,
                "average_energy_equivalent": 1.3,
                "discharge_energy_equivalent": {
                    "timestamps": [
                        "2023-01-02T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            1.3
                        ]
                    ]
                },
                "pq_curves": {
                    "2023-01-02T00:00:00Z": {
                        "x": [
                            0.0,
                            170.30
                        ],
                        "y": [
                            0.0,
                            150.0
                        ]
                    }
                },
                "unregulated_inflow_name": "small",
                "average_unregulated_inflow": 0.0,
                "unavailable_capacity": {
                    "timestamps": [
                        "2023-01-02T00:00:00Z",
                        "2023-02-02T00:00:00Z",
                        "2024-06-01T00:00:00Z",
                        "2024-12-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            130,
                            100,
                            50,
                            0
                        ]
                    ]
                }
            }
        ],
        "pumps": [
            {
                "name": "pump1_upper",
                "ownership": 100,
                "average_power": 250,
                "pump_capacity": {
                    "x": [
                        800,
                        600,
                        100
                    ],
                    "y": [
                        40,
                        50,
                        70
                    ]
                },
                "upper_reservoir_reference_curve": {
                    "timestamps": [
                        "2000-07-31T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            450
                        ]
                    ]
                },
                "lower_reservoir_reference_curve": {
                    "timestamps": [
                        "2000-07-31T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            5
                        ]
                    ]
                },
                "unavailable_capacity": {
                    "timestamps": [
                        "2023-01-02T00:00:00Z",
                        "2023-04-02T00:00:00Z",
                        "2024-12-01T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            0,
                            130,
                            130
                        ]
                    ]
                }
            },
            {
                "name": "extra_pump",
                "ownership": 100,
                "average_power": 250,
                "pump_capacity": {
                    "x": [
                        500,
                        300
                    ],
                    "y": [
                        40,
                        50
                    ]
                },
                "upper_reservoir_reference_curve": {
                    "timestamps": [
                        "2000-07-31T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            1450
                        ]
                    ]
                },
                "lower_reservoir_reference_curve": {
                    "timestamps": [
                        "2000-07-31T00:00:00Z"
                    ],
                    "scenarios": [
                        [
                            5
                        ]
                    ]
                }
            }
        ],
        "connections": [
            {
                "from": "only_1D",
                "to": "PUMPE_TEV_DC"
            },
            {
                "from": "market_step",
                "to": "only_1D"
            },
            {
                "from": "PUMPE_TEV_DC",
                "to": "only_2D"
            },
            {
                "from": "upper_main",
                "to": "only_1D"
            },
            {
                "from": "upper_main",
                "to": "plant"
            },
            {
                "from": "plant",
                "to": "lower_main"
            },
            {
                "from": "rsv_pump_1",
                "to": "only_1D"
            },
            {
                "from": "rsv_pump_1",
                "to": "pump1_upper"
            },
            {
                "from": "pump1_upper",
                "to": "upper_main"
            },
            {
                "from": "extra_rsv",
                "to": "extra_plant"
            },
            {
                "from": "extra_plant",
                "to": "lower_main"
            },
            {
                "from": "extra_pump",
                "to": "extra_plant"
            },
            {
                "from": "constant_1d",
                "to": "only_1D"
            },
            {
                "from": "daily_1d_1",
                "to": "only_1D"
            },
            {
                "from": "constant_2d",
                "to": "only_2D"
            },
            {
                "from": "weekly_2d_1",
                "to": "only_2D"
            },
            {
                "from": "hourly_2d",
                "to": "only_2D"
            },
            {
                "from": "weekly_2d_2",
                "to": "mixed_load"
            },
            {
                "from": "daily_1d_2",
                "to": "mixed_load"
            }
        ]
    }
}
