2024-12-09 16:05:48 +08:00
|
|
|
|
// Package orm define database data struct
|
|
|
|
|
|
package orm
|
|
|
|
|
|
|
|
|
|
|
|
import "github.com/gofrs/uuid"
|
|
|
|
|
|
|
|
|
|
|
|
// AsyncMotor define asynchronous motor model
|
|
|
|
|
|
type AsyncMotor struct {
|
2024-12-10 16:36:59 +08:00
|
|
|
|
UUID uuid.UUID `gorm:"column:global_uuid;primaryKey"`
|
2024-12-30 16:39:11 +08:00
|
|
|
|
ComponentID int64 // compoent表ID
|
2024-12-09 16:05:48 +08:00
|
|
|
|
NoLoadVoltage float64 // 空载电压
|
|
|
|
|
|
NoLoadElectricCurrent float64 // 空载电流
|
|
|
|
|
|
NoLoadPower float64 // 空载电功率
|
2024-12-10 16:36:59 +08:00
|
|
|
|
BlockageF1Frequency float64 // 堵转 f1 频率
|
2024-12-09 16:05:48 +08:00
|
|
|
|
BlockageF1Voltage float64 // 堵转 f1 频率电压
|
|
|
|
|
|
BlockageF1ElectricCurrent float64 // 堵转 f1 频率电流
|
|
|
|
|
|
BlockageF1Power float64 // 堵转 f1 频率电功率
|
2024-12-10 16:36:59 +08:00
|
|
|
|
BlockageF2Frequency float64 // 堵转 f2 频率
|
2024-12-09 16:05:48 +08:00
|
|
|
|
BlockageF2Voltage float64 // 堵转 f2 频率电压
|
|
|
|
|
|
BlockageF2ElectricCurrent float64 // 堵转 f2 频率电流
|
|
|
|
|
|
BlockageF2Power float64 // 堵转 f2 频率电功率
|
2024-12-10 16:36:59 +08:00
|
|
|
|
APhaseDCResistance float64 // A相直流电阻
|
|
|
|
|
|
BPhaseDCResistance float64 // B相直流电阻
|
|
|
|
|
|
CPhaseDCResistance float64 // C相直流电阻
|
2024-12-09 16:05:48 +08:00
|
|
|
|
RunningStatorResistance float64 // 运行定子电阻r1
|
|
|
|
|
|
StartUpStatorResistance float64 // 启动定子电阻r1
|
|
|
|
|
|
ColdStateStatorResistance float64 // 冷态定子电阻r1
|
|
|
|
|
|
RunningStatorReactance float64 // 运行定子电抗x1
|
|
|
|
|
|
StartUpStatorReactance float64 // 启动定子电抗x1
|
|
|
|
|
|
ColdStateStatorReactance float64 // 冷态定子电抗x1
|
|
|
|
|
|
RunningEquivalentResistanceOfRotor float64 // 运行转子等值电阻r2
|
|
|
|
|
|
StartUpEquivalentResistanceOfRotor float64 // 启动转子等值电阻r2
|
|
|
|
|
|
ColdStateEquivalentResistanceOfRotor float64 // 冷态转子等值电阻r2
|
|
|
|
|
|
RunningEquivalentReactanceOfRotor float64 // 运行转子等值电抗x2
|
|
|
|
|
|
StartUpEquivalentReactanceOfRotor float64 // 启动转子等值电抗x2
|
|
|
|
|
|
ColdStateEquivalentReactanceOfRotor float64 // 冷态转子等值电抗x2
|
2024-12-10 16:36:59 +08:00
|
|
|
|
RunningExcitationResistance float64 // 运行励磁电阻Rfe
|
|
|
|
|
|
StartUpExcitationResistance float64 // 启动励磁电阻Rfe
|
|
|
|
|
|
ColdStateExcitationResistance float64 // 冷态励磁电阻Rfe
|
2024-12-09 16:05:48 +08:00
|
|
|
|
RunningExcitationReactance float64 // 运行励磁电抗Xm
|
|
|
|
|
|
StartUpExcitationReactance float64 // 启动励磁电抗Xm
|
|
|
|
|
|
ColdStateExcitationReactance float64 // 冷态励磁电抗Xm
|
|
|
|
|
|
RunningTemperature int // 运行温度
|
|
|
|
|
|
StartUpTemperature int // 启动温度
|
|
|
|
|
|
ColdStateTemperature int // 冷态温度
|
|
|
|
|
|
|
|
|
|
|
|
// 热限制曲线参数
|
|
|
|
|
|
EIS string // 电动机定子绕组绝缘结构热分级,枚举值类型105(A)/120(E)/130(B)/155(F)/180(H),默认值155(F)
|
|
|
|
|
|
TemperatureLimit int // 温度限值,范围值0-1000
|
|
|
|
|
|
TemperatureRiseLimit int // 温升限值,范围值0-1000
|
|
|
|
|
|
ColdStateAllowsContinuousStartingTimes int // 冷态允许连续起动次数
|
|
|
|
|
|
HotStateAllowsContinuousStartingtimes int // 热态允许连续起动次数
|
|
|
|
|
|
ProhibitionOfRestartForShortestTime float64 // 禁止重起动最短时间
|
|
|
|
|
|
HotStateAllowsBlockageTime float64 // 热态允许堵转时间Ta
|
|
|
|
|
|
ColdStateAllowsBlockageTime float64 // 冷态允许堵转时间To
|
|
|
|
|
|
ElectricMotorHeatingTimeConstant float64 // 电动机发热时间常数Twu
|
|
|
|
|
|
ElectricMotorHeatDissipationTimeConstant float64 // 电动机散热时间常数Tcd
|
|
|
|
|
|
ThermalLoadCurve []float64 // 热载曲线坐标点
|
2024-12-10 16:36:59 +08:00
|
|
|
|
CompensationForEnvConditions int // 环境条件补偿环境温度
|
|
|
|
|
|
MinLimitOfTerminalVoltage int // 机端电压下限
|
|
|
|
|
|
MaxLimitOfStarts int // 起动次数上限
|
2024-12-09 16:05:48 +08:00
|
|
|
|
StartingStrategy string // 起动策略
|
|
|
|
|
|
NormalStartUpTime int // 起动转正常时间
|
|
|
|
|
|
RestartBatch int // 再起动批次
|
|
|
|
|
|
ElectricCurrentMeasurementLevel string // 电流测量级
|
|
|
|
|
|
VoltageMeasurementLevel string // 电压测量级
|
|
|
|
|
|
ElectricCurrentProtectionLevel1 string // 电流保护级1
|
|
|
|
|
|
ElectricCurrentProtectionLevel2 string // 电流保护级1
|
|
|
|
|
|
VoltageProtectionLevel string // 电压保护级
|
|
|
|
|
|
Trend string // 潮流
|
|
|
|
|
|
Frequency string // 频率
|
|
|
|
|
|
StatusMeasurementPoint string // 状态测点
|
2024-12-10 16:36:59 +08:00
|
|
|
|
Machinery string // 机械
|
2024-12-09 16:05:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
(1)温度的格式为正整数,0~500
|
|
|
|
|
|
(2)电阻和电抗的参数为正实数,三位整数五位小数的格式,XXX.XXXXX
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
// TableName func respresent return table name of asynchronous motor
|
|
|
|
|
|
func (a *AsyncMotor) TableName() string {
|
|
|
|
|
|
return "AsyncMotor"
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-12-30 16:39:11 +08:00
|
|
|
|
// SetComponentID func implement BasicModelInterface interface
|
|
|
|
|
|
func (a *AsyncMotor) SetComponentID(componentID int64) {
|
|
|
|
|
|
a.ComponentID = componentID
|
2024-12-09 16:05:48 +08:00
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ReturnTableName func implement BasicModelInterface interface
|
|
|
|
|
|
func (a *AsyncMotor) ReturnTableName() string {
|
|
|
|
|
|
return "AsyncMotor"
|
|
|
|
|
|
}
|