From 3b310cfdf2a496b6f404263319945a885f639bd9 Mon Sep 17 00:00:00 2001 From: luz paz Date: Wed, 6 Oct 2021 18:17:56 -0400 Subject: [PATCH] FEM: Fix variable pHeatTransfering -> pHeatTransferring Found via `codespell` --- .../Gui/TaskFemConstraintFluidBoundary.cpp | 22 +++++++++---------- .../Fem/Gui/TaskFemConstraintFluidBoundary.h | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp b/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp index b6f00406b3..2146270d2f 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp @@ -235,13 +235,13 @@ TaskFemConstraintFluidBoundary::TaskFemConstraintFluidBoundary(ViewProviderFemCo } } - pHeatTransfering = NULL; + pHeatTransferring = NULL; pTurbulenceModel = NULL; if (pcSolver != NULL) { //if only it is CFD solver, otherwise exit by SIGSEGV error, detect getPropertyByName() != NULL - if (pcSolver->getPropertyByName("HeatTransfering")) { - pHeatTransfering = static_cast(pcSolver->getPropertyByName("HeatTransfering")); - if (pHeatTransfering->getValue()) { + if (pcSolver->getPropertyByName("HeatTransferring")) { + pHeatTransferring = static_cast(pcSolver->getPropertyByName("HeatTransferring")); + if (pHeatTransferring->getValue()) { ui->tabThermalBoundary->setEnabled(true); initComboBox(ui->comboThermalBoundaryType, pcConstraint->ThermalBoundaryType.getEnumVector(), pcConstraint->ThermalBoundaryType.getValueAsString()); @@ -252,7 +252,7 @@ TaskFemConstraintFluidBoundary::TaskFemConstraintFluidBoundary(ViewProviderFemCo } else { ui->tabThermalBoundary->setEnabled(false); // could be hidden - //Base::Console().Message("retrieve solver property HeatTransfering as false\n"); + //Base::Console().Message("retrieve solver property HeatTransferring as false\n"); } } else { @@ -661,10 +661,10 @@ double TaskFemConstraintFluidBoundary::getTurbulentLengthValue(void) const return ui->spinTurbulentLengthValue->value(); } -bool TaskFemConstraintFluidBoundary::getHeatTransfering(void) const +bool TaskFemConstraintFluidBoundary::getHeatTransferring(void) const { - if(pHeatTransfering){ - return pHeatTransfering->getValue(); + if(pHeatTransferring){ + return pHeatTransferring->getValue(); } else{ return false; @@ -924,12 +924,12 @@ bool TaskDlgFemConstraintFluidBoundary::accept() const Fem::FemSolverObject* pcSolver = boundary->getFemSolver(); if (pcSolver) { - App::PropertyBool* pHeatTransfering = NULL; + App::PropertyBool* pHeatTransferring = NULL; App::PropertyEnumeration* pTurbulenceModel = NULL; - pHeatTransfering = static_cast(pcSolver->getPropertyByName("HeatTransfering")); + pHeatTransferring = static_cast(pcSolver->getPropertyByName("HeatTransferring")); pTurbulenceModel = static_cast(pcSolver->getPropertyByName("TurbulenceModel")); - if (pHeatTransfering && pHeatTransfering->getValue()) { + if (pHeatTransferring && pHeatTransferring->getValue()) { Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.ThermalBoundaryType = '%s'",name.c_str(), boundary->getThermalBoundaryType().c_str()); Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.TemperatureValue = %f",name.c_str(), boundary->getTemperatureValue()); Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.HeatFluxValue = %f",name.c_str(), boundary->getHeatFluxValue()); diff --git a/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.h b/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.h index 88928454b4..d388a92954 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.h +++ b/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.h @@ -66,7 +66,7 @@ public: double getTurbulentIntensityValue(void) const; double getTurbulentLengthValue(void) const; - bool getHeatTransfering(void) const; + bool getHeatTransferring(void) const; std::string getThermalBoundaryType(void) const; double getTemperatureValue(void) const; double getHeatFluxValue(void) const; @@ -104,7 +104,7 @@ private: Ui_TaskFemConstraintFluidBoundary* ui; int dimension; // -1: unknown, 2 for 2D and 3 for 3D Fem::FemSolverObject* pcSolver; - App::PropertyBool* pHeatTransfering; + App::PropertyBool* pHeatTransferring; App::PropertyEnumeration* pTurbulenceModel; };