# Copyright (c) 2026 JSOL CORPORATION # # This script is released under the MIT License. # See the full license text at: # https://www.jmag-international.com/scriptlibrary/jmag_script_library_mit/ def createResponseTableCorrectionAndSkew(study, resposeTableName): """Create a corrected response table by applying correction factors, correction values, and a skew to the results of efficiency map study.""" tableCorrection = study.CreateTableCorrection(resposeTableName) # [Coefficients/Leakage Inductance] tableCorrection.SetRotorResistanceFactor(1.1) tableCorrection.SetStatorLeakageInductanceFactor(1.2) tableCorrection.SetRotorLeakageInductanceFactor(1.15) tableCorrection.SetMagnetizingInductanceFactor(0.9) tableCorrection.SetExcitingConductanceFactor(0.95) tableCorrection.SetAdditionalStatorLeakageInductance(0.1) tableCorrection.SetAdditionalRotorLeakageInductance(0.15) # [Temperature] # [Coil] tableCorrection.SetCoilStandardTemp(20) tableCorrection.SetCoilTemp(100) tableCorrection.SetCoilTempFactor(1.0) # [Rotor Conductor] tableCorrection.SetRotorConductorStandardTemp(20) tableCorrection.SetRotorConductorTemp(100) tableCorrection.SetRotorConductorTempFactor(1.5) # [Skew] tableCorrection.SetIMRotorSkew(True) tableCorrection.SetIMRotorSkewAngle(10) app = designer.GetApplication() study = app.GetCurrentStudy() resposeTableName = u"corrected_table" createResponseTableCorrectionAndSkew(study, resposeTableName)