-
Notifications
You must be signed in to change notification settings - Fork 83
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
Forest Canopy Model #1324
base: main
Are you sure you want to change the base?
Forest Canopy Model #1324
Conversation
|
||
namespace amr_wind::pde::icns { | ||
|
||
/** Adds the forcing term to include the presence of immersed boundary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of date comment
Co-authored-by: Marc T. Henry de Frahan <[email protected]>
Co-authored-by: Marc T. Henry de Frahan <[email protected]>
@hgopalan sorry this slipped off my radar. Can you remind me where we are at? |
You wanted to discuss with me about the multiple for loops and may be come up with a better way to do it. Rest of issues are sorted. |
After chatting with @hgopalan: he will remove the n_cells x n_forest loop with a bounding box for the forest. The other thing I would recommend is to create a
|
Code has been updated with rearrangement. @marchdf I have not added bounding box since I wanted a circular search. Will it be possible to define a cylinder for contains? |
Just make a bounding box wherein the cylinder fits. It's fine if the bounding box technically has more volume than the cylinder it contains. |
Ok I am done with all my changes. There's a last bit that's bothering me (the if condtion on the type in the Tagging some others (@moprak-nrel and @mbkuhn) on the PR review since I am now a major author ;) Tests pass on CPU and GPU. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking with a change request until others have been able to look.
This PR provides a forest canopy model in AMR-Wind. Two kinds of forests are supported: (i) homogeneous forest and (ii) heterogeneous forest using an empirical model for leaf area density.
Forest overlap is allowed and is not checked. It is expected that the users provide accurate inputs and currently no checking is included. The model requires following inputs from the user: (i) tree type (ii) tree center x (iii) tree center y (iv) tree height (v) tree girth preferably at the widest point (vi) tree drag coefficient (vii) tree leaf area index (viii) location of maximum leaf area density for heterogeneous forests.
The model will work with any LES model as the drag forcing due to the turbulence is required only in momentum equation. It is also possible to include a turbulence forcing term in one equation kegs model.
The model will be extended to the one-equation RANS model in a future PR by including the turbulence contribution.
Please check the type of change introduced:
Checklist
The following is included:
This PR was tested by running:
Issue Number: #1322