Base: Add electromagnetic potential unit

This commit is contained in:
marioalexis
2024-12-09 13:56:38 -03:00
committed by Chris Hennes
parent 70ec5a7583
commit 51c0faff62
7 changed files with 38 additions and 0 deletions

View File

@@ -400,6 +400,10 @@ UnitsSchemaInternal::schemaTranslate(const Quantity& quant, double& factor, QStr
unitString = QString::fromLatin1("A/m");
factor = 1e-3;
}
else if (unit == Unit::ElectromagneticPotential) {
unitString = QString::fromLatin1("Wb/m");
factor = 1e3;
}
else if (unit == Unit::ElectricalConductance) {
if (UnitValue < 1e-9) {
unitString = QString::fromUtf8("\xC2\xB5S");