Commit
- fix message that permittivity object was not handled - set an expression, otherwise the user gets only "0.000" for the default of 8.8e-12 - use as unit the common "F/m" (this is also more user-friendly than "s^4*A^2 / (m^3*kg)") - fix a ToDo
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -435,6 +435,10 @@ QString UnitsSchemaInternal::schemaTranslate(const Quantity &quant, double &fact | |
factor = 1e6; | ||
} | ||
} | ||
else if (unit == Unit::VacuumPermittivity) { | ||
unitString = QString::fromLatin1("F/m"); | ||
factor = 1; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
wwmayer
Contributor
|
||
} | ||
else if (unit == Unit::Frequency) { | ||
if (UnitValue < 1e3) { | ||
unitString = QString::fromLatin1("Hz"); | ||
|
factor=1 is wrong, it must be 1e-9
F/m = A² * s⁴ / (kg * m³)
. Since 1m = 1000mm and mm is the internal unit for length we getF/m = A² * s⁴ / (kg * (1000 mm)³) = 1/1000³ * A² * s⁴ / (kg * mm³) = 10⁻⁹ * A² * s⁴ / (kg * mm³)