Closed cmichelenstrofer closed 2 weeks ago
I gave this some thought. I think we shouldn't be comparing apples to apples. Instead we wanted to illustrate the optimal solution for different forms of power subject to slight constraints, which we do.
I would go even further and illustrate how to constrain the generator current instead of the linear PTO force for the second part of the tutorial (electrical power).
gen_current_max = 7.5
def const_f_pto(wec, x_wec, x_opt, waves):
current, _ = pto.power_variables(wec, x_wec, x_opt, waves, nsubsteps)
return gen_current_max - np.abs(current.flatten())
We can add an explanation that this approximately corresponds to a linear force constraint of f_max = gear_ratio*torque_constant*gen_current_max
and also state that the actual generator max current is 20A (if I recall correctly)
On the other hand, one might raise the question if this is what we want to illustrate and highlight...
Resolved in #339
@dtgaebe pointed out that in tutorial 1 we have the following discussion:
but the two cases have different force constraints, so we are not really comparing apples to apples.