FEM_Magnetics_Toolbox icon indicating copy to clipboard operation
FEM_Magnetics_Toolbox copied to clipboard

Inductance and leakage calculation

Open klaids opened this issue 2 years ago • 1 comments

Hi, Is there a class function to calculate the inductance and leakage of a generated model?

klaids avatar May 17 '23 20:05 klaids

Hi, there is a class method get_inductances().

Just figured out there are some problems on main using this method. May you should switch to develop as a workaround. Also check out the basic_example.py on develop again, due to some general usage changes compared to main.

    # generate your transformer geometry here
    # geo = ....

    geo.get_inductances(I0=1, op_frequency=200000) # use your operating frequency
    print(f"{geo.L_s_conc = }")
    print(f"{geo.L_h_conc = }")
    print(f"{geo.n_conc = }")

gituser789 avatar May 18 '23 12:05 gituser789