Creating Eccentricity in Motor
Hello, I am trying to see how the motor would react with different type of eccentricity using FluxMotor. I tried to motify the code of the FluxMotor script, but is not working out so well. I am a bit new to Altair and I would love to get all the help that I can get.
Wondering if this is correct code for me to produce a motor with static eccentricity. Also, can you help create dynamic eccentricty? Down below is the code, and the one highlighted is the code for the static eccentricty.
#MotorFactory 2022.3.0
#Updater_All
import smRsmIr3V223
import materialV223
## Create motor ##
#2024/03/10 18:00:44 ICT
#trucl
materialV223.updatePreferedMaterials(conductor="REF.Copper",gas="REF.Air",insulator="REF.Nomex_130",lamination="REF.M330_35A",liquid="REF.Water",magnet="REF.SmCo_1040_1800",solid="REF.EN_1_1151")
smRsmIr3V223.newMotor(catalogName="User_SM_RSM_IR_3Ph",machineType=smRsmIr3V223.MachineTypeEnum.SM_RSM_INNERROT_3PH,motorName="Motor",eraseOld=False)
## Design ##
## Machine - Topology
smRsmIr3V223.changeInputDimensionMode(inputDimensionMode=smRsmIr3V223.InputDimensionMode.STATOR_INNER_DIAMETER)
smRsmIr3V223.editMotor(airgapLength=0.0010000000000000009,noRotorPoles=4,noStatorSlots=48,rotorInnerDiameter=0.07,rotorLength=0.276,rotorOuterDiameter=0.184,statorLength=0.276,statorOuterDiameter=0.3)
## Eccentricity
smRsmIr3V223.changeRotorEccentricity(eccentricity=1) # Specify your desired eccentricity value
## Machine - Frame
smRsmIr3V223.changeHousing(type=smRsmIr3V223.HousingEnum.CIRCULAR)
smRsmIr3V223.changeHousingParameter(parameters={"D1":0.12,"D2":0.12,"T":0.01,"T1":0.01,"T2":0.01})
smRsmIr3V223.changeHousingFin(type=smRsmIr3V223.HousingFinsEnum.PARALLEL_FIXED_EXTENSION)
smRsmIr3V223.changeHousingFinParameter(parameters={"finExtension":0.03,"finLength":0.49,"finSpace":0.015,"finThickness":0.005,"noFins":48})
smRsmIr3V223.changeHousingCoolingCircuit(type=smRsmIr3V223.HousingCoolingCircuitEnum.NONE)
## Machine - Shaft
smRsmIr3V223.changeShaft(type=smRsmIr3V223.ShaftEnum.SOLID)
smRsmIr3V223.changeShaftParameter(parameters={"D1":0.05,"D2":0.05,"L1":0.16,"L2":0.16})
smRsmIr3V223.changeBearing(type=smRsmIr3V223.BearingEnum.SOLID)
smRsmIr3V223.changeBearingParameter(parameters={"csBearingLength":0.025,"csBearingShift":0.105,"csBearingWidth":0.04,"ocsBearingLength":0.025,"ocsBearingShift":0.105,"ocsBearingWidth":0.04})
## Rotor - Saliency - Design
smRsmIr3V223.changeReluctance(libraryName="ivr_RadialFluxBarrier_C1",partName="ivr_RFB_C1_C04")
smRsmIr3V223.changeReluctanceParameter(parameters={"T1A":0.01,"T1B":0.0055,"T1C":0.0055,"T1D":0.005,"T2":0.001,"T3":0.001,"TM1A":0.006500000000000001,"TM1B":0.006,"TM1C":0.005,"TM1D":0.005,"TM2A":0.004,"TM2B":0.004,"TM2C":0.004,"TM2D":0.004,"VA":0.08726646259971647,"VB":0.10471975511965978,"VC":0.10471975511965978,"VD":0.10471975511965978})
## Rotor - Saliency - Skew
smRsmIr3V223.changeRotorSkew(type=smRsmIr3V223.SkewTypeEnum.NONE)
## Stator - Slot - Design
smRsmIr3V223.changeSlot(libraryName="os_PllTooth",partName="os_PllTooth_05D")
smRsmIr3V223.changeSlotParameter(parameters={"HO":0.001,"HS":0.028,"V":0.5235987755982988,"WO":0.0012,"WT":0.006})
## Stator - Slot - Skew
smRsmIr3V223.changeStatorSkew(type=smRsmIr3V223.SkewTypeEnum.NONE)
## Stator - Slot - Lamination
smRsmIr3V223.changeLamination(type=smRsmIr3V223.LaminationEnum.NONE)
## Stator - Winding - Classical Winding
smRsmIr3V223.changeWindingCoilType(coilType=smRsmIr3V223.WindingCoilEnum.CLASSICAL)
smRsmIr3V223.setEasyWinding(coilPitch=11,noLayers=smRsmIr3V223.WindingLayerEnum.TWO_LAYER,noParallelPaths=4,phaseSequence=smRsmIr3V223.WindingPhaseDirectionEnum.CLOCKWISE,windingType=smRsmIr3V223.WindingConnecticEnum.LAP)
smRsmIr3V223.changeWindingConnection(windingConnection=smRsmIr3V223.WindingPhaseConnecticEnum.WYE)
smRsmIr3V223.changeWindingCoil(wireTopology=smRsmIr3V223.WindingWireEnum.CIRCULAR)
smRsmIr3V223.changeWindingCoil(windingSlotFillingMethod=smRsmIr3V223.WindingSlotFillingModeEnum.RANDOM)
smRsmIr3V223.changeWindingCoil(wireFillingDirection=smRsmIr3V223.WindingWireFillingModeEnum.HORIZONTAL)
smRsmIr3V223.changeWindingCoil(bundleTwist=smRsmIr3V223.WindingTwistEnum.NO,interWireTol=1.0E-5,noTurnsPerCoil=8,noWiresInHand=10,wireDiameter=9.199000000000001E-4)
smRsmIr3V223.changeWindingInsulationThickness(coil=0.0,conductor=0.0,impregnated=smRsmIr3V223.YesNoEnum.YES,impregnationGoodness=0.8,liner=1.0E-4,phaseSeparator=1.0E-4,wire=4.789E-5)
smRsmIr3V223.changeEndWinding(topology=smRsmIr3V223.WindingEndEnum.U_SHAPE)
smRsmIr3V223.changeEndWinding(connectionSideStraightExtension=0.0525,connectionSideTotalExtension=0.0925,oppositeConnectionSideStraightExtension=0.0525,oppositeConnectionSideTotalExtension=0.0925)
smRsmIr3V223.changeWindingCalibration(inductanceFactor=1.0,referenceTemperature=293.15,resistanceFactor=1.0)
smRsmIr3V223.changePotting(csTopology=smRsmIr3V223.WindingPottingEnum.NONE)
smRsmIr3V223.changePotting(ocsTopology=smRsmIr3V223.WindingPottingEnum.NONE)
## Cooling - External
smRsmIr3V223.changeCoolingExternalFluidic(type=smRsmIr3V223.CoolingExternalConvectionTypeEnum.FORCED)
smRsmIr3V223.changeCoolingExternalFluidicParameter(parameters={"altitude":300.0,"extFlowOrigin":smRsmIr3V223.CoolingConvectionFlowOriginEnum.CS,"fanTipSpeedRatio":1.0,"machineOrientation":smRsmIr3V223.CoolingExternalConvectionMotorPosEnum.HORIZONTAL})
smRsmIr3V223.changeCoolingExternalRadiation(type=smRsmIr3V223.CoolingExternalRadiationInputModeEnum.AUTO)
smRsmIr3V223.changeCoolingExternalXfactorParameter(parameters={"frameExtFluidResistance":1.0})
smRsmIr3V223.changeCoolingExternalXfactorModelEvalParameter(parameters={"extCoolingMachineMaxSpeed":157.07963267948966,"extFluidTemp":293.15})
## Cooling - Internal
smRsmIr3V223.changeCoolingInternalFluidic(type=smRsmIr3V223.CoolingInternalConvectionTypeEnum.NO_FLUID_NATURAL)
smRsmIr3V223.changeCoolingInternalRadiation(type=smRsmIr3V223.CoolingInternalRadiationInputModeEnum.AUTO)
smRsmIr3V223.changeCoolingInternalGaps(type=smRsmIr3V223.CoolingInternalGapsInputModeEnum.AUTO)
smRsmIr3V223.changeCoolingInternalSlotModel(type=smRsmIr3V223.CoolingInternalSlotModelInputModeEnum.AUTO)
smRsmIr3V223.changeCoolingInternalXfactorParameter(parameters={"CsEndSpaceResFactor":1.0,"CsEndWwResFactor":1.0,"OcsEndSpaceResFactor":1.0,"OcsEndWwResFactor":1.0,"airgapResFactor":1.0,"bearingResFactor":1.0,"magCirFrameResistance":1.0,"magCirShaftResFactor":1.0,"magCirSlotResistance":1.0})
smRsmIr3V223.changeCoolingInternalXfactorModelEvalParameter(parameters={"intCoolingMachineMaxSpeed":157.07963267948966,"intCoolingTemp":293.15})
## Materials - Materials
smRsmIr3V223.changeMaterial(cooling={"externalFluid":"REF.Air","internalFluid":"REF.Air"},machine={"bearing":"REF.EN_1_1151","endCapCs":"REF.Aluminium_6061","endCapOcs":"REF.Aluminium_6061","frameStraightPart":"REF.Aluminium_6061","housingFrame":"REF.Aluminium_6061","shaft":"REF.EN_1_1151"},rotor={"magneticCircuit":"REF.M330_35A"},stator={"coilConductor":"REF.Copper","insulators":"REF.Nomex_130","magneticCircuit":"REF.M330_35A"})
## Test ##
## Characterization - Model - Motor - Maps
smRsmIr3V223.changeMechanicalLossSetting(exponent=0.5,lossAtReferenceSpeed=0.0,referenceSpeed=104.71975511965977,target=smRsmIr3V223.TestTargetEnum.TEST,testType="CHAR_MODEL_MAPS")
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=293.15,oppositeConnectionSideEndWindingTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.TEST,testType="CHAR_MODEL_MAPS",windingActiveLengthTemperature=293.15)
smRsmIr3V223.changePowerElectronicsSetting(stage=smRsmIr3V223.SettingPowerElectronicsModeEnum.NONE,target=smRsmIr3V223.TestTargetEnum.TEST,testType="CHAR_MODEL_MAPS")
smRsmIr3V223.changeCharModelMapsParameter(airgapMeshDensityCoefficient=1.5,maximumCurrentDensity=6300000.0,maximumSpeed=104.71975511965977,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,noComputationsForDQCurrent=10,noComputationsForSpeed=10)
## Characterization - Thermal - Motor & Generator - Steady state
smRsmIr3V223.changeTemperatureSetting(externalFluidTemperature=313.15,target=smRsmIr3V223.TestTargetEnum.TEST,testType="CHAR_THERMAL_STEADY_STATE")
smRsmIr3V223.changeCharThermalSteadyStateParameter(mechanicalLosses=0.0,rotorIronLosses=9.758210850323488,speed=209.43951023931953,statorIronLosses=364.1670732782371,statorJouleLosses=2516.664340000001)
## Characterization - Thermal - Motor & Generator - Transient
smRsmIr3V223.changeTemperatureSetting(externalFluidTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.TEST,testType="CHAR_THERMAL_TRANSIENT")
smRsmIr3V223.changeCharThermalTransientParameter(maximumEvaluationDuration=3600.0,mechanicalLosses=0.0,rotorIronLosses=0.0,speed=157.07963267948966,statorIronLosses=160.0,statorJouleLosses=660.0,timeStep=1.0)
## Working point - Sine wave - Motor - Current-Control angle-Speed
smRsmIr3V223.changeMechanicalLossSetting(exponent=0.5,lossAtReferenceSpeed=0.0,referenceSpeed=104.71975511965977,target=smRsmIr3V223.TestTargetEnum.TEST,testType="WP_SINE_MOT_CURRENTPSISPEED")
smRsmIr3V223.changeTemperatureSetting(target=smRsmIr3V223.TestTargetEnum.TEST,testType="WP_SINE_MOT_CURRENTPSISPEED",thermalSolving=smRsmIr3V223.SettingThermalFullModeEnum.ITERATIVE)
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=413.15,externalFluidTemperature=313.15,oppositeConnectionSideEndWindingTemperature=413.15,target=smRsmIr3V223.TestTargetEnum.TEST,testType="WP_SINE_MOT_CURRENTPSISPEED",windingActiveLengthTemperature=393.15)
smRsmIr3V223.changePowerElectronicsSetting(stage=smRsmIr3V223.SettingPowerElectronicsModeEnum.NONE,target=smRsmIr3V223.TestTargetEnum.TEST,testType="WP_SINE_MOT_CURRENTPSISPEED")
smRsmIr3V223.changeStatSinewaveWorkingPointCurrentSpeedPsiParameter(additionalLossPercent=0.0,airgapMeshDensityCoefficient=1.5,computationMode=smRsmIr3V223.ComputationModeEnum.FAST,controlAngle=-0.4052479990205634,maximumLineCurrent=153.24,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,noComputationsPerRippleTorquePeriod=30,rippleTorqueAnalysis=smRsmIr3V223.YesNoEnum.YES,speed=209.43951023931953,temperatureConvergenceCriteria=0.01)
## Working point - Sine wave - Motor - Current-Voltage
smRsmIr3V223.changeMechanicalLossSetting(exponent=0.5,lossAtReferenceSpeed=0.0,referenceSpeed=104.71975511965977,target=smRsmIr3V223.TestTargetEnum.TEST,testType="WP_SINE_MOT_CURRENTVOLTAGE")
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=293.15,oppositeConnectionSideEndWindingTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.TEST,testType="WP_SINE_MOT_CURRENTVOLTAGE",windingActiveLengthTemperature=293.15)
smRsmIr3V223.changePowerElectronicsSetting(stage=smRsmIr3V223.SettingPowerElectronicsModeEnum.NONE,target=smRsmIr3V223.TestTargetEnum.TEST,testType="WP_SINE_MOT_CURRENTVOLTAGE")
smRsmIr3V223.changeStatSinewaveWorkingPointCurrentvoltageParameter(additionalLossPercent=0.0,airgapMeshDensityCoefficient=1.5,commandMode=smRsmIr3V223.CommandModeEnum.MTPV,maximumCurrentDensity=6300000.0,maximumLineLineVoltage=380.0,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,noComputationsForControlAngle=5,rippleTorqueAnalysis=smRsmIr3V223.YesNoEnum.NO)
## Working point - Sine wave - Generator - Current-Control angle-Speed
smRsmIr3V223.changeMechanicalLossSetting(exponent=0.5,lossAtReferenceSpeed=0.0,referenceSpeed=104.71975511965977,target=smRsmIr3V223.TestTargetEnum.TEST,testType="WP_SINE_GEN_CURRENTPSISPEED")
smRsmIr3V223.changeTemperatureSetting(target=smRsmIr3V223.TestTargetEnum.TEST,testType="WP_SINE_GEN_CURRENTPSISPEED",thermalSolving=smRsmIr3V223.SettingThermalFullModeEnum.NONE)
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=293.15,oppositeConnectionSideEndWindingTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.TEST,testType="WP_SINE_GEN_CURRENTPSISPEED",windingActiveLengthTemperature=293.15)
smRsmIr3V223.changeStatSinewaveWorkingPointCurrentSpeedPsiGeneratorParameter(additionalLossPercent=0.0,airgapMeshDensityCoefficient=1.5,controlAngle=0.7853981633974483,maximumCurrentDensity=6300000.0,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,rippleTorqueAnalysis=smRsmIr3V223.YesNoEnum.NO,speed=157.07963267948966)
## Performance mapping - Sine wave - Motor - Efficiency map
smRsmIr3V223.changeMechanicalLossSetting(exponent=0.5,lossAtReferenceSpeed=0.0,referenceSpeed=104.71975511965977,target=smRsmIr3V223.TestTargetEnum.TEST,testType="PERF_SINEWAVE_MOTOR_EFFICIENCYMAP")
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=413.15,oppositeConnectionSideEndWindingTemperature=413.15,target=smRsmIr3V223.TestTargetEnum.TEST,testType="PERF_SINEWAVE_MOTOR_EFFICIENCYMAP",windingActiveLengthTemperature=393.15)
smRsmIr3V223.changePowerElectronicsSetting(stage=smRsmIr3V223.SettingPowerElectronicsModeEnum.WITH_LOSS_VOLTAGE,target=smRsmIr3V223.TestTargetEnum.TEST,testType="PERF_SINEWAVE_MOTOR_EFFICIENCYMAP")
smRsmIr3V223.changePowerElectronicsSetting(inputVoltage=600.0,inverterControl=smRsmIr3V223.InverterControlEnum.CIRCLE,lossComputation=smRsmIr3V223.YesNoEnum.NO,target=smRsmIr3V223.TestTargetEnum.TEST,testType="PERF_SINEWAVE_MOTOR_EFFICIENCYMAP")
smRsmIr3V223.changeStatSinewaveTorquespeedParameter(additionalLossPercent=0.0,airgapMeshDensityCoefficient=1.5,commandMode=smRsmIr3V223.CommandModeEnum.MTPV,maximumLineCurrent=200.0,maximumSpeed=314.1592653589793,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,noComputationsForDQCurrent=5,noComputationsForSpeed=15,noComputationsForTorque=7,userWorkingPointAnalysis=smRsmIr3V223.UserWPAnalysisEnum.SINGLE,userWorkingPointSpeed=209.43951023931953,userWorkingPointTorque=369.0)
## Performance mapping - Sine wave - Generator - Efficiency map
smRsmIr3V223.changeMechanicalLossSetting(exponent=0.5,lossAtReferenceSpeed=0.0,referenceSpeed=104.71975511965977,target=smRsmIr3V223.TestTargetEnum.TEST,testType="PERF_SINEWAVE_GENERATOR_EFFICIENCYMAP")
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=293.15,oppositeConnectionSideEndWindingTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.TEST,testType="PERF_SINEWAVE_GENERATOR_EFFICIENCYMAP",windingActiveLengthTemperature=293.15)
smRsmIr3V223.changeStatSinewaveTorquespeedGeneratorParameter(additionalLossPercent=0.0,airgapMeshDensityCoefficient=1.5,commandMode=smRsmIr3V223.CommandModeEnum.MTPA,maximumLineCurrent=200.0,maximumLineLineVoltage=390.0,maximumSpeed=628.3185307179587,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,noComputationsForDQCurrent=5,noComputationsForSpeed=15,noComputationsForTorque=7,userWorkingPointAnalysis=smRsmIr3V223.UserWPAnalysisEnum.NONE)
## Mechanics - NVH - Working Point - Current-Control angle-Speed
smRsmIr3V223.changeMechanicalLossSetting(exponent=0.5,lossAtReferenceSpeed=0.0,referenceSpeed=104.71975511965977,target=smRsmIr3V223.TestTargetEnum.TEST,testType="NVH_WP_SINE_CURRENTPSISPEED")
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=293.15,oppositeConnectionSideEndWindingTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.TEST,testType="NVH_WP_SINE_CURRENTPSISPEED",windingActiveLengthTemperature=293.15)
smRsmIr3V223.changeNvhWorkingPointCurrentSpeedPsiParameter(airgapMeshDensityCoefficient=1.5,controlAngle=-0.4052479990205634,displayedMaxwellPressureRange=60.0,maximumEngineOrder=80,maximumLineCurrent=153.24,maximumMode=20,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,noPointsPerToothPitch=15,speed=209.43951023931953,toothForcesAnalysis=smRsmIr3V223.YesNoEnum.NO)
## Mechanics - NVH - Spectrogram - Current-Control angle-Speed
smRsmIr3V223.changeMechanicalLossSetting(exponent=0.5,lossAtReferenceSpeed=0.0,referenceSpeed=104.71975511965977,target=smRsmIr3V223.TestTargetEnum.TEST,testType="NVH_SPECTROGRAM_SINE_CURRENTPSISPEED")
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=293.15,oppositeConnectionSideEndWindingTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.TEST,testType="NVH_SPECTROGRAM_SINE_CURRENTPSISPEED",windingActiveLengthTemperature=293.15)
smRsmIr3V223.changeNvhSpectrogramCurrentSpeedPsiParameter(airgapMeshDensityCoefficient=1.5,maximumEngineOrder=80,maximumMode=20,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,noPointsForSpeedInterpolation=100,noPointsPerToothPitch=15)
## Mechanics - NVH - Spectrogram - Torque-Speed
smRsmIr3V223.changeMechanicalLossSetting(exponent=0.5,lossAtReferenceSpeed=0.0,referenceSpeed=104.71975511965977,target=smRsmIr3V223.TestTargetEnum.TEST,testType="NVH_SPECTROGRAM_SINE_TORQUESPEED")
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=381.15,oppositeConnectionSideEndWindingTemperature=377.15,target=smRsmIr3V223.TestTargetEnum.TEST,testType="NVH_SPECTROGRAM_SINE_TORQUESPEED",windingActiveLengthTemperature=356.15)
smRsmIr3V223.changePowerElectronicsSetting(stage=smRsmIr3V223.SettingPowerElectronicsModeEnum.WITH_LOSS_VOLTAGE,target=smRsmIr3V223.TestTargetEnum.TEST,testType="NVH_SPECTROGRAM_SINE_TORQUESPEED")
smRsmIr3V223.changePowerElectronicsSetting(inputVoltage=600.0,inverterControl=smRsmIr3V223.InverterControlEnum.SIX_STEPS_120,lossComputation=smRsmIr3V223.YesNoEnum.NO,target=smRsmIr3V223.TestTargetEnum.TEST,testType="NVH_SPECTROGRAM_SINE_TORQUESPEED")
smRsmIr3V223.changeNvhSpectrogramTorqueSpeedParameter(airgapMeshDensityCoefficient=1.5,commandMode=smRsmIr3V223.CommandModeEnum.MTPV,envelope=smRsmIr3V223.NvhEnveloppEnum.AUTO,maximumEngineOrder=80,maximumLineCurrent=163.0,maximumMode=20,maximumSpeed=314.1592653589793,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,noComputationsForDQCurrent=5,noComputationsForSpeed=15,noComputationsForTorque=7,noPointsForSpeedInterpolation=100,noPointsPerToothPitch=15)
## Report ##
smRsmIr3V223.changeReportContent(design=["topology","reluctanceDesign","reluctanceSkew","slot","slotSkew","winding"],material=["lamination_REF.M330_35A","conductor_REF.Copper","insulator_REF.Nomex_130","gas_REF.Air"])
## Script ##
smRsmIr3V223.changeExportScriptParameter(catalogName="User_SM_RSM_IR_3Ph",destinationFolder="C:\\Users\\trucl",motorName="Motor",scriptName="Script")
## Export Hyperstudy ##
## Characterization - Thermal - Motor and Generator - Steady State
smRsmIr3V223.changeTemperatureSetting(externalFluidTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="CHAR_THERMAL_STEADY_STATE")
smRsmIr3V223.changeCharThermalSteadyStateHyperstudyParameter(hyperstudyIo={},mechanicalLosses=0.0,rotorIronLosses=0.0,speed=157.07963267948966,statorIronLosses=160.0,statorJouleLosses=660.0)
smRsmIr3V223.updateHyperstudyExportParameter(connectorName="HstConnector",destinationFolder="C:\\Users\\trucl",saveIterations=smRsmIr3V223.YesNoEnum.NO,testType="CHAR_THERMAL_STEADY_STATE")
## Working point - Sine wave - Motor - Current-Control angle-Speed
smRsmIr3V223.changeMechanicalLossSetting(exponent=0.5,lossAtReferenceSpeed=0.0,referenceSpeed=104.71975511965977,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="WP_SINE_MOT_CURRENTPSISPEED")
smRsmIr3V223.changeTemperatureSetting(target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="WP_SINE_MOT_CURRENTPSISPEED",thermalSolving=smRsmIr3V223.SettingThermalFullModeEnum.NONE)
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=293.15,oppositeConnectionSideEndWindingTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="WP_SINE_MOT_CURRENTPSISPEED",windingActiveLengthTemperature=293.15)
smRsmIr3V223.changePowerElectronicsSetting(stage=smRsmIr3V223.SettingPowerElectronicsModeEnum.NONE,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="WP_SINE_MOT_CURRENTPSISPEED")
smRsmIr3V223.changeStatSinewaveWorkingPointCurrentSpeedPsiHyperstudyParameter(additionalLossPercent=0.0,airgapMeshDensityCoefficient=1.5,computationMode=smRsmIr3V223.ComputationModeEnum.FAST,controlAngle=-0.7853981633974483,hyperstudyIo={},maximumCurrentDensity=6300000.0,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,rippleTorqueAnalysis=smRsmIr3V223.YesNoEnum.NO,speed=157.07963267948966)
smRsmIr3V223.updateHyperstudyExportParameter(connectorName="HstConnector",destinationFolder="C:\\Users\\trucl",saveIterations=smRsmIr3V223.YesNoEnum.NO,testType="WP_SINE_MOT_CURRENTPSISPEED")
## Working point - Sine wave - Motor - Current-Voltage
smRsmIr3V223.changeMechanicalLossSetting(exponent=0.5,lossAtReferenceSpeed=0.0,referenceSpeed=104.71975511965977,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="WP_SINE_MOT_CURRENTVOLTAGE")
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=293.15,oppositeConnectionSideEndWindingTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="WP_SINE_MOT_CURRENTVOLTAGE",windingActiveLengthTemperature=293.15)
smRsmIr3V223.changePowerElectronicsSetting(stage=smRsmIr3V223.SettingPowerElectronicsModeEnum.NONE,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="WP_SINE_MOT_CURRENTVOLTAGE")
smRsmIr3V223.changeStatSinewaveWorkingPointCurrentVoltageHyperstudyParameter(additionalLossPercent=0.0,airgapMeshDensityCoefficient=1.5,commandMode=smRsmIr3V223.CommandModeEnum.MTPV,hyperstudyIo={},maximumCurrentDensity=6300000.0,maximumLineLineVoltage=380.0,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,noComputationsForControlAngle=5,rippleTorqueAnalysis=smRsmIr3V223.YesNoEnum.NO)
smRsmIr3V223.updateHyperstudyExportParameter(connectorName="HstConnector",destinationFolder="C:\\Users\\trucl",saveIterations=smRsmIr3V223.YesNoEnum.NO,testType="WP_SINE_MOT_CURRENTVOLTAGE")
## Working point - Sine wave - Generator - Current-Control angle-Speed
smRsmIr3V223.changeMechanicalLossSetting(exponent=0.5,lossAtReferenceSpeed=0.0,referenceSpeed=104.71975511965977,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="WP_SINE_GEN_CURRENTPSISPEED")
smRsmIr3V223.changeTemperatureSetting(target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="WP_SINE_GEN_CURRENTPSISPEED",thermalSolving=smRsmIr3V223.SettingThermalFullModeEnum.NONE)
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=293.15,oppositeConnectionSideEndWindingTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="WP_SINE_GEN_CURRENTPSISPEED",windingActiveLengthTemperature=293.15)
smRsmIr3V223.changeStatSinewaveWorkingPointGeneratorCurrentSpeedPsiHyperstudyParameter(additionalLossPercent=0.0,airgapMeshDensityCoefficient=1.5,controlAngle=0.7853981633974483,hyperstudyIo={},maximumCurrentDensity=6300000.0,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,rippleTorqueAnalysis=smRsmIr3V223.YesNoEnum.NO,speed=157.07963267948966)
smRsmIr3V223.updateHyperstudyExportParameter(connectorName="HstConnector",destinationFolder="C:\\Users\\trucl",saveIterations=smRsmIr3V223.YesNoEnum.NO,testType="WP_SINE_GEN_CURRENTPSISPEED")
## Performance mapping - Sine wave - Motor - Efficiency map
smRsmIr3V223.changeMechanicalLossSetting(exponent=0.5,lossAtReferenceSpeed=0.0,referenceSpeed=104.71975511965977,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="PERF_SINEWAVE_MOTOR_EFFICIENCYMAP")
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=293.15,oppositeConnectionSideEndWindingTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="PERF_SINEWAVE_MOTOR_EFFICIENCYMAP",windingActiveLengthTemperature=293.15)
smRsmIr3V223.changePowerElectronicsSetting(stage=smRsmIr3V223.SettingPowerElectronicsModeEnum.NONE,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="PERF_SINEWAVE_MOTOR_EFFICIENCYMAP")
smRsmIr3V223.changeStatSinewaveTorquespeedHyperstudyParameter(additionalLossPercent=0.0,airgapMeshDensityCoefficient=1.5,commandMode=smRsmIr3V223.CommandModeEnum.MTPV,hyperstudyIo={},maximumCurrentDensity=6300000.0,maximumLineLineVoltage=380.0,maximumSpeed=628.3185307179587,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,noComputationsForDQCurrent=5,noComputationsForSpeed=15,noComputationsForTorque=7,userWorkingPointAnalysis=smRsmIr3V223.UserWPAnalysisEnum.NONE)
smRsmIr3V223.updateHyperstudyExportParameter(connectorName="HstConnector",destinationFolder="C:\\Users\\trucl",saveIterations=smRsmIr3V223.YesNoEnum.NO,testType="PERF_SINEWAVE_MOTOR_EFFICIENCYMAP")
## Performance mapping - Sine wave - Generator - Efficiency map
smRsmIr3V223.changeMechanicalLossSetting(exponent=0.5,lossAtReferenceSpeed=0.0,referenceSpeed=104.71975511965977,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="PERF_SINEWAVE_GENERATOR_EFFICIENCYMAP")
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=293.15,oppositeConnectionSideEndWindingTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="PERF_SINEWAVE_GENERATOR_EFFICIENCYMAP",windingActiveLengthTemperature=293.15)
smRsmIr3V223.changeStatSinewaveGeneratorTorquespeedHyperstudyParameter(additionalLossPercent=0.0,airgapMeshDensityCoefficient=1.5,commandMode=smRsmIr3V223.CommandModeEnum.MTPA,hyperstudyIo={},maximumCurrentDensity=6300000.0,maximumLineLineVoltage=380.0,maximumSpeed=628.3185307179587,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,noComputationsForDQCurrent=5,noComputationsForSpeed=15,noComputationsForTorque=7,userWorkingPointAnalysis=smRsmIr3V223.UserWPAnalysisEnum.NONE)
smRsmIr3V223.updateHyperstudyExportParameter(connectorName="HstConnector",destinationFolder="C:\\Users\\trucl",saveIterations=smRsmIr3V223.YesNoEnum.NO,testType="PERF_SINEWAVE_GENERATOR_EFFICIENCYMAP")
## Mechanics - NVH - Working point - Current-Control angle-Speed
smRsmIr3V223.changeMechanicalLossSetting(exponent=0.5,lossAtReferenceSpeed=0.0,referenceSpeed=104.71975511965977,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="NVH_WP_SINE_CURRENTPSISPEED")
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=293.15,oppositeConnectionSideEndWindingTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.HYPERSTUDY,testType="NVH_WP_SINE_CURRENTPSISPEED",windingActiveLengthTemperature=293.15)
smRsmIr3V223.changeNvhWorkingPointCurrentSpeedPsiHyperstudyParameter(airgapMeshDensityCoefficient=1.5,controlAngle=-0.7853981633974483,displayedMaxwellPressureRange=60.0,hyperstudyIo={},maximumCurrentDensity=6300000.0,maximumEngineOrder=80,maximumMode=20,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,noPointsPerToothPitch=15,speed=157.07963267948966,toothForcesAnalysis=smRsmIr3V223.YesNoEnum.NO)
smRsmIr3V223.updateHyperstudyExportParameter(connectorName="HstConnector",destinationFolder="C:\\Users\\trucl",saveIterations=smRsmIr3V223.YesNoEnum.NO,testType="NVH_WP_SINE_CURRENTPSISPEED")
## Export Flux2d ##
## Without solving scenario - Current source - Motor and Generator - Basic model
smRsmIr3V223.changeStatWithoutScenarioCurrentSourceBasicModelFlux2dParameter(airgapMeshDensityCoefficient=1.5,controlAngle=-0.7853981633974483,maximumLineCurrent=72.58034378065284,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER)
smRsmIr3V223.updateFlux2dExportParameter(destinationFolder="C:\\Users\\trucl",fileName="Flux2DModel",fullGeometry=smRsmIr3V223.YesNoEnum.NO,testType="STATIC_NO_SCENARIO_CURRENT_SOURCE_MOTGEN_BASIC_MODEL")
## Working point - Sine wave - Motor - Current-Control angle-Speed
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=293.15,oppositeConnectionSideEndWindingTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.FLUX2D,testType="TRANS_WP_SINE_MOT_CURRENTPSISPEED",windingActiveLengthTemperature=293.15)
smRsmIr3V223.changeTransWpSineMotCurrentControlAngleSpeedFlux2dParameter(airgapMeshDensityCoefficient=1.5,controlAngle=-0.7853981633974483,maximumLineCurrent=72.58034378065284,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,noComputationsPerElectricalPeriod=50,noElectricalPeriods=smRsmIr3V223.NumberOfElectricalPeriodEnum.TWO,representedCoilConductor=smRsmIr3V223.RepresentedCoilsEnum.NO,speed=157.07963267948966)
smRsmIr3V223.updateFlux2dExportParameter(destinationFolder="C:\\Users\\trucl",fileName="Flux2DModel",fullGeometry=smRsmIr3V223.YesNoEnum.NO,testType="TRANS_WP_SINE_MOT_CURRENTPSISPEED")
## Export FluxSkew ##
## Without solving scenario - Current source - Motor and Generator - Basic model
smRsmIr3V223.changeStatWithoutScenarioCurrentSourceBasicModelFluxSkewParameter(airgapMeshDensityCoefficient=1.5,controlAngle=-0.7853981633974483,maximumLineCurrent=72.58034378065284,skewMeshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,skewModelNoOfLayers=3)
smRsmIr3V223.updateFluxSkewExportParameter(destinationFolder="C:\\Users\\trucl",fileName="FluxSkewModel",fullGeometry=smRsmIr3V223.YesNoEnum.NO,testType="STATIC_NO_SCENARIO_CURRENT_SOURCE_MOTGEN_BASIC_MODEL")
## Working point - Sine wave - Motor - Current-Control angle-Speed
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=293.15,oppositeConnectionSideEndWindingTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.FLUXSKEW,testType="TRANS_WP_SINE_MOT_CURRENTPSISPEED",windingActiveLengthTemperature=293.15)
smRsmIr3V223.changeTransWpSineMotCurrentControlAngleSpeedFluxSkewParameter(airgapMeshDensityCoefficient=1.5,controlAngle=-0.7853981633974483,maximumLineCurrent=72.58034378065284,noComputationsPerElectricalPeriod=50,noElectricalPeriods=smRsmIr3V223.NumberOfElectricalPeriodEnum.TWO,representedCoilConductor=smRsmIr3V223.RepresentedCoilsEnum.NO,skewMeshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER,skewModelNoOfLayers=3,speed=157.07963267948966)
smRsmIr3V223.updateFluxSkewExportParameter(destinationFolder="C:\\Users\\trucl",fileName="FluxSkewModel",fullGeometry=smRsmIr3V223.YesNoEnum.NO,testType="TRANS_WP_SINE_MOT_CURRENTPSISPEED")
## Export Flux3d ##
## Without solving scenario - Current source - Motor and Generator - Basic model
smRsmIr3V223.changeTemperatureSetting(connectionSideEndWindingTemperature=293.15,oppositeConnectionSideEndWindingTemperature=293.15,target=smRsmIr3V223.TestTargetEnum.FLUX3D,testType="STATIC_NO_SCENARIO_CURRENT_SOURCE_MOTGEN_BASIC_MODEL",windingActiveLengthTemperature=293.15)
smRsmIr3V223.changeStatWithoutScenarioCurrentSourceBasicModelFlux3dParameter(airgapMeshDensityCoefficient=1.5,controlAngle=-0.7853981633974483,maximumLineCurrent=72.58034378065284,meshOrder=smRsmIr3V223.MeshOrderEnum.SECOND_ORDER)
smRsmIr3V223.updateFlux3dExportParameter(destinationFolder="C:\\Users\\trucl",fileName="Flux3DModel",fullGeometry=smRsmIr3V223.YesNoEnum.NO,symmetry=smRsmIr3V223.YesNoEnum.YES,testType="STATIC_NO_SCENARIO_CURRENT_SOURCE_MOTGEN_BASIC_MODEL")
## General inputs
smRsmIr3V223.updateFlux3dLengthParameter(rotor=0.08,stator=0.08)
## Export LuT ##
## Save ##
smRsmIr3V223.saveMotor()
Best Answer
-
Hello Truc Hoang Ho
It is not possible to make eccentricities within FluxMotor (or other kind of defaults), but this is of course possible with Flux 2D/3D
Can you please let me know if the following part of the script is yours ?
## Eccentricity
smRsmIr3V223.changeRotorEccentricity(eccentricity=1) # Specify your desired eccentricity valueRegards
0
Answers
-
Hello Truc Hoang Ho
It is not possible to make eccentricities within FluxMotor (or other kind of defaults), but this is of course possible with Flux 2D/3D
Can you please let me know if the following part of the script is yours ?
## Eccentricity
smRsmIr3V223.changeRotorEccentricity(eccentricity=1) # Specify your desired eccentricity valueRegards
0 -
Farid zidat_20516 said:Hello Truc Hoang Ho
It is not possible to make eccentricities within FluxMotor (or other kind of defaults), but this is of course possible with Flux 2D/3D
Can you please let me know if the following part of the script is yours ?
## Eccentricity
smRsmIr3V223.changeRotorEccentricity(eccentricity=1) # Specify your desired eccentricity valueRegards
Hello Farid,
Thank you for your fast reply to my question.
You see I'm trying to simulate many different fault on synchronous reluctance motor like eccentricities and see how the motor would react. My thought process was utilizing Script Factory to modify the change the motor.
The code you had is one of many that I tried to see a reaction for the motor. I am wondering is there anything that I can do on FluxMotor beside make a good motor. Any fault that I can try on the program.
0