-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turbine solver still isn't right #37
Comments
Finding the same here as @acse-ej321 - also many similar failures at other low resolutions. I suspect this is just caused by being completely under-resolved: at n=2 (as in the test) the mesh resolution dx=50 whereas the turbine diameter is D=16! In my experience you need at least dx=D/4 to get sensible and robust optimisation results for position even using a quadrature degree of 10. It might be that previously the "automatic" quadrature degree gave a much higher degree - i.e. something's changed in Firedrake's automatic estimate - so that you could get away with some coarser resolution. Currently it seems firedrake produces a quadrature of only degree=8 for the |
Good points, thanks @stephankramer. As mentioned on thetisproject/thetis#382, I've figured out how to set this example up with discrete turbines, so I'll rework the implementation here in the coming days. |
Closes #37. While #36 re-enables the turbines in the turbine example, there's still something not right because the optimisation progress is non-monotonic and the control turbine area occasionally goes to zero. I added a Taylor test and found that the gradient of the QoI wasn't being computed correctly with the existing setup. I tracked the problem down to the `turbine_density` expression, which includes several terms. By projecting this expression into $\mathbb{P}1_{DG}$ space, the Taylor test passed. In addition, this PR overhauls the plotting functionality.
While #36 re-enables the turbines in the
turbine
example, there's still something not right because the optimisation progress is non-monotonic and the control turbine area occasionally goes to zero.Originally posted by @acse-ej321 in #36 (review)
The text was updated successfully, but these errors were encountered: