[Core] add quantity Magnetization

- needed for FEM and Material
This commit is contained in:
Uwe
2023-02-08 06:23:35 +01:00
parent b41776d077
commit 201b95a5b2
7 changed files with 76 additions and 39 deletions

View File

@@ -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();

View File

@@ -309,6 +309,17 @@ PropertyLength::PropertyLength()
setConstraints(&LengthStandard);
}
//**************************************************************************
//**************************************************************************
// PropertyMagnetization
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
TYPESYSTEM_SOURCE(App::PropertyMagnetization, App::PropertyQuantity)
PropertyMagnetization::PropertyMagnetization()
{
setUnit(Base::Unit::Magnetization);
}
//**************************************************************************
//**************************************************************************

View File

@@ -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.