Base: Add surface charge density unit

This commit is contained in:
André Kapelrud
2025-01-06 13:02:10 -03:00
committed by marioalexis
parent b990fb129e
commit 39a5fdc315
7 changed files with 37 additions and 1 deletions

View File

@@ -364,6 +364,10 @@ UnitsSchemaInternal::schemaTranslate(const Quantity& quant, double& factor, std:
unitString = "C";
factor = 1.0;
}
else if (unit == Unit::SurfaceChargeDensity) {
unitString = "C/m^2";
factor = 1e-6;
}
else if (unit == Unit::CurrentDensity) {
if (UnitValue <= 1e3) {
unitString = "A/m^2";