Skip to content

Commit

Permalink
Expose npts in solve to user
Browse files Browse the repository at this point in the history
  • Loading branch information
dingraha committed Jan 17, 2024
1 parent 50ba0be commit 6b0edb6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CCBlade.jl
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,12 @@ Solve the BEM equations for given rotor geometry and operating point.
- `rotor::Rotor`: rotor properties
- `section::Section`: section properties
- `op::OperatingPoint`: operating point
- `npts::Int = 10`: number of discretization points for `phi` state variable, used to find bracket for residual solve
**Returns**
- `outputs::Outputs`: BEM output data including loads, induction factors, etc.
"""
function solve(rotor, section, op)
function solve(rotor, section, op, npts=10)

# error handling
if typeof(section) <: AbstractVector
Expand All @@ -392,7 +393,7 @@ function solve(rotor, section, op)
end

# parameters
npts = 10 # number of discretization points to find bracket in residual solve
# npts = 10 # number of discretization points to find bracket in residual solve

# unpack
Vx = op.Vx
Expand Down

0 comments on commit 6b0edb6

Please sign in to comment.