Electric Steam

Contents

Overview | Asset Structure | Flow Equations | Input File (Standard Format) | Types - Asset Structure | Constructors | Examples | Best Practices | Input File (Advanced Format)

Overview

Electric Steam assets in MacroEnergy.jl represent resistive or steam production–based systems that convert electricity into steam for district or building steam applications. These assets can represent electric boilers, steam production, or other electrical steam devices supplying district or building steam networks. They are defined using either JSON or CSV input files placed in the assets directory, typically named with descriptive identifiers like electric_steam.json.

Asset Structure

An electric steam asset consists of three main components:

  1. Transformation Component: Balances the electricity and steam flows
  2. Electricity Edge: Represents the electricity supply to the steam unit
  3. Steam Edge: Represents the steam production (can have unit commitment operations)

Here is a graphical representation of the electric steam asset:

%%{init: {'theme': 'base', 'themeVariables': { 'background': '#E2F0FF' }}}%% flowchart LR subgraph ElectricSteam direction LR A((Electricity)) e1@ --> B{{..}} B e2@ --> C((Steam)) e1@{animate: true} e2@{animate: true} end style A r:55px,fill:#0055A4,stroke:black,color:white,stroke-dasharray: 3,5; style B r:55px,fill:black,stroke:black,color:black,stroke-dasharray: 3,5; style C font-size:26px,r:55px,fill:#FFA500,stroke:black,color:black,stroke-dasharray: 3,5; linkStyle 0 stroke:#0055A4, stroke-width: 2px; linkStyle 1 stroke:#FFA500, stroke-width: 2px;

Flow Equations

The electric steam asset follows these stoichiometric relationships:

\[\begin{aligned} \phi_{elec} &= \phi_{steam} \cdot \epsilon_{elec\_consumption} \\ \end{aligned}\]

Where:

  • $\phi$ represents the flow of each commodity
  • $\epsilon$ represents the stoichiometric coefficients defined in the Conversion Process Parameters section.

Input File (Standard Format)

Techno-Economic Analysis

Techno-economic analysis background is recommended for updating or adding conversion process parameters. For users not familiar with TEA, they can refer to this guide.

The easiest way to include a electric steam asset in a model is to create a new file (either JSON or CSV) and place it in the assets directory together with the other assets.

your_case/
├── assets/
│   ├── electric_steam.json    # or electric_steam.csv
│   ├── other_assets.json
│   └── ...
├── system/
├── settings/
└── ...

This file can either be created manually, or using the template_asset function, as shown in the Adding an Asset to a System section of the User Guide. The file will be automatically loaded when you run your Macro model.

The following is an example of a electric steam asset input file:

{
    "ElectricSteam": [
        {
            "type": "ElectricSteam",
            "instance_data": [
                {
                    "id": "SE_electric_boiler_1",
                    "location": "SE",
                    "timedata": "Electricity",
                    "capacity_size": 50,
                    "elec_consumption": 1.0,
                    "investment_cost": 20000,
                    "fixed_om_cost": 1200,
                    "variable_om_cost": 2.0,
                    "ramp_up_fraction": 0.8,
                    "ramp_down_fraction": 0.8
                }
            ]
        }
    ]
}
Global Data vs Instance Data

When working with JSON input files, the global_data field can be used to group data that is common to all instances of the same asset type. This is useful for setting constraints that are common to all instances of the same asset type and avoid repeating the same data for each instance. See the Examples section below for an example.

The following tables outline the attributes that can be set for a electric steam asset.

Essential Attributes

FieldTypeDescription
TypeStringAsset type identifier: "electricsteam"
idStringUnique identifier for the steam unit instance
locationStringGeographic location/node identifier
elec_commodityStringElectricity commodity identifier
ucBooleanWhether unit commitment is enabled (default: false)
timedataStringTime resolution for time series data (default: "Steam")
elec_start_vertexStringElectricity start vertex identifier. This is not required if the elec commodity is present in the location.

Conversion Process Parameters

The following set of parameters control the conversion process and stoichiometry of the electric steam asset (see Flow Equations for more details).

FieldTypeDescriptionUnitsDefault
elec_consumptionFloat64Electricity consumption rate$MWh_{electricity}/MWh_{steam}$1.0

Constraints Configuration

Electric Steam assets can have different constraints applied to them, and the user can configure them using the following fields:

