Skip to content
Snippets Groups Projects
Commit 4ad65166 authored by Rakotondratsimba Lyraie's avatar Rakotondratsimba Lyraie
Browse files

style: fix minor style details

parent 8ed94096
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,7 @@ classdef ElemPerf < handle ...@@ -96,7 +96,7 @@ classdef ElemPerf < handle
% Cache for dependent properties to avoid excessive recalculation % Cache for dependent properties to avoid excessive recalculation
properties (Access = private, Hidden) properties (Access = private, Hidden)
alpha_ (1, :) double % Angle of attack, [rad] alpha_ (1, :) double % Angle of attack, [rad]
reynolds_ (1, :) double % Reynolds number, [-] reynolds_ (1, :) double % Reynolds number, [-]
indVelAx_ (1, :) double % Induced axial velocity at rotor disk, [m/s] indVelAx_ (1, :) double % Induced axial velocity at rotor disk, [m/s]
indVelTg_ (1, :) double % Induced tangential velocity at rotor disk, [m/s] indVelTg_ (1, :) double % Induced tangential velocity at rotor disk, [m/s]
inflowRat_ (1, :) double % Inflow ratio, [-] inflowRat_ (1, :) double % Inflow ratio, [-]
...@@ -160,9 +160,8 @@ classdef ElemPerf < handle ...@@ -160,9 +160,8 @@ classdef ElemPerf < handle
end end
function reynolds = get.reynolds(self) function reynolds = get.reynolds(self)
% if true reynolds is unknown, we use an approximated value % If Reynolds in unknown, we use an approximate solution
% with the upstream velocity instead of relative velocity at % neglecting induced velocities.
% the rotor disk
if isempty(self.reynolds_) if isempty(self.reynolds_)
relVel = sqrt(self.tgSpeed.^2 + self.upstreamVelAx.^2); relVel = sqrt(self.tgSpeed.^2 + self.upstreamVelAx.^2);
reynolds = Flow.reynolds(relVel, Rot.Bl.chord, Op.Flow.mu, Op.Flow.rho); reynolds = Flow.reynolds(relVel, Rot.Bl.chord, Op.Flow.mu, Op.Flow.rho);
...@@ -207,7 +206,6 @@ classdef ElemPerf < handle ...@@ -207,7 +206,6 @@ classdef ElemPerf < handle
end end
function set.reynolds(self, val) function set.reynolds(self, val)
% Cache value
self.reynolds_ = val; self.reynolds_ = val;
end 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