{"action":"created","issue":{"url":"https://api.github.com/repos/WEC-Sim/WEC-Sim/issues/48","labels_url":"https://api.github.com/repos/WEC-Sim/WEC-Sim/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/WEC-Sim/WEC-Sim/issues/48/comments","events_url":"https://api.github.com/repos/WEC-Sim/WEC-Sim/issues/48/events","html_url":"https://github.com/WEC-Sim/WEC-Sim/issues/48","id":113133016,"number":48,"title":"Absorb Heave, Surge, and Pitch motion with an \"adjustable rod mechanical PTO\"","user":{"login":"ThommyBee","id":15223425,"avatar_url":"https://avatars.githubusercontent.com/u/15223425?v=3","gravatar_id":"","url":"https://api.github.com/users/ThommyBee","html_url":"https://github.com/ThommyBee","followers_url":"https://api.github.com/users/ThommyBee/followers","following_url":"https://api.github.com/users/ThommyBee/following{/other_user}","gists_url":"https://api.github.com/users/ThommyBee/gists{/gist_id}","starred_url":"https://api.github.com/users/ThommyBee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThommyBee/subscriptions","organizations_url":"https://api.github.com/users/ThommyBee/orgs","repos_url":"https://api.github.com/users/ThommyBee/repos","events_url":"https://api.github.com/users/ThommyBee/events{/privacy}","received_events_url":"https://api.github.com/users/ThommyBee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/WEC-Sim/WEC-Sim/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/WEC-Sim/WEC-Sim/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"cmichelen","id":5296181,"avatar_url":"https://avatars.githubusercontent.com/u/5296181?v=3","gravatar_id":"","url":"https://api.github.com/users/cmichelen","html_url":"https://github.com/cmichelen","followers_url":"https://api.github.com/users/cmichelen/followers","following_url":"https://api.github.com/users/cmichelen/following{/other_user}","gists_url":"https://api.github.com/users/cmichelen/gists{/gist_id}","starred_url":"https://api.github.com/users/cmichelen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmichelen/subscriptions","organizations_url":"https://api.github.com/users/cmichelen/orgs","repos_url":"https://api.github.com/users/cmichelen/repos","events_url":"https://api.github.com/users/cmichelen/events{/privacy}","received_events_url":"https://api.github.com/users/cmichelen/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-10-24T03:42:30Z","updated_at":"2015-11-02T23:36:20Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/WEC-Sim/WEC-Sim/issues/comments/153193378","html_url":"https://github.com/WEC-Sim/WEC-Sim/issues/48#issuecomment-153193378","issue_url":"https://api.github.com/repos/WEC-Sim/WEC-Sim/issues/48","id":153193378,"user":{"login":"cmichelen","id":5296181,"avatar_url":"https://avatars.githubusercontent.com/u/5296181?v=3","gravatar_id":"","url":"https://api.github.com/users/cmichelen","html_url":"https://github.com/cmichelen","followers_url":"https://api.github.com/users/cmichelen/followers","following_url":"https://api.github.com/users/cmichelen/following{/other_user}","gists_url":"https://api.github.com/users/cmichelen/gists{/gist_id}","starred_url":"https://api.github.com/users/cmichelen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmichelen/subscriptions","organizations_url":"https://api.github.com/users/cmichelen/orgs","repos_url":"https://api.github.com/users/cmichelen/repos","events_url":"https://api.github.com/users/cmichelen/events{/privacy}","received_events_url":"https://api.github.com/users/cmichelen/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T23:36:20Z","updated_at":"2015-11-02T23:36:20Z","body":"```matlab\r\n%% Simulation Data\r\nsimu = simulationClass();               \r\nsimu.simMechanicsFile = 'RM3.slx';      \r\nsimu.endTime=400;                       \r\nsimu.rampT = 100;                       \r\nsimu.b2b = 0;\r\n\r\n%% Wave Information\r\nwaves = waveClass('regular');        \r\nwaves.H = 5;                          \r\nwaves.T = 8;                            \r\n\r\n%% Body Data\r\nbody(1) = bodyClass('hydroData/rm3.h5',1);      \r\nbody(1).mass = 'equilibrium';                   \r\nbody(1).momOfInertia = [20907301 21306090.66 37085481.11]; \r\nbody(1).geometryFile = 'geometry/float.stl';\r\n\r\nbody(2) = bodyClass('hydroData/rm3.h5',2);\r\nbody(2).mass = 'equilibrium';                   \r\nbody(2).momOfInertia = [20907301 21306090.66 37085481.11]; \r\nbody(2).geometryFile = 'geometry/float.stl';\r\n\r\n%% Right PTO and Constraint Parameters\r\ntop = [10,0,0];\r\nbot = [20, 0, -10];\r\nmidx = top(1) + ((bot(1)-top(1))/2);\r\nmidz = top(3) + ((bot(3)-top(3))/2);\r\nang = 0;%-45*pi/180;\r\n%mid = [midx*cos(-ang)+midz*sin(-ang), 0, -midx*sin(-ang)+midz*cos(-ang)]; \r\nmid = [midx, 0, midz];\r\n\r\nconstraint(1) = constraintClass('BottomConstraintR')\r\nconstraint(1).loc = bot;\r\nconstraint(1).initDisp = ang;\r\n\r\nconstraint(2) = constraintClass('TopConstraintR')\r\nconstraint(2).loc = top;\r\nconstraint(2).initDisp = ang;\r\n\r\npto(1) = ptoClass('PTOR');                      \r\npto(1).k=0;  \r\npto(1).c=1200000;  \r\npto(1).loc = mid;  \r\n\r\n%% Left PTO and Constraint Parameters\r\ntop = [-10,0,0];\r\nbot = [-20, 0, -10];\r\nang = 0;%45*pi/180;\r\nmidx = top(1) + ((bot(1)-top(1))/2);\r\nmidz = top(3) + ((bot(3)-top(3))/2);\r\n%mid = [midx*cos(-ang)+midz*sin(-ang), 0, -midx*sin(-ang)+midz*cos(-ang)];\r\nmid = [midx, 0, midz];\r\n\r\nconstraint(3) = constraintClass('BottomConstraintL')\r\nconstraint(3).loc = bot;\r\nconstraint(3).initDisp = ang;\r\n\r\nconstraint(4) = constraintClass('TopConstraintL')\r\nconstraint(4).loc = top;\r\nconstraint(4).initDisp = ang;\r\n\r\npto(2) = ptoClass('PTOL');                      \r\npto(2).k=0;  \r\npto(2).c=1200000;  \r\npto(2).loc = mid;  \r\n\r\nclear top bot midx midz mid \r\n```"}}