Skip to content

ld/add Jensen and TurbOPark wake models#29

Open
lynna-deng wants to merge 11 commits intomainfrom
add-jensen
Open

ld/add Jensen and TurbOPark wake models#29
lynna-deng wants to merge 11 commits intomainfrom
add-jensen

Conversation

@lynna-deng
Copy link
Copy Markdown

  • Request a review from other Howland Lab members who use MITWindFarm.
  • Add at least a sentence on your change to the documentation (probably the quickstart guide).
  • Add tests for your new functionality.
  • Make sure the tests pass and the documentation notebook still runs.
  • Get approval from the folks you requested a review from.

If you want more details on best practices, please see the following guide on the Howland Lab Google Drive.

Happy merging!


This adds the Jensen (Jensen 1983), Gaussian TurbOPark (Pedersen 2022), and top-hat TurbOPark (Nygaard 2020) wake models. The outputs of these models have been validated against results from NREL's FLORIS package and from Stieren and Stevens 2016.

I'm not sure what the best approach for adding tests of wake models would be (validation plots?), so I'd love to hear any feedback!

Copy link
Copy Markdown
Contributor

@iupfal iupfal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work overall! The code is clear, neat and consistent with the package overall. I added a few minor comments to address. Also, if you could either add your verification plots to the pull request or just send them in a slack group with Kirby, Skylar and I that would be great.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add "JensenWakeModel, TurbOParkWakeModel" to the "from mitwindfarm import..." line

Comment thread mitwindfarm/Wake.py

return _gaussian * np.nan_to_num(WATI)

# [***FLAG***] Is this same model by Niayifar and Porte Agel applicable for TurbOPark?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the wake-added turbulence model you used for your verification with the paper? Ideally, we should use exactly the same equations used in the original paper to model wake added TI.

def __call__(self, base_windfield: Windfield, wakes: list[Wake]) -> Windfield:
return Superimposed(base_windfield, wakes, method="dominant")

class NQuadratic(Superposition):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could use "NiayifarQuadratic" just to make the name more clear? Up to you, just an idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants