Skip to content
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

Added flag to ensure that we are first time-step when using mac velocity #889

Merged
merged 3 commits into from
Jul 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion amr-wind/wind_energy/actuator/Actuator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ void Actuator::update_positions()
m_container->update_positions();

// Sample velocities at the new locations
if (m_sample_nmhalf) {
if (m_sample_nmhalf &&
(m_sim.time().current_time() > m_sim.time().start_time())) {
// Avoid using mac velocities if at init or restart
const auto& umac = m_sim.repo().get_field("u_mac");
const auto& vmac = m_sim.repo().get_field("v_mac");
const auto& wmac = m_sim.repo().get_field("w_mac");
Expand Down
Loading