Source code for pyleecan.Methods.Output.LUTdq.get_Phi_dqh_mag

from ....Functions.Electrical.dqh_transformation import n2dqh_DataTime


[docs]def get_Phi_dqh_mag(self): """Get magnet flux linkage over time in DQH frame Parameters ---------- self : LUTdq a LUTdq object Returns ---------- Phi_dqh_mag : DataND magnets flux linkage in dqh frame (Nt_tot, 3) """ if self.Phi_dqh_mag is None: # Find Id=Iq=0 ii = self.get_index_open_circuit() if ii is not None: stator_label = self.simu.machine.stator.get_label() phase_dir = self.output_list[ii].elec.phase_dir # Integrate stator winding flux contained in LUT over z Phi_wind0 = ( self.output_list[ii] .mag.Phi_wind_slice[stator_label] .get_data_along("time", "phase", "z=integrate") ) # dqh transform Phi_dqh_mag = n2dqh_DataTime( Phi_wind0, is_dqh_rms=True, phase_dir=phase_dir, ) # Store for next call self.Phi_dqh_mag = Phi_dqh_mag return self.Phi_dqh_mag