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

@@ -54,6 +54,14 @@ QString UnitsSchemaCentimeters::schemaTranslate(const Base::Quantity& quant, dou
unitString = QString::fromLatin1("m^3");
factor = 1000000000.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();