Energy cost calculation from instantaneous power

34 views (last 30 days)
Joydeep
Joydeep on 25 Aug 2022
Answered: Varun on 12 Sep 2023
Hello,
Need to calculate the total electricity cost consumed over one year period.
I have the instantaneous power consumed from the grid (in kW) avalable as a signal in my simulink model. Phasor simulation of model run for 365*24*60*60 s.
Also a price curve (cents/kWh) is available for 24 hour period. (Lets assume the same price curve holds true for all 365 days)
Should the logic to calculate the total energy cost incurred over one year period be done as shown in attached Fig.1 ?
Thanks for inputs!

Answers (1)

Varun
Varun on 12 Sep 2023
Hi Joydeep,
I understand that you need to calculate the total electricity cost consumed over one year period using the given parameters in Simulink. You have provided the Simulink model which calculates this price.
Let’s try to obtain the formula to calculate the total electricity cost for 1 year.
Let the price (cents/kWh) = x.
Let the Power consumed from grid (kW) = y.
1 year time (in hours) = 365*24.
=> Total Work Done by Power Grid in 1 year = y*365*24 kWh.
=> Total Cost for 1 year = x*y*365*24 cents.
So, we need to model the formula x*y*365*24 in Simulink.
But I see you have modelled something like (3600*100)/(x*y) in which I think you meant to use reciprocal block but instead used integrator block.
Please find the correct Simulink model in the attached “CorrectFig.png”.

Categories

Find more on Modeling in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!