{"action":"created","issue":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/692","repository_url":"https://api.github.com/repos/tbeu/Modelica","labels_url":"https://api.github.com/repos/tbeu/Modelica/issues/692/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/Modelica/issues/692/comments","events_url":"https://api.github.com/repos/tbeu/Modelica/issues/692/events","html_url":"https://github.com/tbeu/Modelica/issues/692","id":197020352,"number":692,"title":"Global integer constant for thermal conductivity calculation method in gas media","user":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"labels":[{"id":504692712,"url":"https://api.github.com/repos/tbeu/Modelica/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":504700643,"url":"https://api.github.com/repos/tbeu/Modelica/labels/Media","name":"Media","color":"0000aa","default":false}],"state":"open","locked":false,"assignee":{"login":"beutlich","id":14896695,"avatar_url":"https://avatars.githubusercontent.com/u/14896695?v=3","gravatar_id":"","url":"https://api.github.com/users/beutlich","html_url":"https://github.com/beutlich","followers_url":"https://api.github.com/users/beutlich/followers","following_url":"https://api.github.com/users/beutlich/following{/other_user}","gists_url":"https://api.github.com/users/beutlich/gists{/gist_id}","starred_url":"https://api.github.com/users/beutlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beutlich/subscriptions","organizations_url":"https://api.github.com/users/beutlich/orgs","repos_url":"https://api.github.com/users/beutlich/repos","events_url":"https://api.github.com/users/beutlich/events{/privacy}","received_events_url":"https://api.github.com/users/beutlich/received_events","type":"User","site_admin":false},"assignees":[{"login":"beutlich","id":14896695,"avatar_url":"https://avatars.githubusercontent.com/u/14896695?v=3","gravatar_id":"","url":"https://api.github.com/users/beutlich","html_url":"https://github.com/beutlich","followers_url":"https://api.github.com/users/beutlich/followers","following_url":"https://api.github.com/users/beutlich/following{/other_user}","gists_url":"https://api.github.com/users/beutlich/gists{/gist_id}","starred_url":"https://api.github.com/users/beutlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beutlich/subscriptions","organizations_url":"https://api.github.com/users/beutlich/orgs","repos_url":"https://api.github.com/users/beutlich/repos","events_url":"https://api.github.com/users/beutlich/events{/privacy}","received_events_url":"https://api.github.com/users/beutlich/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-12-21T20:02:29Z","updated_at":"2016-12-21T20:02:38Z","closed_at":null,"body":"**Reported by julien&#46;bonifay&#x40;siemens&#46;com on 24 Jan 2012 13:06 UTC**\nThe thermalConductivities functions in Media.IdealGases offer to the users to choose between two methods of calculation (Eucken method or modified Eucken method) by the mean of a second function input. However the need to write a second input makes the model using this function not compatible anymore with other media.\n\nIn some temperature regions as we have for example most of the time in power plant simulation, the thermal conductivity for gas medium is largely more accurate with the modified Eucken than the ordinary Eucken method. As the default method in the thermalConductivity function is 1 (ordinary Eucken) it’s thus needed to call the function with 2 (modified Eucken) as input for the method. The model using this function cannot then be used anymore with a water medium.\n\nAn enhancement of that would be to have a global integer constant in the ideal gas common packages and use it as default method in thermalConductivity functions.\n\nFor example in package Common.MixtureGasNasa:\n\n Constant Integer methodForThermalConductivity=1\n\n redeclare replaceable function extends thermalConductivity \n\n  input Integer method= methodForThermalConductivity \"method to compute single component thermal conductivity\";\n protected \n …\n end thermalConductivity;\n \nThe user can then easily set the default calculation method for his medium and call the function without the need of a second input so that the model can still be used with other media.\n\n\n----\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/692"},"comment":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/comments/268624762","html_url":"https://github.com/tbeu/Modelica/issues/692#issuecomment-268624762","issue_url":"https://api.github.com/repos/tbeu/Modelica/issues/692","id":268624762,"user":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T20:02:38Z","updated_at":"2016-12-21T20:02:38Z","body":"**Comment by hubertus on 24 Jan 2012 13:50 UTC**\nThat is a good idea. I will look at this even in the current Modelica.Media"}}
{"actor":{"display_login":"modelica-trac-importer"}}