FieldTypeDescription
transform_constraintsDict{String,Bool}List of constraints applied to the transformation component.
steam_constraintsDict{String,Bool}List of constraints applied to the steam edge.
elec_constraintsDict{String,Bool}List of constraints applied to the electricity edge.

For example, if the user wants to apply the BalanceConstraint to the transformation component and the CapacityConstraint to the steam edge, the constraints fields should be set as follows:

{
    "transform_constraints": {
        "BalanceConstraint": true
    },
    "steam_constraints": {
        "CapacityConstraint": true
    }
}

Users can refer to the Adding Asset Constraints to a System section of the User Guide for a list of all the constraints that can be applied to the different components of a electric steam asset.

Default constraints

To simplify the input file and the asset configuration, the following constraints are applied to the electric steam asset by default:

Unit commitment constraints (when uc is set to true):

Investment Parameters

FieldTypeDescriptionUnitsDefault
can_retireBooleanWhether capacity can be retired-true
can_expandBooleanWhether capacity can be expanded-true
existing_capacityFloat64Initial installed capacityMW0.0
capacity_sizeFloat64Unit size for capacity decisions-1.0

Additional Investment Parameters

Maximum and minimum capacity constraints

If MaxCapacityConstraint or MinCapacityConstraint are added to the constraints dictionary for the steam edge, the following parameters are used by Macro:

FieldTypeDescriptionUnitsDefault
max_capacityFloat64Maximum allowed capacityMWInf
min_capacityFloat64Minimum allowed capacityMW0.0

Economic Parameters

FieldTypeDescriptionUnitsDefault
investment_costFloat64CAPEX per unit capacity$/MW0.0
annualized_investment_costUnion{Nothing,Float64}Annualized CAPEX$/MW/yrcalculated
fixed_om_costFloat64Fixed O&M costs$/MW/yr0.0
variable_om_costFloat64Variable O&M costs$/MWh0.0
startup_costFloat64Cost per MW of capacity to start a generator$/MW per start0.0
waccFloat64Weighted average cost of capitalfraction0.0
lifetimeIntAsset lifetime in yearsyears1
capital_recovery_periodIntInvestment recovery periodyears1
retirement_periodIntRetirement periodyears0

Operational Parameters

FieldTypeDescriptionUnitsDefault
availabilityDictAvailability file path and header-Empty

Additional Operational Parameters

Unit commitment parameters (when uc is set to true)

FieldTypeDescriptionUnitsDefault
startup_elec_consumptionFloat64Electricity consumption per unit steam to start the plant$MWh_{electricity}/MWh_{elec}$0.0

Minimum flow constraint

If MinFlowConstraint is added to the constraints dictionary for the steam edge, the following parameter is used:

FieldTypeDescriptionUnitsDefault
min_flow_fractionFloat64Minimum flow as fraction of capacityfraction0.0

Ramping limit constraint

If RampingLimitConstraint is added to the constraints dictionary for the steam edge, the following parameters are used:

FieldTypeDescriptionUnitsDefault
ramp_up_fractionFloat64Maximum increase in flow between timestepsfraction1.0
ramp_down_fractionFloat64Maximum decrease in flow between timestepsfraction1.0

Minimum up and down time constraints

If MinUpTimeConstraint or MinDownTimeConstraint are added to the constraints dictionary for the steam edge, the following parameters are used:

FieldTypeDescriptionUnitsDefault
min_up_timeInt64Minimum time the plant must remain committedhours0
min_down_timeInt64Minimum time the plant must remain shutdownhours0

Types - Asset Structure

The electricsteam asset is defined as follows:

struct electricsteam{T} <: AbstractAsset
    id::AssetId
    steam_transform::Transformation
    steam_edge::Union{Edge{<:Steam},EdgeWithUC{<:Steam}}
    elec_edge::Edge{<:T}
end

Constructors

Default constructor

electricsteam(id::AssetId, steam_transform::Transformation, steam_edge::Union{Edge{<:Steam},EdgeWithUC{<:Steam}}, elec_edge::Edge{<:Electricity})

Factory constructor

make(asset_type::Type{electricsteam}, data::AbstractDict{Symbol,Any}, system::System)
FieldTypeDescription
asset_typeType{electricsteam}Macro type of the asset
dataAbstractDict{Symbol,Any}Dictionary containing the input data for the asset
systemSystemSystem to which the asset belongs

Examples

This section contains examples of how to use the electric steam asset in a Macro model.

Example of electric steam plant

This example shows a electric steam plant. The asset has no capacity and can be expanded. The asset has an availability time series loaded from a CSV file.

