Skip to content

Commit

Permalink
give actuator src a ghost cell and populate it (interior) for the sak…
Browse files Browse the repository at this point in the history
…e of sampling (#1036)
  • Loading branch information
mbkuhn authored May 8, 2024
1 parent 8aa8ee2 commit c70c279
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion amr-wind/wind_energy/actuator/Actuator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
namespace amr_wind::actuator {

Actuator::Actuator(CFDSim& sim)
: m_sim(sim), m_act_source(sim.repo().declare_field("actuator_src_term", 3))
: m_sim(sim)
, m_act_source(sim.repo().declare_field("actuator_src_term", 3, 1))
{}

Actuator::~Actuator() = default;
Expand Down Expand Up @@ -244,6 +245,10 @@ void Actuator::compute_source_term()
}
}
}

// Ensure actuator src fills ghost cells prior to use (post-processing)
// Just need the interior velocity ghost cells updated
sfab.FillBoundary(geom.periodicity());
}
}

Expand Down

0 comments on commit c70c279

Please sign in to comment.