FEM: Fix variable pHeatTransfering -> pHeatTransferring

Found via `codespell`
This commit is contained in:
luz paz
2021-10-06 18:17:56 -04:00
committed by Bernd Hahnebach
parent 5c59b8e050
commit ace0d32647
2 changed files with 13 additions and 13 deletions

View File

@@ -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<App::PropertyBool*>(pcSolver->getPropertyByName("HeatTransfering"));
if (pHeatTransfering->getValue()) {
if (pcSolver->getPropertyByName("HeatTransferring")) {
pHeatTransferring = static_cast<App::PropertyBool*>(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<App::PropertyBool*>(pcSolver->getPropertyByName("HeatTransfering"));
pHeatTransferring = static_cast<App::PropertyBool*>(pcSolver->getPropertyByName("HeatTransferring"));
pTurbulenceModel = static_cast<App::PropertyEnumeration*>(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());

View File

@@ -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;
};