{"action":"opened","issue":{"url":"https://api.github.com/repos/quintel/etmoses/issues/799","repository_url":"https://api.github.com/repos/quintel/etmoses","labels_url":"https://api.github.com/repos/quintel/etmoses/issues/799/labels{/name}","comments_url":"https://api.github.com/repos/quintel/etmoses/issues/799/comments","events_url":"https://api.github.com/repos/quintel/etmoses/issues/799/events","html_url":"https://github.com/quintel/etmoses/issues/799","id":134315610,"number":799,"title":"Question: can we take normal conversion losses into account?","user":{"login":"ChaelKruip","id":1303760,"avatar_url":"https://avatars.githubusercontent.com/u/1303760?v=3","gravatar_id":"","url":"https://api.github.com/users/ChaelKruip","html_url":"https://github.com/ChaelKruip","followers_url":"https://api.github.com/users/ChaelKruip/followers","following_url":"https://api.github.com/users/ChaelKruip/following{/other_user}","gists_url":"https://api.github.com/users/ChaelKruip/gists{/gist_id}","starred_url":"https://api.github.com/users/ChaelKruip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChaelKruip/subscriptions","organizations_url":"https://api.github.com/users/ChaelKruip/orgs","repos_url":"https://api.github.com/users/ChaelKruip/repos","events_url":"https://api.github.com/users/ChaelKruip/events{/privacy}","received_events_url":"https://api.github.com/users/ChaelKruip/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/quintel/etmoses/labels/Question","name":"Question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"antw","id":4383,"avatar_url":"https://avatars.githubusercontent.com/u/4383?v=3","gravatar_id":"","url":"https://api.github.com/users/antw","html_url":"https://github.com/antw","followers_url":"https://api.github.com/users/antw/followers","following_url":"https://api.github.com/users/antw/following{/other_user}","gists_url":"https://api.github.com/users/antw/gists{/gist_id}","starred_url":"https://api.github.com/users/antw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antw/subscriptions","organizations_url":"https://api.github.com/users/antw/orgs","repos_url":"https://api.github.com/users/antw/repos","events_url":"https://api.github.com/users/antw/events{/privacy}","received_events_url":"https://api.github.com/users/antw/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/quintel/etmoses/milestones/13","html_url":"https://github.com/quintel/etmoses/milestones/Data%20integrity","labels_url":"https://api.github.com/repos/quintel/etmoses/milestones/13/labels","id":1586249,"number":13,"title":"Data integrity","description":"","creator":{"login":"ChaelKruip","id":1303760,"avatar_url":"https://avatars.githubusercontent.com/u/1303760?v=3","gravatar_id":"","url":"https://api.github.com/users/ChaelKruip","html_url":"https://github.com/ChaelKruip","followers_url":"https://api.github.com/users/ChaelKruip/followers","following_url":"https://api.github.com/users/ChaelKruip/following{/other_user}","gists_url":"https://api.github.com/users/ChaelKruip/gists{/gist_id}","starred_url":"https://api.github.com/users/ChaelKruip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChaelKruip/subscriptions","organizations_url":"https://api.github.com/users/ChaelKruip/orgs","repos_url":"https://api.github.com/users/ChaelKruip/repos","events_url":"https://api.github.com/users/ChaelKruip/events{/privacy}","received_events_url":"https://api.github.com/users/ChaelKruip/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":1,"state":"open","created_at":"2016-02-16T16:40:07Z","updated_at":"2016-02-17T15:42:25Z","due_on":"2016-02-25T23:00:00Z","closed_at":null},"comments":0,"created_at":"2016-02-17T15:42:24Z","updated_at":"2016-02-17T15:42:24Z","closed_at":null,"body":"This issue is just to clear up some confusion. \r\n\r\n## Capacities\r\n\r\nIn ETMoses, we have `capacity` and `carrier_capacity`. It is my understanding that these correspond to the ETE equivalents: `output_capacity` and `input_capacity`. The possible conversion loss of a technology that turns one carrier into another is given by\r\n```\r\nloss = 1 - efficiency\r\n```\r\nwhere the `efficiency` is defined as\r\n```\r\nefficiency = capacity/carrier_capacity\r\n```\r\n\r\n## performance_coefficient\r\n\r\nAs far as I understand this, the `performance_coefficient` in ETMoses equals the `coefficient_of_performance` in ETE which is 1.0 for all technologies except heat pumps. \r\n\r\nIn ETMoses it is used to translate between `capacity` and `carrier_capacity` as in\r\n```\r\ncarrier_capacity = capacity / performance_coefficient\r\n```\r\n\r\nI think this works correctly for heat pumps but results in `capacity` being (*wrongfully) equal to `carrier_capacity` in all other technologies.\r\n\r\n## What to do?\r\n\r\n@RobTerwel has researched which numbers would be correct as  `capacity` and `carrier_capacity`, taking into account conversion losses. Two notable exceptions are P2P (batteries) and EV which actually need to lose energy twice (both when *charging* and when *discharging*).\r\n\r\n@antw what do you think would be a good (temporary) way to initialise `capacity` and `carrier_capacity` in ETMoses?\r\n\r\nSome options that come to mind:\r\n* Add a column to the database with `carrier_capacity` (or `efficiency`) and initialise from there\r\n* Extend the ETE communication functions to import both 'input' and 'output' capacities"}}