Energy balance in Suzhou: Difference between revisions
m (→Data) |
(data reformatted, new code copied from Energy balance in Sturrgart) |
||
| Line 15: | Line 15: | ||
===Data=== | ===Data=== | ||
<t2b index="Equation | <t2b name="Equations" index="Equation" desc="Dummy,Description" unit="GWh /a?"> | ||
TP raw coal + TP natural gas + TP oil products + TP coal products + TP other energy + TP heat = TP electricity + TP loss|1|In energy balance, inputs and outputs cancel out. Balance Thermal Power Plants | |||
Balance Thermal Power Plants | TP natural gas + TP oil products + TP coal products + TP other energy + TP heat = 0.12158311*TP raw coal|-1|(670,9+21,4+1145,5+198,0+54,7)/17194,0 Others divided by raw coal. Fraction TP raw coal. Sum of other fuels is used as comparison for raw coal | ||
TP raw coal + TP oil products + TP coal products + TP other energy + TP heat = 27.74422418*TP natural gas|-1|(17194,0+21,4+1145,5+198,0+54,7)/670,9 Others divided by natural gas. Fraction TP natural gas. Sum of other fuels is used as comparison for natural gas | |||
TP raw coal + TP natural gas + TP coal products + TP other energy + TP heat = 900.1448598*TP oil products|-1|(17194,0+670,9+1145,5+198,0+54,7)/21,4 Others divided by oil productsFraction TP oil products. Sum of other fuels is used as comparison for oil products | |||
TP raw coal + TP natural gas + TP oil products + TP other energy + TP heat = 15.83500655*TP coal products|-1|(17194,0+670,9+21,4+198,0+54,7)/1145,5 Others divided by coal products. Fraction TP coal products. Sum of other fuels is used as comparison for coal products | |||
TP raw coal + TP natural gas + TP oil products + TP coal products + TP heat = 96.39646465*TP other energy|-1|(17194,0+670,9+21,4+1145,5+54,7)/198,0 Others divided by other energy. Fraction TP other energy. Sum of other fuels is used as comparison for other energy | |||
TP electricity = 0.630948656*TP loss|-1|7460,4/11824,1 electricity per loss. Fraction TP loss. Amount of electricity is used as comparison for loss | |||
H raw coal + H natural gas + H oil products + H coal products + H other energy = H heat + H loss|-1|Balance Heating Supply. In energy balance, inputs and outputs cancle out | |||
Fraction TP raw coal | H natural gas + H oil products + H coal products + H other energy = 0.158111641*H raw coal|-1|(88,0+38,6+360,3+27,2)/3251,5 Others divided by raw coal. Fraction H raw coal. Sum of other fuels is used as comparison for raw coal | ||
H raw coal + H oil products + H coal products + H other energy = 41.79090909*H natural gas|-1|(3251,5+38,6+360,3+27,2)/88,0 Others divided by natural gas. Fraction H natural gas. Sum of other fuels is used as comparison for natural gas | |||
H raw coal + H natural gas + H coal products + H other energy = 96.55440415*H oil products|-1|(3251,5+88,0+360,3+27,2)/38,6 Others divided by oil products. Sum of other fuels is used as comparison for oil products. Fraction H oil products | |||
H raw coal + H natural gas + H oil products + H other energy = 9.451290591*H coal products|-1|(3251,5+88,0+38,6+27,2)/360,3 Others divided by coal products. Fraction H coal products. Sum of other fuels is used as comparison for coal products | |||
H heat = 4.451715651*H loss|-1|3074,8/690,7 heat per loss. Fraction H loss. Amount of heat is used as comparison for loss | |||
CP raw coal + CP natural gas + CP oil products = CP coal products + CP loss|1|Balance Coal Processing. In energy balance, inputs and outputs cancel out | |||
Fraction TP natural gas | CP natural gas + CP oil products = 0.004725972*CP raw coal|-1|(0,007+0,0172)/5,12064 Others divided by raw coal. Fraction CP raw coal. Sum of other fuels is used as comparison for raw coal | ||
CP oil products = 24.57142857*CP natural gas|1|0,01720/0,0007 oil products divided by natural gas. Fraction CP natural gas. Amount of oil products is used as comparison for natural gas | |||
CP coal products = 6.341763109*CP loss|1|4,4386/0,6999 coal products per loss. Fraction CP loss. Amount of coal products is used as comparison for loss | |||
Loss heat = 0.029823078*H heat|1|91,7/3074,8. Transmission loss heat. Known loss divided by production | |||
Loss oil products = 0.953271028*TP oil products|1|20,4/21,4. Transmission loss oil products. Known loss divided by oil products used in TP | |||
Loss electricity = 0.085276929*TP electricity|1|636,2/7460,4. Transmission loss electricity. Known loss divided by production | |||
Fraction TP | Loss natural gas = 0.3625*H natural gas|1|31,9/88,0. Transmission loss natural gas. Known loss divided by natural gas used in H | ||
Bought electricity + TP electricity = Loss electricity + Cons Agri electricity + Cons Ind electricity + Cons Transportation electricity + Cons Commerce electricity + Cons Households electricity|1|Electricity use balance. In energy balance, inputs and outputs cancel out | |||
H heat = Loss heat + Cons Ind heat + Cons Commerce heat|1|Heat use balance. In energy balance, inputs and outputs cancel out | |||
Cons Agri electricity = 25.8468532|1|Consumed electricity agriculture | |||
Cons Ind electricity = 7032.044935|1|Consumed electricity industry | |||
Cons Transportation electricity = 49.8664292|1|Consumed electricity transportation | |||
Fraction TP | Cons Commerce electricity = 684.7050273|1|Consumed electricity commerce | ||
Cons Households electricity = 625.3804599|1|Consumed electricity households | |||
Cons Ind heat = 2981.313692|1|Consumed heat industry | |||
Fraction TP | Cons Commerce heat = 1.732034769|1|Consumed heat commerce | ||
Fraction | |||
Fraction | |||
Fraction | |||
Balance | |||
Fraction | |||
Fraction | |||
Consumed | |||
Consumed heat commerce | |||
</t2b> | </t2b> | ||
<t2b name="Nonlinearity parameters" index="critVar,critIndex,rescol,critLocLow,critLocHigh" obs="critValue" unit="GWh /a"> | |||
||||| | |||
</t2b> | |||
=== Dependencies === | === Dependencies === | ||
=== | * [[Energy balance]] | ||
=== Calculations === | |||
<rcode name="answer" graphics="1"> | |||
library(OpasnetUtils) | |||
library(ggplot2) | |||
N <- 10 | |||
objects.latest("Op_en5141", code_name = "initiate") | |||
balance <- Ovariable("balance", ddata = "Op_en5815.equations") | |||
balance@data$Equation <- as.character(levels(balance@data$Equation)[balance@data$Equation]) # Change factor into character. | |||
nonlinearity <- Ovariable("nonlinearity", ddata = "Op_en5815", subset = "Nonlinearity parameters") | |||
energy.balance <- EvalOutput(energy.balance) | |||
energy.balance@marginal[colnames(energy.balance@output) == "energy.balanceVar"] <- TRUE # This has to be done manually because CheckMarginals does not notice this as a marginal. | |||
energy.balance@marginal[colnames(energy.balance@output) %in% nonlinearity@output$critIndex] <- FALSE # Nonlinear indices are demarginalised because only one of the two equations apply. | |||
oprint(summary(energy.balance)) | |||
ggplot(energy.balance@output, aes_string(x = "energy.balanceVar", y = "energy.balanceResult")) + | |||
geom_boxplot() + | |||
theme_grey(base_size = 24) + | |||
theme(axis.text.x = element_text(angle = 90, hjust = 1, vjust= 0.2)) | |||
# objects.store(energy.balance) | |||
</rcode> | |||
* See [[Energy balance]]. | |||
; Old code: | |||
{{attack|# |There are 32 columns (unknown variables) but only 31 rows (equations).|--[[User:Jouni|Jouni]] 18:18, 25 September 2012 (EEST)}} | {{attack|# |There are 32 columns (unknown variables) but only 31 rows (equations).|--[[User:Jouni|Jouni]] 18:18, 25 September 2012 (EEST)}} | ||
| Line 174: | Line 133: | ||
Write down the key of the model run page for further use.\n") | Write down the key of the model run page for further use.\n") | ||
</rcode> | </rcode> | ||
* [http://en.opasnet.org/en-opwiki/index.php?title=Energy_balance_in_Suzhou&oldid=29360 Previous model version] | |||
** [http://en.opasnet.org/en-opwiki/index.php/Special:R-tools?id=wpVQ2EDDBFJLrCFz Model run from a previous version] (there is a problem with data). | |||
==See also== | ==See also== | ||
Revision as of 09:14, 18 August 2013
| Moderator:nobody (see all) |
| This page is a stub. You may improve it into a full page. |
| Upload data
|
Question
What are the amounts of energy produced, consumed, imported, and exported in Suzhou?
Answer
Rationale
There are several energy transformations that each describe a specific process of energy production or use. Per unit activity, there is a constant amount of different inputs and outputs into and from this process, respectively. These unit processes are used for Suzhou in such a way that one critical input or output from each relevant energy transformation is listed here; all other inputs and outputs logically follow from the nature of the transformation process.
Data
You have error(s) in your data:
Number of indices and result cells does not match
| Obs | Equation | Result | Dummy | Description |
|---|---|---|---|---|
| 1 | TP raw coal + TP natural gas + TP oil products + TP coal products + TP other energy + TP heat = TP electricity + TP loss | 1 | In energy balance, inputs and outputs cancel out. Balance Thermal Power Plants | |
| 2 | TP natural gas + TP oil products + TP coal products + TP other energy + TP heat = 0.12158311*TP raw coal | -1 | (670,9+21,4+1145,5+198,0+54,7)/17194,0 Others divided by raw coal. Fraction TP raw coal. Sum of other fuels is used as comparison for raw coal | |
| 3 | TP raw coal + TP oil products + TP coal products + TP other energy + TP heat = 27.74422418*TP natural gas | -1 | (17194,0+21,4+1145,5+198,0+54,7)/670,9 Others divided by natural gas. Fraction TP natural gas. Sum of other fuels is used as comparison for natural gas | |
| 4 | TP raw coal + TP natural gas + TP coal products + TP other energy + TP heat = 900.1448598*TP oil products | -1 | (17194,0+670,9+1145,5+198,0+54,7)/21,4 Others divided by oil productsFraction TP oil products. Sum of other fuels is used as comparison for oil products | |
| 5 | TP raw coal + TP natural gas + TP oil products + TP other energy + TP heat = 15.83500655*TP coal products | -1 | (17194,0+670,9+21,4+198,0+54,7)/1145,5 Others divided by coal products. Fraction TP coal products. Sum of other fuels is used as comparison for coal products | |
| 6 | TP raw coal + TP natural gas + TP oil products + TP coal products + TP heat = 96.39646465*TP other energy | -1 | (17194,0+670,9+21,4+1145,5+54,7)/198,0 Others divided by other energy. Fraction TP other energy. Sum of other fuels is used as comparison for other energy | |
| 7 | TP electricity = 0.630948656*TP loss | -1 | 7460,4/11824,1 electricity per loss. Fraction TP loss. Amount of electricity is used as comparison for loss | |
| 8 | H raw coal + H natural gas + H oil products + H coal products + H other energy = H heat + H loss | -1 | Balance Heating Supply. In energy balance, inputs and outputs cancle out | |
| 9 | H natural gas + H oil products + H coal products + H other energy = 0.158111641*H raw coal | -1 | (88,0+38,6+360,3+27,2)/3251,5 Others divided by raw coal. Fraction H raw coal. Sum of other fuels is used as comparison for raw coal | |
| 10 | H raw coal + H oil products + H coal products + H other energy = 41.79090909*H natural gas | -1 | (3251,5+38,6+360,3+27,2)/88,0 Others divided by natural gas. Fraction H natural gas. Sum of other fuels is used as comparison for natural gas | |
| 11 | H raw coal + H natural gas + H coal products + H other energy = 96.55440415*H oil products | -1 | (3251,5+88,0+360,3+27,2)/38,6 Others divided by oil products. Sum of other fuels is used as comparison for oil products. Fraction H oil products | |
| 12 | H raw coal + H natural gas + H oil products + H other energy = 9.451290591*H coal products | -1 | (3251,5+88,0+38,6+27,2)/360,3 Others divided by coal products. Fraction H coal products. Sum of other fuels is used as comparison for coal products | |
| 13 | H heat = 4.451715651*H loss | -1 | 3074,8/690,7 heat per loss. Fraction H loss. Amount of heat is used as comparison for loss | |
| 14 | CP raw coal + CP natural gas + CP oil products = CP coal products + CP loss | 1 | Balance Coal Processing. In energy balance, inputs and outputs cancel out | |
| 15 | CP natural gas + CP oil products = 0.004725972*CP raw coal | -1 | (0,007+0,0172)/5,12064 Others divided by raw coal. Fraction CP raw coal. Sum of other fuels is used as comparison for raw coal | |
| 16 | CP oil products = 24.57142857*CP natural gas | 1 | 0,01720/0,0007 oil products divided by natural gas. Fraction CP natural gas. Amount of oil products is used as comparison for natural gas | |
| 17 | CP coal products = 6.341763109*CP loss | 1 | 4,4386/0,6999 coal products per loss. Fraction CP loss. Amount of coal products is used as comparison for loss | |
| 18 | Loss heat = 0.029823078*H heat | 1 | 91,7/3074,8. Transmission loss heat. Known loss divided by production | |
| 19 | Loss oil products = 0.953271028*TP oil products | 1 | 20,4/21,4. Transmission loss oil products. Known loss divided by oil products used in TP | |
| 20 | Loss electricity = 0.085276929*TP electricity | 1 | 636,2/7460,4. Transmission loss electricity. Known loss divided by production | |
| 21 | Loss natural gas = 0.3625*H natural gas | 1 | 31,9/88,0. Transmission loss natural gas. Known loss divided by natural gas used in H | |
| 22 | Bought electricity + TP electricity = Loss electricity + Cons Agri electricity + Cons Ind electricity + Cons Transportation electricity + Cons Commerce electricity + Cons Households electricity | 1 | Electricity use balance. In energy balance, inputs and outputs cancel out | |
| 23 | H heat = Loss heat + Cons Ind heat + Cons Commerce heat | 1 | Heat use balance. In energy balance, inputs and outputs cancel out | |
| 24 | Cons Agri electricity = 25.8468532 | 1 | Consumed electricity agriculture | |
| 25 | Cons Ind electricity = 7032.044935 | 1 | Consumed electricity industry | |
| 26 | Cons Transportation electricity = 49.8664292 | 1 | Consumed electricity transportation | |
| 27 | Cons Commerce electricity = 684.7050273 | 1 | Consumed electricity commerce | |
| 28 | Cons Households electricity = 625.3804599 | 1 | Consumed electricity households | |
| 29 | Cons Ind heat = 2981.313692 | 1 | Consumed heat industry | |
| 30 | Cons Commerce heat = 1.732034769 | 1 | Consumed heat commerce |
| Obs | critVar | critIndex | rescol | critLocLow | critLocHigh | critValue |
|---|---|---|---|---|---|---|
| 1 |
Dependencies
Calculations
- See Energy balance.
- Old code
⇤--#: . There are 32 columns (unknown variables) but only 31 rows (equations). --Jouni 18:18, 25 September 2012 (EEST) (type: truth; paradigms: science: attack)
- Previous model version
- Model run from a previous version (there is a problem with data).
See also
Keywords
References