Skip to content

Commit

Permalink
Merge pull request #31 from amtnz/master
Browse files Browse the repository at this point in the history
Minor syntax modifications
  • Loading branch information
Kiran Ramesh authored Feb 13, 2019
2 parents fb771d4 + 3e3ebb7 commit f64104d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/lowOrder2D/calcs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,6 @@ function update_bv(surf::TwoDSurf)
gamma[ib] = gamma[ib]*surf.uref*surf.c
end



for ib = 2:surf.ndiv
surf.bv[ib-1].s = (gamma[ib]+gamma[ib-1])*(surf.theta[2]-surf.theta[1])/2.
surf.bv[ib-1].x = (surf.bnd_x[ib] + surf.bnd_x[ib-1])/2.
Expand Down
2 changes: 1 addition & 1 deletion src/lowOrder2D/solvers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function ldvm(surf::TwoDSurf, curfield::TwoDFlowField, nsteps::Int64 = 500, dtst
lesp = surf.a0[1]

#Check for LESP condition
if (abs(lesp)>surf.lespcrit[1])
if abs(lesp)>surf.lespcrit[1]
#2D iteration if LESP_crit is exceeded

#Add a LEV with dummy strength
Expand Down
3 changes: 1 addition & 2 deletions src/lowOrder2D/typedefs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,10 @@ struct TwoDSurf
if (typeof(kindef.h) == EldUpDef)
kinem.h = kindef.h(0.)*c
kinem.hdot = ForwardDiff.derivative(kindef.h,0.)*uref
elseif (typeof(kindef.h) == EldUpIntDef)
elseif (typeof(kindef.h) == EldUpIntDef)
kinem.h = kindef.h(0.)*c
kinem.hdot = ForwardDiff.derivative(kindef.h,0.)*uref
elseif (typeof(kindef.h) == EldRampReturnDef)

kinem.h= kindef.h(0.)*c
kinem.hdot = ForwardDiff.derivative(kindef.h,0.)*uref
elseif (typeof(kindef.h) == ConstDef)
Expand Down
2 changes: 0 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ function camber_calc(x::Vector,airfoil::String)
ndiv = length(x);
c = x[ndiv];


cam = zeros(ndiv)
cam_slope = zeros(ndiv)
in_air = DelimitedFiles.readdlm(airfoil, Float64);
Expand All @@ -113,7 +112,6 @@ function camber_calc(x::Vector,airfoil::String)
ncoord = length(xcoord);
xcoord_sum = zeros(ncoord);

xcoord_sum[1] = 0;
for i = 1:ncoord-1
xcoord_sum[i+1] = xcoord_sum[i] + abs(xcoord[i+1]-xcoord[i]);
end
Expand Down

0 comments on commit f64104d

Please sign in to comment.