Base: Units for FEM, new heat and heat flux functions

This commit is contained in:
vdwalts
2016-12-20 18:10:25 +01:00
committed by Yorik van Havre
parent 93b7aceb0e
commit 59ac40a584
7 changed files with 30 additions and 6 deletions

View File

@@ -155,6 +155,14 @@ QString UnitsSchemaInternal::schemaTranslate(const Quantity &quant, double &fact
factor = 0.001;
}
}
else if (unit == Unit::Power) {
unitString = QString::fromLatin1("W");
factor = 1000000;
}
else if (unit == Unit::HeatFlux) {
unitString = QString::fromLatin1("W/m^2");
factor = 1.0;
}
else {
// default action for all cases without special treatment:
unitString = quant.getUnit().getString();