JSON Format:

Note that the global_data field is used to set the fields and constraints that are common to all instances of the same asset type.

{
    "ElectricSteam": [
        {
            "type": "ElectricSteam",
            "instance_data": [
                {
                    "id": "SE_electric_steam_1",
                    "location": "SE",
                    "timedata": "Electricity",
                    "elec_commodity": "Electricity",
                    "elec_start_vertex": "elec_SE",
                    "can_retire": true,
                    "can_expand": true,
                    "existing_capacity": 0,
                    "capacity_size": 50.0,
                    "elec_consumption": 1.2,
                    "fixed_om_cost": 6000,
                    "variable_om_cost": 5.0
                }
            ]
        }
    ]
}

CSV Format:

Typeidlocationtime_dataelectricity_commodityelectricity_start_vertexcan_retirecan_expandexisting_capacitycapacity_sizesteam_constraints–MinFlowConstraintelectricity_consumptionfixed_om_costvariable_om_cost
ElectricSteamSE_electric_steam_1SEElectricityElectricityelec_sourcetruetrue0.050.0true1.260005.0

Multiple Electric Steam Units in Different Zones

This example shows three electric steam units. Each asset has no capacity and can be expanded. The assets are configured without unit commitment variables.

JSON Format:

{
    "ElectricSteam": [
        {
            "type": "ElectricSteam",
            "global_data": {
                "timedata": "Electricity",
                "elec_commodity": "Electricity",
                "steam_constraints": {
                    "MinFlowConstraint": true
                }
            },
            "instance_data": [
                {
                    "id": "MIDAT_electric_steam_1",
                    "location": "MIDAT",
                    "elec_consumption": 1.85,
                    "can_retire": true,
                    "can_expand": true,
                    "existing_capacity": 4,
                    "investment_cost": 0.0,
                    "fixed_om_cost": 8000,
                    "variable_om_cost": 4.5,
                    "capacity_size": 100.0
                },
                {
                    "id": "NE_electric_steam_1",
                    "location": "NE",
                    "elec_consumption": 1.90,
                    "can_retire": true,
                    "can_expand": true,
                    "existing_capacity": 0,
                    "investment_cost": 0.0,
                    "fixed_om_cost": 8200,
                    "variable_om_cost": 4.7,
                    "capacity_size": 120.0
                },
                {
                    "id": "SE_electric_steam_1",
                    "location": "SE",
                    "elec_consumption": 1.75,
                    "can_retire": true,
                    "can_expand": true,
                    "existing_capacity": 0,
                    "investment_cost": 0.0,
                    "fixed_om_cost": 7000,
                    "variable_om_cost": 3.9,
                    "capacity_size": 500.0
                }
            ]
        }
    ]
}

CSV Format:

Typeidlocationtime_dataelectricity_commoditycan_retirecan_expandexisting_capacitycapacity_sizesteam_constraints–MinFlowConstraintelectricity_consumptionfixed_om_costvariable_om_cost
ElectricSteamMIDAT_electric_steam_1MIDATElectricityElectricitytruetrue0100.0true1.8580004.5
ElectricSteamNE_electric_steam_1NEElectricityElectricitytruetrue0120.0true1.9082004.7
ElectricSteamSE_electric_steam_1SEElectricityElectricitytruetrue0500.0true1.7570003.9

Best Practices

  1. Use global data for common parameters: Use the global_data field to set the fields and constraints that are common to all instances of the same asset type.
  2. Set realistic efficiency parameters: Ensure electricity consumption are accurate for the technology being modeled
  3. Use meaningful IDs: Choose descriptive identifiers that indicate location and technology type
  4. Consider unit commitment carefully: Enable unit commitment only when detailed operational modeling is needed
  5. Use constraints selectively: Only enable constraints that are necessary for your modeling needs
  6. Validate costs: Ensure investment and O&M costs are in appropriate units and time periods
  7. Test configurations: Start with simple configurations and gradually add complexity
  8. Set appropriate ramp rates: Consider the actual operational characteristics of the technology

Input File (Advanced Format)

Macro provides an advanced format for defining electric steam assets, offering users and modelers detailed control over asset specifications. This format builds upon the standard format and is ideal for those who need more comprehensive customization.

To understand the advanced format, consider the graph representation and the type definition of a electric steam asset. The input file mirrors this hierarchical structure.

