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 f24d24c9ac
commit aaa976953d
7 changed files with 37 additions and 1 deletions

View File

@@ -312,6 +312,10 @@ UnitsSchemaMKS::schemaTranslate(const Quantity& quant, double& factor, std::stri
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";