Skip to content

Commit

Permalink
actual fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf committed Sep 26, 2024
1 parent 9a23832 commit 3cd2e6c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 4 additions & 2 deletions include/aero/actuator/ActuatorBulkFAST.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
namespace sierra {
namespace nalu {

struct ActuatorMetaFAST : public ActuatorMeta
struct
ActuatorMetaFAST : public ActuatorMeta
{
ActuatorMetaFAST(const ActuatorMeta& actMeta);

// HOST ONLY
void set_dt_driver(const double dt){fastInputs_.dtDriver=dt;}
fast::fastInputs fastInputs_;
std::vector<std::string> turbineNames_;
std::vector<std::string> turbineOutputFileNames_;
Expand All @@ -42,7 +44,7 @@ struct ActuatorMetaFAST : public ActuatorMeta

struct ActuatorBulkFAST : public ActuatorBulk
{
ActuatorBulkFAST(const ActuatorMetaFAST& actMeta, double naluTimeStep);
ActuatorBulkFAST(ActuatorMetaFAST& actMeta, double naluTimeStep);

Kokkos::RangePolicy<Kokkos::DefaultHostExecutionSpace> local_range_policy();

Expand Down
1 change: 1 addition & 0 deletions src/aero/actuator/ActuatorBulkDiskFAST.C
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ ActuatorBulkDiskFAST::ActuatorBulkDiskFAST(
{

STK_ThrowErrorIf(!actMeta.is_disk());
actMeta.set_dt_driver(naluTimeStep);
compute_swept_point_count(actMeta);
resize_arrays(actMeta);
Kokkos::parallel_for(
Expand Down
3 changes: 2 additions & 1 deletion src/aero/actuator/ActuatorBulkFAST.C
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ActuatorMetaFAST::is_disk()
}

ActuatorBulkFAST::ActuatorBulkFAST(
const ActuatorMetaFAST& actMeta, double naluTimeStep)
ActuatorMetaFAST& actMeta, double naluTimeStep)
: ActuatorBulk(actMeta),
turbineThrust_("turbineThrust", actMeta.numberOfActuators_),
turbineTorque_("turbineTorque", actMeta.numberOfActuators_),
Expand All @@ -55,6 +55,7 @@ ActuatorBulkFAST::ActuatorBulkFAST(
actMeta.isotropicGaussian_ ? 0 : actMeta.numPointsTotal_),
tStepRatio_(std::round(naluTimeStep / actMeta.fastInputs_.dtFAST))
{
actMeta.set_dt_driver(naluTimeStep);
init_openfast(actMeta, naluTimeStep);
init_epsilon(actMeta);
RunActFastUpdatePoints(*this);
Expand Down
3 changes: 0 additions & 3 deletions src/aero/actuator/ActuatorParsingFAST.C
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,6 @@ actuator_FAST_parse(const YAML::Node& y_node, const ActuatorMeta& actMeta)
get_required(y_actuator, "n_every_checkpoint", *restartFreq);
get_required(y_actuator, "dt_fast", fi.dtFAST);

// FIXME this needs to be defined. No idea how
fi.dtDriver = 0.0625;

get_required(y_actuator, "t_max", fi.tMax);

if (y_actuator["super_controller"]) {
Expand Down

0 comments on commit 3cd2e6c

Please sign in to comment.