{"action":"opened","issue":{"url":"https://api.github.com/repos/grinsfem/grins/issues/290","labels_url":"https://api.github.com/repos/grinsfem/grins/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/grinsfem/grins/issues/290/comments","events_url":"https://api.github.com/repos/grinsfem/grins/issues/290/events","html_url":"https://github.com/grinsfem/grins/issues/290","id":82016084,"number":290,"title":"Torque postprocessing","user":{"login":"nicholasmalaya","id":1015304,"avatar_url":"https://avatars.githubusercontent.com/u/1015304?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholasmalaya","html_url":"https://github.com/nicholasmalaya","followers_url":"https://api.github.com/users/nicholasmalaya/followers","following_url":"https://api.github.com/users/nicholasmalaya/following{/other_user}","gists_url":"https://api.github.com/users/nicholasmalaya/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasmalaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasmalaya/subscriptions","organizations_url":"https://api.github.com/users/nicholasmalaya/orgs","repos_url":"https://api.github.com/users/nicholasmalaya/repos","events_url":"https://api.github.com/users/nicholasmalaya/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasmalaya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-28T16:31:40Z","updated_at":"2015-05-28T16:31:40Z","closed_at":null,"body":"Now that we are investigating the fan (averagedfan) and turbine capability, it would be great to be able to calculate the torque on the turbine from the fluid so we can see how much energy we are getting out. Adding this capability to GRINS (I believe) should not be too bad. \r\n\r\nRoy mentioned that the torque is already calculated as part of the calculation of the instantiated turbine code. @roystgnr could you point me to the calculation of the torque for the residual calculation?\r\n\r\n1) Looking at inc_navier_stokes.C, I believe we need to add to the 'register_postprocessing_vars' function for the name of the output quantity, and register this. \r\n\r\n2) in 'compute_postprocessed_quantity' we check if the index corresponds to the one we grabbed for the new quantity and then compute it (this is where I hope we would plug and play roys work)\r\n\r\n\r\n\r\n"}}