Base: Add surface charge density unit
This commit is contained in:
committed by
marioalexis
parent
f24d24c9ac
commit
aaa976953d
@@ -2060,6 +2060,7 @@ void Application::initTypes()
|
||||
App::PropertyElectricalInductance ::init();
|
||||
App::PropertyElectricalResistance ::init();
|
||||
App::PropertyElectricCharge ::init();
|
||||
App::PropertySurfaceChargeDensity ::init();
|
||||
App::PropertyElectricCurrent ::init();
|
||||
App::PropertyElectricPotential ::init();
|
||||
App::PropertyElectromagneticPotential ::init();
|
||||
|
||||
@@ -392,6 +392,17 @@ PropertyElectricCharge::PropertyElectricCharge()
|
||||
setUnit(Base::Unit::ElectricCharge);
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
// PropertySurfaceChargeDensity
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
TYPESYSTEM_SOURCE(App::PropertySurfaceChargeDensity, App::PropertyQuantity)
|
||||
|
||||
PropertySurfaceChargeDensity::PropertySurfaceChargeDensity()
|
||||
{
|
||||
setUnit(Base::Unit::SurfaceChargeDensity);
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
// PropertyElectricCurrent
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
@@ -361,6 +361,19 @@ public:
|
||||
~PropertyElectricCharge() override = default;
|
||||
};
|
||||
|
||||
/** SurfaceChargeDensity property
|
||||
* This is a property for representing surface charge density. It is basically a float
|
||||
* property. On the Gui it has a quantity like C/m^2.
|
||||
*/
|
||||
class AppExport PropertySurfaceChargeDensity: public PropertyQuantity
|
||||
{
|
||||
TYPESYSTEM_HEADER_WITH_OVERRIDE();
|
||||
|
||||
public:
|
||||
PropertySurfaceChargeDensity();
|
||||
~PropertySurfaceChargeDensity() override = default;
|
||||
};
|
||||
|
||||
/** ElectricCurrent property
|
||||
* This is a property for representing electric currents. It is basically a
|
||||
* float property. On the Gui it has a quantity like A.
|
||||
|
||||
Reference in New Issue
Block a user