Skip to main content

AnisotropicPermeability

The AnisotropicPermeability class represents the anisotropic permeability of a non-magnet materials. This class is accessed through the eMotorSolution.CheckPoints.Materials module.

Parameters
  • x_data_init: List[List[float]] - A 2D list of floats [[0, 0], [h1, b1], [h2, b2], ...] where each sublist contains the magnetic field strength h and the corresponding magnetic flux density b on the x direction. The first sublist should be [0, 0], and the last sublist should contain the maximum values of h and b.
  • y_data_init: List[List[float]] - A 2D list of floats [[0, 0], [h1, b1], [h2, b2], ...] where each sublist contains the magnetic field strength h and the corresponding magnetic flux density b on the y direction. The first sublist should be [0, 0], and the last sublist should contain the maximum values of h and b.
  • b_unit: Literal["T", "mT", "uT", "nT", "pT", "G", "mG", "uG", "nG"] - The unit of magnetic flux density b. Default is "T".
  • h_unit: Literal["A/m", "kA/m", "MA/m", "GA/m", "TA/m"] - The unit of magnetic field strength h. Default is "A/m".

Methods

MethodDescription
set_data(x_data_init, y_data_init, b_unit, h_unit)Sets the x_data_init: List[List[float]], y_data_init: List[List[float]], b_unit: Literal["T", "mT", "uT", "nT", "pT", "G", "mG", "uG", "nG"], and h_unit: Literal["A/m", "kA/m", "MA/m", "GA/m", "TA/m"] for the anisotropic permeability of the material.

Attributes

AttributeDescription
x_dataList[List[float]] Returns the 2D list of floats representing the magnetic field strength h in A/m and the corresponding magnetic flux density b in T on the x direction. ⚠️ read-only
y_dataList[List[float]] Returns the 2D list of floats representing the magnetic field strength h in A/m and the corresponding magnetic flux density b in T on the y direction. ⚠️ read-only

Example Usage

This example demonstrates how to create a AnisotropicPermeability instance for a non-magnetic material.

import eMotorSolution as ems
from eMotorSolution.CheckPoints.Materials import AnisotropicPermeability, Non_Magnet_Material

# load an existing project
project = ems.load_project("path/to/your/project.json")

# Create a AnisotropicPermeability instance
anisotropic_permeability = AnisotropicPermeability(
x_data_init=[[0, 0], [1, 1], [2, 2]],
y_data_init=[[0, 0], [1, 1], [2, 2]],
b_unit="T",
h_unit="A/m"
)

# Add a new non-magnet material
new_material = Non_Magnet_Material(
name="NewMaterial",
conductivity_expression= 1e7,
conductivity_unit="S/m",
permeability=anisotropic_permeability
)

# Add the new material to the project's materials collection
project.materials.collection["NewMaterial"] = new_material