Green City Library Help

CostCalculations

Symbol

CostCalculationsICON.png

Use

This model provides a simple approach to calculate accumulated operating costs of the power consumption and grid supply (only electricity) of a simple or complex energy system. It considers both peak-power and energy costs based on the total power consumption profile of the main grid. Specific energy and peak-power costs can be included either via static parameters or via a time-dependent curves.

The CostCalculations covers the following applications:

  • Basic: Power consumption profile is evaluated with constant power and energy costs. No PV system or CHP system generates local power.

  • Variable Prices: Activated variable power and/or energy prices.

  • CHP: Combined Heat and Power Unit (CHP) generates local power and consumes gas.

  • PV: Photovoltaic (PV) system generates local renewable power.

Parameters and Connectors

Basic

The basic model setup only provides a reduced set of available parameters:

  • VariableEnergyPrices: remains false

  • VariablePowerPrices: remains false

  • withCHP: remains false

  • withPV: remains false

  • EnergyCostsPerkWhConstant: constant energy costs, based on average annual/monthly bills

  • PowerCostsPerkWConstant: constant peak-power costs, based on average annual/monthly bills

  • PeakPowerTimePeriod: Time period for peak-power costs evaluation - typically 15 min / 0.25 h

CostCalculations_ParameterDialog1.png

To integrate the model component into a complex energy system model, the user needs to connect the available connectors ▶EnvironmentConditions and ▶GridPower to the corresponding model components. On the one hand, the model requires some time synchronization using the simulation results from the Environment model. Therefore, connect ▶EnvironmentConditions to an Environment model. Furthermore, the evaluation of power consumption costs requires the simulated power consumption profile of the model's main grid element. Therefore, use a Modelica RealExpression model (Modelica.Blocks.Sources) to add the grid model's output "Grid.P" to the ▶GridPower connector.

Variable Prices

In opposite to the basic setup, this configuration provides an alternative parameter setup:

  • VariableEnergyPrices: optionally set to true

  • VariablePowerPrices: optionally set to true

  • useDayTime: true: time base for price tables is day time (00..24h); else: time base for price tables are the hours of year (00..8760/8784h);

  • withCHP: remains false

  • withPV: remains false

  • EnergyCostsPerkWhVariable: use the SimulationX table dialogue to define the energy price characteristics depending on the local tariffs

  • PowerCostsPerkWVariable: use the SimulationX table dialogue to define the power price characteristics depending on the local tariffs

  • PeakPowerTimePeriod: Time period for peak-power costs evaluation - typically 15 min / 0.25 h

CostCalculations_ParameterDialog2.png

This setup uses the same connector configuration like the basic one. However, be sure that time base configuration (i.e. useDayTime) corresponds to the time scale of the chosen input tables of both EnergyCostsPerkWhVariable and PowerCostsPerkWVariable.

CHP

if activated (i.e. withCHP = true), this option adds several new parameters which allow to consider additional charges and funding of co-generation units within the modeled energy system:

  • CHPGridFeedFundingPerKWh: average revenue of CHP power supply to the grid

  • CHPPowerProductionFundingPerKWh: revenue for CHP power production

  • CHPGasTaxRefundPerKWh: tax refund for CHP gas consumption

  • CHPGasCostsPerKWh: CHP gas consumption costs

  • CHPEEGChargePerKWhOwnConsumption: additional costs for CHP own consumption based on German Renewable Energies Act

CostCalculations_ParameterDialog3.png

After activation of this mode, the model provides two more connectors. ▶CHPPower requires as input the simulated CHP power output and the simulated CHPs natural gas consumption. Therefore, connect again Modelica RealExpression models (Modelica.Blocks.Sources) to both connectors. Use either the corresponding grid model's output (e.g. Grid[1].P if the CHP is connected to ▶GridA) to define ▶CHPPower and the CHP model's PFuel output to define ▶CHPGasConsumption.

PV

if activated (i.e. withPV = true), this option adds several other parameters which allow to consider additional charges and funding of PV systems within the modeled energy system:

  • PVGridFeedFundingPerKWh: revenue for PV power supply to the grid

  • PVEEGChargePerKWhOwnConsumption: additional charges for PV own consumption based on German Renewable Energies Act

CostCalculations_ParameterDialog4.png

This model provides one additional connector ▶PVPower. This connector requires again to connect a Modelica RealExpression (Modelica.Blocks.Sources) to read the current simulated PV power output. Use again the corresponding grid model's output (e.g. Grid[1].P if the PV is connected to ▶GridA) to define this input.

Model Background

The model includes the calculation of funding and costs for photovoltaic and co-generation systems. These costs are based on German legislation (c.f. 2016 Co-generation Act, 2014 Renewable Energies Act).

The model considers following funding and costs for PV systems:

  • Revenue for PV power supply to the grid (PVGridFeedFundingPerKWh)

  • Additional charges for PV own consumption based on German Renewable Energies Act (PVEEGChargePerKWhOwnConsumption)

29 Oktober 2025