Skip to content

Commit

Permalink
feat: Implements ValueCurves & Improve Prime Mover and Fuel Type Mapp…
Browse files Browse the repository at this point in the history
…ing (#12)

1. Implemements Value Curves for Heat Rates- Input Output Curves (linear
and quadratic) and Average value curves implemented w/ a else case for
un-implemented curves
2. Redo Prime-Mover and Fuel Type Assignment:

Specification of fuel type and prime-mover type is both done in the
`user_dict.yaml` file. These two key are used to reference the ModelMap
from the `r2x/defaults/config.json` : `generator_models` dictionary

Same read order of (1) device name map, (2) Plexos fuel name map, (3)
Inference by name mapper.

user_dict_example.yaml:
```
# Mapping of PLEXOS Generators to Sienna Fuels and PM Types
# {plexos_object: {fuel: sienna_fuel, pm_type: sienna_primemover_type}}
device_map:
    gas_plant_example_name: 
      fuel: GAS
      type: GT
# Plexos Fuel Type Mapping
# {plexos_fuel: {fuel: sienna_fuel, pm_type: sienna_pm_type}}
plexos_fuel_map: 
    Nat. Gas:
      fuel: GAS
      type: GT
    default:
      fuel: GAS
      type: OT

# Infers Fuel Type and PrimeMover
# {inference_string: {fuel: sienna_fuel, pm_type: sienna_pm_type}}
device_name_inference_map:
    wind: 
      fuel: SOLAR
      type: WT
```
  • Loading branch information
ktehranchi authored Aug 27, 2024
1 parent 2658b67 commit fcc37c0
Show file tree
Hide file tree
Showing 2 changed files with 260 additions and 37 deletions.
182 changes: 182 additions & 0 deletions src/r2x/defaults/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,188 @@
"device_inference_string": {},
"distribution_losses": 1,
"generator_map": {},
"generator_models": {
"GenericBattery": [
{
"fuel": "STORAGE",
"type": null
},
{
"fuel": null,
"type": "BA"
}
],
"HydroDispatch": [
{
"fuel": "HYDRO",
"type": null
},
{
"fuel": null,
"type": "HY"
}
],
"HydroPumpedStorage": [
{
"fuel": "HYDRO",
"type": "PS"
},
{
"fuel": null,
"type": "PS"
}
],
"RenewableDispatch": [
{
"fuel": "SOLAR",
"type": "PV"
},
{
"fuel": "SOLAR",
"type": "UN"
},
{
"fuel": "WIND",
"type": "WIND"
},
{
"fuel": "WIND",
"type": null
},
{
"fuel": "SOLAR",
"type": null
},
{
"fuel": null,
"type": "WT"
},
{
"fuel": null,
"type": "WS"
},
{
"fuel": null,
"type": "PV"
},
{
"fuel": null,
"type": "CP"
},
{
"fuel": null,
"type": "HA"
}
],
"RenewableFix": [
{
"fuel": "SOLAR",
"type": "RTPV"
},
{
"fuel": "SOLAR",
"type": "OT"
},
{
"fuel": null,
"type": "RTPV"
}
],
"ThermalStandard": [
{
"fuel": "OIL",
"type": null
},
{
"fuel": "DISTILLATE_FUEL_OIL",
"type": null
},
{
"fuel": "COAL",
"type": null
},
{
"fuel": "NG",
"type": null
},
{
"fuel": "GAS",
"type": null
},
{
"fuel": "OTHER_GAS",
"type": null
},
{
"fuel": "NATURAL_GAS",
"type": null
},
{
"fuel": "NUCLEAR",
"type": null
},
{
"fuel": "NUC",
"type": null
},
{
"fuel": "SYNC_COND",
"type": "SYNC_COND"
},
{
"fuel": "OTHER",
"type": "OT"
},
{
"fuel": "AG_BIPRODUCT",
"type": null
},
{
"fuel": "GEOTHERMAL",
"type": null
},
{
"fuel": "STORAGE",
"type": "CE"
},
{
"fuel": "MUNICIPAL_WASTE",
"type": null
},
{
"fuel": "WOOD_WASTE",
"type": "OT"
},
{
"fuel": "WOOD_WASTE",
"type": "GT"
},
{
"fuel": null,
"type": "OT"
},
{
"fuel": null,
"type": "ST"
},
{
"fuel": null,
"type": "GT"
},
{
"fuel": null,
"type": "CA"
},
{
"fuel": null,
"type": "CT"
},
{
"fuel": null,
"type": "CC"
}
]
},
"heatrate_fits_file": "heatrate_generic_fits.csv",
"hydro_mean_time_to_repair": 24,
"hydro_ramp_rate": 0.05,
Expand Down
Loading

0 comments on commit fcc37c0

Please sign in to comment.