{"action":"created","comment":{"url":"https://api.github.com/repos/AeroPython/PyFME/pulls/comments/49274693","id":49274693,"diff_hunk":"@@ -0,0 +1,238 @@\n+# -*- coding: utf-8 -*-\n+\"\"\"\n+Created on Fri Jan  8 18:53:17 2016\n+\n+@author: Juan\n+\n+\"\"\"\n+\n+import numpy as np\n+from pyfme.utils.coordinates import wind2body\n+from pyfme.environment.isa import atm\n+\n+# Constants\n+mu = 1.983 * 10 ** -5  # kg/m/s\n+# Data tables\n+Re_list = [38000, 100000, 160000, 200000, 250000, 300000, 330000, 350000,","path":"src/pyfme/aircrafts/ball.py","position":16,"original_position":16,"commit_id":"5ea4166fb0f314f2b59d044c9778fcd847dd7512","original_commit_id":"5ea4166fb0f314f2b59d044c9778fcd847dd7512","user":{"login":"AlexS12","id":6061587,"avatar_url":"https://avatars.githubusercontent.com/u/6061587?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexS12","html_url":"https://github.com/AlexS12","followers_url":"https://api.github.com/users/AlexS12/followers","following_url":"https://api.github.com/users/AlexS12/following{/other_user}","gists_url":"https://api.github.com/users/AlexS12/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexS12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexS12/subscriptions","organizations_url":"https://api.github.com/users/AlexS12/orgs","repos_url":"https://api.github.com/users/AlexS12/repos","events_url":"https://api.github.com/users/AlexS12/events{/privacy}","received_events_url":"https://api.github.com/users/AlexS12/received_events","type":"User","site_admin":false},"body":"Yo almacenaría esta información en np.array, no en listas. En todo caso, mejor que una lista, que es mutable (puedes cambiar el valor del primer elemento, añadir nuevos, quitar...) usaría una tupla, que es inmutable.","created_at":"2016-01-10T11:34:52Z","updated_at":"2016-01-10T11:34:52Z","html_url":"https://github.com/AeroPython/PyFME/pull/28#discussion_r49274693","pull_request_url":"https://api.github.com/repos/AeroPython/PyFME/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/AeroPython/PyFME/pulls/comments/49274693"},"html":{"href":"https://github.com/AeroPython/PyFME/pull/28#discussion_r49274693"},"pull_request":{"href":"https://api.github.com/repos/AeroPython/PyFME/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/AeroPython/PyFME/pulls/28","id":55548884,"html_url":"https://github.com/AeroPython/PyFME/pull/28","diff_url":"https://github.com/AeroPython/PyFME/pull/28.diff","patch_url":"https://github.com/AeroPython/PyFME/pull/28.patch","issue_url":"https://api.github.com/repos/AeroPython/PyFME/issues/28","number":28,"state":"open","locked":false,"title":"Juan mat sa ball","user":{"login":"JuanMatSa","id":16115857,"avatar_url":"https://avatars.githubusercontent.com/u/16115857?v=3","gravatar_id":"","url":"https://api.github.com/users/JuanMatSa","html_url":"https://github.com/JuanMatSa","followers_url":"https://api.github.com/users/JuanMatSa/followers","following_url":"https://api.github.com/users/JuanMatSa/following{/other_user}","gists_url":"https://api.github.com/users/JuanMatSa/gists{/gist_id}","starred_url":"https://api.github.com/users/JuanMatSa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuanMatSa/subscriptions","organizations_url":"https://api.github.com/users/JuanMatSa/orgs","repos_url":"https://api.github.com/users/JuanMatSa/repos","events_url":"https://api.github.com/users/JuanMatSa/events{/privacy}","received_events_url":"https://api.github.com/users/JuanMatSa/received_events","type":"User","site_admin":false},"body":"Bueno, los test han pasado sin problemas =D\r\n\r\nPor favor, toda sugerencia, consejo... todo, decídmelo, no os cortéis =D\r\n\r\nHay cosas tipo: meter rugosidad a la pelota (y ver el efecto de los agujeritos en la pelota de golf retrasando el desprendimiento), permitir otras distribuciones más realistas de resistencia aerodinámica [1] en lugar de una bola lisa... pero bueno, dado que no queremos hacer un simulador de balones, creí que con un modelo valdría. \r\n\r\nLo que a lo mejor si que es interesante es ampliarlo metiendo una función de momentos que dependería de la fricción... (ahora mismo nunca dejaría de girar, parecería el balón de Oliver y Bengi)\r\n\r\nUn saludo!\r\n[1] \"Aerodynamic Drag of Contemporarty Soccer Balls\" F.Alam et all, 19th Australasian Fluid Mechanic Conference","created_at":"2016-01-09T19:19:08Z","updated_at":"2016-01-10T11:34:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ec292779438060e85ecb5b6491c8eddcbefa3f5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AeroPython/PyFME/pulls/28/commits","review_comments_url":"https://api.github.com/repos/AeroPython/PyFME/pulls/28/comments","review_comment_url":"https://api.github.com/repos/AeroPython/PyFME/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AeroPython/PyFME/issues/28/comments","statuses_url":"https://api.github.com/repos/AeroPython/PyFME/statuses/5ea4166fb0f314f2b59d044c9778fcd847dd7512","head":{"label":"JuanMatSa:JuanMatSa_ball","ref":"JuanMatSa_ball","sha":"5ea4166fb0f314f2b59d044c9778fcd847dd7512","user":{"login":"JuanMatSa","id":16115857,"avatar_url":"https://avatars.githubusercontent.com/u/16115857?v=3","gravatar_id":"","url":"https://api.github.com/users/JuanMatSa","html_url":"https://github.com/JuanMatSa","followers_url":"https://api.github.com/users/JuanMatSa/followers","following_url":"https://api.github.com/users/JuanMatSa/following{/other_user}","gists_url":"https://api.github.com/users/JuanMatSa/gists{/gist_id}","starred_url":"https://api.github.com/users/JuanMatSa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuanMatSa/subscriptions","organizations_url":"https://api.github.com/users/JuanMatSa/orgs","repos_url":"https://api.github.com/users/JuanMatSa/repos","events_url":"https://api.github.com/users/JuanMatSa/events{/privacy}","received_events_url":"https://api.github.com/users/JuanMatSa/received_events","type":"User","site_admin":false},"repo":{"id":48696840,"name":"PyFME","full_name":"JuanMatSa/PyFME","owner":{"login":"JuanMatSa","id":16115857,"avatar_url":"https://avatars.githubusercontent.com/u/16115857?v=3","gravatar_id":"","url":"https://api.github.com/users/JuanMatSa","html_url":"https://github.com/JuanMatSa","followers_url":"https://api.github.com/users/JuanMatSa/followers","following_url":"https://api.github.com/users/JuanMatSa/following{/other_user}","gists_url":"https://api.github.com/users/JuanMatSa/gists{/gist_id}","starred_url":"https://api.github.com/users/JuanMatSa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuanMatSa/subscriptions","organizations_url":"https://api.github.com/users/JuanMatSa/orgs","repos_url":"https://api.github.com/users/JuanMatSa/repos","events_url":"https://api.github.com/users/JuanMatSa/events{/privacy}","received_events_url":"https://api.github.com/users/JuanMatSa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JuanMatSa/PyFME","description":"Python Flight Mechanics Engine","fork":true,"url":"https://api.github.com/repos/JuanMatSa/PyFME","forks_url":"https://api.github.com/repos/JuanMatSa/PyFME/forks","keys_url":"https://api.github.com/repos/JuanMatSa/PyFME/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuanMatSa/PyFME/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuanMatSa/PyFME/teams","hooks_url":"https://api.github.com/repos/JuanMatSa/PyFME/hooks","issue_events_url":"https://api.github.com/repos/JuanMatSa/PyFME/issues/events{/number}","events_url":"https://api.github.com/repos/JuanMatSa/PyFME/events","assignees_url":"https://api.github.com/repos/JuanMatSa/PyFME/assignees{/user}","branches_url":"https://api.github.com/repos/JuanMatSa/PyFME/branches{/branch}","tags_url":"https://api.github.com/repos/JuanMatSa/PyFME/tags","blobs_url":"https://api.github.com/repos/JuanMatSa/PyFME/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuanMatSa/PyFME/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuanMatSa/PyFME/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuanMatSa/PyFME/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuanMatSa/PyFME/statuses/{sha}","languages_url":"https://api.github.com/repos/JuanMatSa/PyFME/languages","stargazers_url":"https://api.github.com/repos/JuanMatSa/PyFME/stargazers","contributors_url":"https://api.github.com/repos/JuanMatSa/PyFME/contributors","subscribers_url":"https://api.github.com/repos/JuanMatSa/PyFME/subscribers","subscription_url":"https://api.github.com/repos/JuanMatSa/PyFME/subscription","commits_url":"https://api.github.com/repos/JuanMatSa/PyFME/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuanMatSa/PyFME/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuanMatSa/PyFME/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuanMatSa/PyFME/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuanMatSa/PyFME/contents/{+path}","compare_url":"https://api.github.com/repos/JuanMatSa/PyFME/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuanMatSa/PyFME/merges","archive_url":"https://api.github.com/repos/JuanMatSa/PyFME/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuanMatSa/PyFME/downloads","issues_url":"https://api.github.com/repos/JuanMatSa/PyFME/issues{/number}","pulls_url":"https://api.github.com/repos/JuanMatSa/PyFME/pulls{/number}","milestones_url":"https://api.github.com/repos/JuanMatSa/PyFME/milestones{/number}","notifications_url":"https://api.github.com/repos/JuanMatSa/PyFME/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuanMatSa/PyFME/labels{/name}","releases_url":"https://api.github.com/repos/JuanMatSa/PyFME/releases{/id}","created_at":"2015-12-28T14:40:36Z","updated_at":"2015-12-28T14:40:37Z","pushed_at":"2016-01-09T18:58:57Z","git_url":"git://github.com/JuanMatSa/PyFME.git","ssh_url":"git@github.com:JuanMatSa/PyFME.git","clone_url":"https://github.com/JuanMatSa/PyFME.git","svn_url":"https://github.com/JuanMatSa/PyFME","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AeroPython:master","ref":"master","sha":"239943e489ad77cb48f32498876698d2228da11f","user":{"login":"AeroPython","id":6246900,"avatar_url":"https://avatars.githubusercontent.com/u/6246900?v=3","gravatar_id":"","url":"https://api.github.com/users/AeroPython","html_url":"https://github.com/AeroPython","followers_url":"https://api.github.com/users/AeroPython/followers","following_url":"https://api.github.com/users/AeroPython/following{/other_user}","gists_url":"https://api.github.com/users/AeroPython/gists{/gist_id}","starred_url":"https://api.github.com/users/AeroPython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AeroPython/subscriptions","organizations_url":"https://api.github.com/users/AeroPython/orgs","repos_url":"https://api.github.com/users/AeroPython/repos","events_url":"https://api.github.com/users/AeroPython/events{/privacy}","received_events_url":"https://api.github.com/users/AeroPython/received_events","type":"Organization","site_admin":false},"repo":{"id":42995365,"name":"PyFME","full_name":"AeroPython/PyFME","owner":{"login":"AeroPython","id":6246900,"avatar_url":"https://avatars.githubusercontent.com/u/6246900?v=3","gravatar_id":"","url":"https://api.github.com/users/AeroPython","html_url":"https://github.com/AeroPython","followers_url":"https://api.github.com/users/AeroPython/followers","following_url":"https://api.github.com/users/AeroPython/following{/other_user}","gists_url":"https://api.github.com/users/AeroPython/gists{/gist_id}","starred_url":"https://api.github.com/users/AeroPython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AeroPython/subscriptions","organizations_url":"https://api.github.com/users/AeroPython/orgs","repos_url":"https://api.github.com/users/AeroPython/repos","events_url":"https://api.github.com/users/AeroPython/events{/privacy}","received_events_url":"https://api.github.com/users/AeroPython/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AeroPython/PyFME","description":"Python Flight Mechanics Engine","fork":false,"url":"https://api.github.com/repos/AeroPython/PyFME","forks_url":"https://api.github.com/repos/AeroPython/PyFME/forks","keys_url":"https://api.github.com/repos/AeroPython/PyFME/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AeroPython/PyFME/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AeroPython/PyFME/teams","hooks_url":"https://api.github.com/repos/AeroPython/PyFME/hooks","issue_events_url":"https://api.github.com/repos/AeroPython/PyFME/issues/events{/number}","events_url":"https://api.github.com/repos/AeroPython/PyFME/events","assignees_url":"https://api.github.com/repos/AeroPython/PyFME/assignees{/user}","branches_url":"https://api.github.com/repos/AeroPython/PyFME/branches{/branch}","tags_url":"https://api.github.com/repos/AeroPython/PyFME/tags","blobs_url":"https://api.github.com/repos/AeroPython/PyFME/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AeroPython/PyFME/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AeroPython/PyFME/git/refs{/sha}","trees_url":"https://api.github.com/repos/AeroPython/PyFME/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AeroPython/PyFME/statuses/{sha}","languages_url":"https://api.github.com/repos/AeroPython/PyFME/languages","stargazers_url":"https://api.github.com/repos/AeroPython/PyFME/stargazers","contributors_url":"https://api.github.com/repos/AeroPython/PyFME/contributors","subscribers_url":"https://api.github.com/repos/AeroPython/PyFME/subscribers","subscription_url":"https://api.github.com/repos/AeroPython/PyFME/subscription","commits_url":"https://api.github.com/repos/AeroPython/PyFME/commits{/sha}","git_commits_url":"https://api.github.com/repos/AeroPython/PyFME/git/commits{/sha}","comments_url":"https://api.github.com/repos/AeroPython/PyFME/comments{/number}","issue_comment_url":"https://api.github.com/repos/AeroPython/PyFME/issues/comments{/number}","contents_url":"https://api.github.com/repos/AeroPython/PyFME/contents/{+path}","compare_url":"https://api.github.com/repos/AeroPython/PyFME/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AeroPython/PyFME/merges","archive_url":"https://api.github.com/repos/AeroPython/PyFME/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AeroPython/PyFME/downloads","issues_url":"https://api.github.com/repos/AeroPython/PyFME/issues{/number}","pulls_url":"https://api.github.com/repos/AeroPython/PyFME/pulls{/number}","milestones_url":"https://api.github.com/repos/AeroPython/PyFME/milestones{/number}","notifications_url":"https://api.github.com/repos/AeroPython/PyFME/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AeroPython/PyFME/labels{/name}","releases_url":"https://api.github.com/repos/AeroPython/PyFME/releases{/id}","created_at":"2015-09-23T10:47:58Z","updated_at":"2016-01-04T13:42:48Z","pushed_at":"2016-01-09T19:19:08Z","git_url":"git://github.com/AeroPython/PyFME.git","ssh_url":"git@github.com:AeroPython/PyFME.git","clone_url":"https://github.com/AeroPython/PyFME.git","svn_url":"https://github.com/AeroPython/PyFME","homepage":null,"size":33,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":17,"forks":5,"open_issues":17,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AeroPython/PyFME/pulls/28"},"html":{"href":"https://github.com/AeroPython/PyFME/pull/28"},"issue":{"href":"https://api.github.com/repos/AeroPython/PyFME/issues/28"},"comments":{"href":"https://api.github.com/repos/AeroPython/PyFME/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/AeroPython/PyFME/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/AeroPython/PyFME/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AeroPython/PyFME/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/AeroPython/PyFME/statuses/5ea4166fb0f314f2b59d044c9778fcd847dd7512"}}}}