Skip to content

Commit

Permalink
FEM: Update TaskFemConstraintHeatflux.cpp
Browse files Browse the repository at this point in the history
make emissivity unitless
  • Loading branch information
FEA-eng authored Apr 12, 2024
1 parent eabddf7 commit 60d94cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Fem/Gui/TaskFemConstraintHeatflux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ TaskFemConstraintHeatflux::TaskFemConstraintHeatflux(
Base::Quantity(pcConstraint->AmbientTemp.getValue(), Base::Unit::Temperature);
ui->if_ambienttemp->setValue(t);
Base::Quantity e = Base::Quantity(pcConstraint->Emissivity.getValue(),

Check warning on line 133 in src/Mod/Fem/Gui/TaskFemConstraintHeatflux.cpp

View workflow job for this annotation

GitHub Actions / Lint / Lint

variable name 'e' is too short, expected at least 2 characters [readability-identifier-length]
Base::Unit::ThermalTransferCoefficient);
Base::Unit());
ui->if_emissivity->setValue(e);
}
else if (constraint_type == "DFlux") {
Expand Down Expand Up @@ -233,7 +233,7 @@ void TaskFemConstraintHeatflux::Rad()
Base::Quantity t = Base::Quantity(300, Base::Unit::Temperature);
ui->if_ambienttemp->setValue(t);
pcConstraint->AmbientTemp.setValue(300);
Base::Quantity e = Base::Quantity(1, Base::Unit::ThermalTransferCoefficient);
Base::Quantity e = Base::Quantity(1, Base::Unit());
ui->if_emissivity->setValue(e);
pcConstraint->Emissivity.setValue(1);
ui->sw_heatflux->setCurrentIndex(1);
Expand Down Expand Up @@ -425,7 +425,7 @@ double TaskFemConstraintHeatflux::getEmissivity() const
{
Base::Quantity emissivity = ui->if_emissivity->getQuantity();
double emissivity_in_units =
emissivity.getValueAs(Base::Quantity(1.0, Base::Unit::ThermalTransferCoefficient));
emissivity.getValueAs(Base::Quantity(1.0, Base::Unit()));
return emissivity_in_units;
}

Expand Down

0 comments on commit 60d94cc

Please sign in to comment.