From c70c279eb6901edc4466d6f96f10e522ca6b62f9 Mon Sep 17 00:00:00 2001 From: Michael B Kuhn <31661049+mbkuhn@users.noreply.github.com> Date: Wed, 8 May 2024 15:08:29 -0600 Subject: [PATCH] give actuator src a ghost cell and populate it (interior) for the sake of sampling (#1036) --- amr-wind/wind_energy/actuator/Actuator.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/amr-wind/wind_energy/actuator/Actuator.cpp b/amr-wind/wind_energy/actuator/Actuator.cpp index 8c534b10a9..d09c664ed1 100644 --- a/amr-wind/wind_energy/actuator/Actuator.cpp +++ b/amr-wind/wind_energy/actuator/Actuator.cpp @@ -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; @@ -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()); } }