-
Notifications
You must be signed in to change notification settings - Fork 99
Free-Atmosphere Damping for ABLForcing #1728
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
base: main
Are you sure you want to change the base?
Conversation
… drive surface heat flux.
… wind vector damper for use with ABLForcing.
…tuff about calculating surface heat flux from temperature.
ifh.ignore( | ||
std::numeric_limits<std::streamsize>::max(), '\n'); |
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.
These code lines are here to skip the header line in the data file. This ignore statement needs to be first, prior to the loop.
ifh.ignore( | ||
std::numeric_limits<std::streamsize>::max(), '\n'); |
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.
These code lines are here to skip the header line in the data file. This ignore statement needs to be first, prior to the loop.
while (ifh >> data_time >> data_value) { | ||
m_nearsurf_temp_time.push_back(data_time); | ||
m_nearsurf_temp_value.push_back(data_value); | ||
ifh.ignore(std::numeric_limits<std::streamsize>::max(), '\n'); |
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.
This code line is here to skip the header line in the data file. This ignore statement needs to be first, prior to the loop.
flux = 0.0012 * wspd_mean * (theta_surface - theta_mean); | ||
break; | ||
case amr_wind::MOData::ThetaCalcType::NEAR_SURFACE_TEMPERATURE: | ||
amrex::Print() << "To be implemented..." << std::endl; |
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.
this print statement is causing the GPU-related checks to fail. No worries for now!
Summary
Added functionality to ABLForcing to damp the free atmosphere wind back toward the geostrophic wind that the ABLForcing converges upon.
Pull request type
Draft
Please check the type of change introduced:
Checklist
The following is included:
This PR was tested by running:
Additional background
Issue Number: