Base: Add electromagnetic potential unit
This commit is contained in:
committed by
Chris Hennes
parent
fe57e3176d
commit
7550d54a01
@@ -2060,6 +2060,7 @@ void Application::initTypes()
|
||||
App::PropertyElectricCharge ::init();
|
||||
App::PropertyElectricCurrent ::init();
|
||||
App::PropertyElectricPotential ::init();
|
||||
App::PropertyElectromagneticPotential ::init();
|
||||
App::PropertyFrequency ::init();
|
||||
App::PropertyForce ::init();
|
||||
App::PropertyHeatFlux ::init();
|
||||
|
||||
@@ -554,6 +554,17 @@ PropertyMagnetization::PropertyMagnetization()
|
||||
setUnit(Base::Unit::Magnetization);
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
// PropertyElectromagneticPotential
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
TYPESYSTEM_SOURCE(App::PropertyElectromagneticPotential, App::PropertyQuantity)
|
||||
|
||||
PropertyElectromagneticPotential::PropertyElectromagneticPotential()
|
||||
{
|
||||
setUnit(Base::Unit::ElectromagneticPotential);
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
// PropertyMass
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
@@ -546,6 +546,19 @@ public:
|
||||
~PropertyMagnetization() override = default;
|
||||
};
|
||||
|
||||
/** ElectromagneticPotential property
|
||||
* This is a property for representing electromagnetic potentials. It is basically a float
|
||||
* property. On the Gui it has a quantity like Wb/m.
|
||||
*/
|
||||
class AppExport PropertyElectromagneticPotential: public PropertyQuantity
|
||||
{
|
||||
TYPESYSTEM_HEADER_WITH_OVERRIDE();
|
||||
|
||||
public:
|
||||
PropertyElectromagneticPotential();
|
||||
~PropertyElectromagneticPotential() override = default;
|
||||
};
|
||||
|
||||
/** Mass property
|
||||
* This is a property for representing mass. It is basically a float
|
||||
* property. On the Gui it has a quantity like kg.
|
||||
|
||||
Reference in New Issue
Block a user