Gas consumption --------------- Alt text **Technology ID: GAS_CONSUMPTION** **Input energy interface, with default energy:** - CONSUMPTION: gas **Output energy interface, with default energy:** - CO2: co2 **Technology parameters:** | ID | Label | Unit | Behaviors | Description | | --- | --- | --- | --- | --- | | CO2_CONTENT | CO2 emissions | t/MW.h | | Yield between the CO2 emissions and the production | | COST | Consumption cost | t/MW.h | | Consumption cost | | DEMAND | Demand | MW | | Power demand | | | **Model code:** ``` python stateON = AssetState('ON') stateON.setEquality(asset.getParameter(ENERGY_PICKUP), True, asset.getData(DEMAND)) # If Equipped with CCS, co2Content is shared between CO2_DELIVERY and CO2_CAPTURED_DELIVERY interfaces co2Content = asset.getData(CO2_CONTENT) ratioCC = getAssetData(asset, RATIO_CC, mustExist=False, dataName=LABELS[RATIO_CC]) if ratioCC is not None: addEnergyYield(stateON, co2Content * (ratioCC/100), asset.getParameter(ENERGY_PICKUP), asset.getParameter(CO2_CAPTURED_DELIVERY), True, False) co2Content = co2Content * (1 - ratioCC/100) addEnergyYield(stateON, co2Content, asset.getParameter(ENERGY_PICKUP), asset.getParameter(CO2_DELIVERY), True, False) addEnergyCost(stateON, asset.getParameter(ENERGY_PICKUP), True, asset.getData(COST)) finalize(stateON) ```