[Core] add quantity Magnetization
- needed for FEM and Material
This commit is contained in:
@@ -1916,6 +1916,7 @@ void Application::initTypes()
|
||||
App::PropertyPressure ::init();
|
||||
App::PropertyCurrentDensity ::init();
|
||||
App::PropertyElectricPotential ::init();
|
||||
App::PropertyMagnetization ::init();
|
||||
App::PropertyVacuumPermittivity ::init();
|
||||
App::PropertyInteger ::init();
|
||||
App::PropertyIntegerConstraint ::init();
|
||||
|
||||
@@ -309,6 +309,17 @@ PropertyLength::PropertyLength()
|
||||
setConstraints(&LengthStandard);
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
//**************************************************************************
|
||||
// PropertyMagnetization
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
TYPESYSTEM_SOURCE(App::PropertyMagnetization, App::PropertyQuantity)
|
||||
|
||||
PropertyMagnetization::PropertyMagnetization()
|
||||
{
|
||||
setUnit(Base::Unit::Magnetization);
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
//**************************************************************************
|
||||
|
||||
@@ -237,6 +237,19 @@ public:
|
||||
~PropertyLength() override = default;
|
||||
};
|
||||
|
||||
/** Magnetization property
|
||||
* This is a property for representing magnetizations. It is basically a float
|
||||
* property. On the Gui it has a quantity like A/m.
|
||||
*/
|
||||
class AppExport PropertyMagnetization: public PropertyQuantityConstraint
|
||||
{
|
||||
TYPESYSTEM_HEADER_WITH_OVERRIDE();
|
||||
|
||||
public:
|
||||
PropertyMagnetization();
|
||||
~PropertyMagnetization() override = default;
|
||||
};
|
||||
|
||||
/** Pressure property
|
||||
* This is a property for representing acceleration. It is basically a float
|
||||
* property. On the Gui it has a quantity like m/s^2.
|
||||
|
||||
Reference in New Issue
Block a user