modelRT/orm/async_motor.go

95 lines
5.3 KiB
Go
Raw Normal View History

// Package orm define database data struct
package orm
import "github.com/gofrs/uuid"
// AsyncMotor define asynchronous motor model
type AsyncMotor struct {
UUID uuid.UUID `gorm:"column:global_uuid;primaryKey"`
ComponentID int64 // compoent表ID
NoLoadVoltage float64 // 空载电压
NoLoadElectricCurrent float64 // 空载电流
NoLoadPower float64 // 空载电功率
BlockageF1Frequency float64 // 堵转 f1 频率
BlockageF1Voltage float64 // 堵转 f1 频率电压
BlockageF1ElectricCurrent float64 // 堵转 f1 频率电流
BlockageF1Power float64 // 堵转 f1 频率电功率
BlockageF2Frequency float64 // 堵转 f2 频率
BlockageF2Voltage float64 // 堵转 f2 频率电压
BlockageF2ElectricCurrent float64 // 堵转 f2 频率电流
BlockageF2Power float64 // 堵转 f2 频率电功率
APhaseDCResistance float64 // A相直流电阻
BPhaseDCResistance float64 // B相直流电阻
CPhaseDCResistance float64 // C相直流电阻
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
RunningExcitationResistance float64 // 运行励磁电阻Rfe
StartUpExcitationResistance float64 // 启动励磁电阻Rfe
ColdStateExcitationResistance float64 // 冷态励磁电阻Rfe
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 // 热载曲线坐标点
CompensationForEnvConditions int // 环境条件补偿环境温度
MinLimitOfTerminalVoltage int // 机端电压下限
MaxLimitOfStarts int // 起动次数上限
StartingStrategy string // 起动策略
NormalStartUpTime int // 起动转正常时间
RestartBatch int // 再起动批次
ElectricCurrentMeasurementLevel string // 电流测量级
VoltageMeasurementLevel string // 电压测量级
ElectricCurrentProtectionLevel1 string // 电流保护级1
ElectricCurrentProtectionLevel2 string // 电流保护级1
VoltageProtectionLevel string // 电压保护级
Trend string // 潮流
Frequency string // 频率
StatusMeasurementPoint string // 状态测点
Machinery string // 机械
}
/*
(1)温度的格式为正整数0~500
(2)电阻和电抗的参数为正实数三位整数五位小数的格式XXX.XXXXX
*/
// TableName func respresent return table name of asynchronous motor
func (a *AsyncMotor) TableName() string {
return "AsyncMotor"
}
// SetComponentID func implement BasicModelInterface interface
func (a *AsyncMotor) SetComponentID(componentID int64) {
a.ComponentID = componentID
return
}
// ReturnTableName func implement BasicModelInterface interface
func (a *AsyncMotor) ReturnTableName() string {
return "AsyncMotor"
}