A electric steam asset in Macro is composed of a transformation component, represented by a Transformation object, and multiple edges (electricity, steam), each represented by an Edge object. The input file for a electric steam asset is therefore organized as follows:

{
    "transforms":{
        // ... transformation-specific attributes ...
    },
    "edges":{
        "elec_edge": {
            // ... elec_edge-specific attributes ...
        },
        "steam_edge": {
            // ... steam_edge-specific attributes ...
        }
    }
}

Each top-level key (e.g., "transforms" or "edges") denotes a component type. The second-level keys either specify the attributes of the component (when there is a single instance) or identify the instances of the component when there are multiple instances.

Below is an example of an input file for a electric steam asset that sets up multiple electric steam plants across different regions:

{
    "ElectricSteam": [
        {
            "type": "electricsteam",
            "global_data": {
                "transforms": {
                    "timedata": "Electricity",
                    "constraints": {
                        "BalanceConstraint": true
                    }
                },
                "edges": {
                    "steam_edge": {
                        "commodity": "Steam",
                        "unidirectional": true,
                        "has_capacity": true,
                        "constraints": {
                            "CapacityConstraint": true,
                            "RampingLimitConstraint": true,
                            "MinFlowConstraint": true
                        }
                    },
                    "elec_edge": {
                        "commodity": "Electricity",
                        "unidirectional": true,
                        "has_capacity": false
                    }
                }
            },
            "instance_data": [
                {
                    "id": "MIDAT_electric_steam_1",
                    "transforms": {
                        "elec_consumption": 1.85,
                    },
                    "edges": {
                        "steam_edge": {
                            "end_vertex": "steam_MIDAT",
                            "can_retire": true,
                            "can_expand": true,
                            "existing_capacity": 0,
                            "investment_cost": 0.0,
                            "fixed_om_cost": 8000,
                            "variable_om_cost": 4.5,
                            "capacity_size": 100.0
                        },
                        "elec_edge": {
                            "start_vertex": "elec_MIDAT"
                        }
                    }
                },
                {
                    "id": "NE_electric_steam_1",
                    "transforms": {
                        "elec_consumption": 1.90,
                    },
                    "edges": {
                        "steam_edge": {
                            "end_vertex": "steam_NE",
                            "can_retire": true,
                            "can_expand": true,
                            "existing_capacity": 0,
                            "investment_cost": 0.0,
                            "fixed_om_cost": 8200,
                            "variable_om_cost": 4.7,
                            "capacity_size": 120.0
                        },
                        "elec_edge": {
                            "start_vertex": "elec_NE"
                        }
                    }
                },
                {
                    "id": "SE_electric_steam_1",
                    "transforms": {
                        "elec_consumption": 1.75,
                    },
                    "edges": {
                        "steam_edge": {
                            "end_vertex": "steam_SE",
                            "can_retire": true,
                            "can_expand": true,
                            "existing_capacity": 0,
                            "investment_cost": 0.0,
                            "fixed_om_cost": 7000,
                            "variable_om_cost": 3.9,
                            "capacity_size": 500.0
                        },
                        "elec_edge": {
                            "start_vertex": "elec_SE"
                        }
                    }
                }
            ]
        }
    ]
}

Key Points

  • The global_data field is utilized to define attributes and constraints that apply universally to all instances of a particular asset type.
  • The start_vertex and end_vertex fields indicate the nodes to which the edges are connected. These nodes must be defined in the nodes.json file.
  • By default, only the steam edge is allowed to expand as a modeling decision (see note below)
  • The steam edge can have unit commitment operations enabled by setting the uc attribute to true.
  • For a comprehensive list of attributes that can be configured for the transformation and edge components, refer to the transformation and edges pages of the Macro manual.
The `has_capacity` Edge Attribute

The has_capacity attribute is a flag that indicates whether a specific edge of an asset has a capacity variable, allowing it to be expanded or retired. Typically, users do not need to manually adjust this flag, as the asset creators in Macro have already configured it correctly for each edge. However, advanced users can use this flag to override the default settings for each edge if needed.

Prefixes

Users can apply prefixes to adjust parameters for the components of a electric steam asset, even when using the standard format. For instance, elec_can_retire will adjust the can_retire parameter for the electricity edge, and elec_existing_capacity will adjust the existing_capacity parameter for the electricity edge. Below are the prefixes available for modifying parameters for the components of a electric steam asset:

  • transform_ for the transformation component
  • steam_ for the steam edge
  • elec_ for the electricity edge