Skip to content
Snippets Groups Projects
Verified Commit 232aaebd authored by Thomas Lambert's avatar Thomas Lambert :helicopter:
Browse files

fix(Rotor): allow position modification

parent b709e6a9
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ classdef Rotor < handle
methods
function self = Rotor(nBlades, Af, rad, chord, twist, iAf, nElem, name)
function self = Rotor(nBlades, Af, rad, chord, twist, iAf, nElem, position, name)
% ROTOR Constructor.
% Constructs the object, stores the handle of the airfoil used and creates the blade
% object to represent the elements. See main class help for details.
......@@ -99,7 +99,10 @@ classdef Rotor < handle
if nargin > 0
self.nBlades = nBlades;
if nargin == 8
if nargin >= 8
self.position = position;
end
if nargin == 9
self.name = name;
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment