BHCurveMat (class)

Warning : this file has been generated, you shouldn’t edit it

class BHCurveMat(matrix=None, f=None, H=None, init_dict=None)[source]

Bases: pyleecan.Classes.BHCurve.BHCurve

B(H) curve defined by a matrix

VERSION = 1
comp_B(H, f=None)

Compute the value B(H) at the specified frequency

Parameters:
  • self (BHCurveMat) – a BHCurveMat object
  • H (numpy.ndarray) – Abscissa vector [A/m] (1, N)
  • f (float) – Frequency to compute the B values [Hz] (Default value = None)
Returns:

B – B(H) values

Return type:

numpy.ndarray

as_dict()[source]

Convert this objet in a json seriable dict (can be use in __init__)

matrix

B(H) matrix value. Every column are B(H) value for a specify frequency

f

f value for each column of the matrix

H

H value for each row of the matrix