Commit a85f13a6 authored by Niina Helistö's avatar Niina Helistö
Browse files

Adding a parameter r_gnnDiffusion for storing realized diffusions between nodes

Issue #159
parent 03103d54
......@@ -87,6 +87,7 @@ r_gnnTotalTransfer
r_gnTotalSpill
r_gnTotalSpillShare
r_gTotalSpill
r_gnnDiffusion
* --- Energy Generation/Consumption Result Symbols ----------------------------
......
......@@ -93,6 +93,7 @@ Parameters
r_gnTotalSpill(grid, node) "Total spilled energy from gn over the simulation (MWh)"
r_gnTotalSpillShare(grid, node) "Total spilled energy gn/g share"
r_gTotalSpill(grid) "Total spilled energy from gn over the simulation (MWh)"
r_gnnDiffusion(grid, node, node, f, t) "Diffusion between nodes"
* --- Energy Generation/Consumption Results -----------------------------------
......
......@@ -120,6 +120,13 @@ loop(m,
) // END sum(ft_realizedNoReset)
]; // END * 1e-6
// Diffusion from node to node_
r_gnnDiffusion(gn_state(grid, node), node_, ft_realizedNoReset(f,startp(t)))
${gnn_state(grid, node, node_) or gnn_state(grid, node_, node)}
= p_gnn(grid, node, node_, 'diffCoeff') * r_state(grid, node, f, t)
- p_gnn(grid, node_, node, 'diffCoeff') * r_state(grid, node_, f, t)
;
* --- Total Cost Components (discounted) --------------------------------------
// Total VOM costs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment