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

@@ -156,6 +156,14 @@ QString UnitsSchemaMKS::schemaTranslate(const Quantity &quant, double &factor, Q
unitString = QString::fromLatin1("W/m^2/K");
factor = 1.0;
}
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();