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