* Z:\home\khalils\Downloads\files\data\raw_asc\6fd4634be33c_Motor_Modelling.asc
* Generated by LTspice 26.0.1 for Windows.
M2 HB+ V_G2 0 0 IXTH88N30P
V5 N005 0 320
V3 V_G4 0 10
V2 V_G1 HB+ PULSE(0 10 0 1p 1p 0.02866m 0.05m)
RMotor_resistance N002 N004 {R_motor}
LMotor_inductance HB+ N002 {L_motor}
V_sense_2 N006 N008 0
M1 N005 V_G1 HB+ HB+ IXTH88N30P
V1 V_G2 0 PULSE(0 10 0.02866m 1p 1p 0.02134m 0.05m)
BV_torque N001 N008 V=I(V_sense_1)*K_t
Back_emf N004 N007 V=I(V_sense_2)*K_emf
M4 HB- V_G4 0 0 IXTH88N30P
V_sense_1 N007 HB- 0
LInertia_constant N001 N003 {L_inertia}
M3 N005 V_G3 HB- HB- IXTH88N30P
V4 V_G3 HB- 0
RFriction N003 N006 {R_loss}
V_DC NC_01 NC_02 PWL file=Rectifier_Single_Phase.txt
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.tran 0 56m 0 0.01m
.PARAM K_t=0.2
.PARAM K_emf = 0.25
.PARAM L_motor = 1000u
.PARAM R_motor =1.2
.PARAM R_loss = 0.1m
.PARAM L_inertia = 20u
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2940 680
WIRE 368 -592 336 -592
WIRE 480 -592 448 -592
WIRE 800 -592 768 -592
WIRE 912 -592 880 -592
WIRE 2720 -496 2304 -496
WIRE 1936 -464 1936 -512
WIRE 2304 -464 2304 -496
WIRE 2720 -448 2720 -496
WIRE 368 -432 336 -432
WIRE 480 -432 448 -432
WIRE 800 -432 768 -432
WIRE 912 -432 880 -432
WIRE 1936 -336 1936 -384
WIRE 2720 -272 2720 -368
WIRE 1936 -176 1936 -256
WIRE 544 -144 224 -144
WIRE 960 -144 544 -144
WIRE 544 -112 544 -144
WIRE 960 -112 960 -144
WIRE 2720 -64 2720 -192
WIRE 1936 16 1936 -96
WIRE 544 32 544 -16
WIRE 544 32 528 32
WIRE 960 32 960 -16
WIRE 960 32 944 32
WIRE 224 48 224 -144
WIRE 544 80 544 32
WIRE 672 80 544 80
WIRE 960 80 960 32
WIRE 960 80 832 80
WIRE 1936 112 1936 96
WIRE 2304 112 2304 -384
WIRE 2720 112 2720 16
WIRE 2720 112 2304 112
WIRE 544 176 544 80
WIRE 960 176 960 80
WIRE 544 288 544 272
WIRE 544 288 528 288
WIRE 960 288 960 272
WIRE 960 288 944 288
WIRE 224 304 224 128
WIRE 544 304 544 288
WIRE 544 304 224 304
WIRE 960 304 960 288
WIRE 960 304 544 304
WIRE 224 336 224 304
IOPIN 496 -32 In
IOPIN 496 256 In
IOPIN 912 -32 In
IOPIN 912 256 In
IOPIN 944 32 In
IOPIN 528 32 In
IOPIN 528 288 In
IOPIN 944 288 In
IOPIN 912 -592 Out
IOPIN 768 -592 Out
IOPIN 912 -432 Out
IOPIN 768 -432 Out
IOPIN 480 -592 Out
IOPIN 336 -592 Out
IOPIN 480 -432 Out
IOPIN 336 -432 Out
IOPIN 1936 -512 In
IOPIN 672 80 Out
IOPIN 832 80 Out
IOPIN 1936 112 In
SYMBOL res 2704 -288 R0
SYMATTR InstName Friction
SYMATTR Value {R_loss}
SYMBOL voltage 1936 0 R0
SYMATTR InstName V_sense_1
SYMATTR Value 0
SYMBOL ind 2704 -464 R0
SYMATTR InstName Inertia_constant
SYMATTR Value {L_inertia}
SYMBOL voltage 896 -592 R90
WINDOW 0 37 30 VLeft 2
WINDOW 3 -54 270 VLeft 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value PULSE(0 10 0 1p 1p 0.02866m 0.05m)
SYMBOL voltage 464 -432 R90
WINDOW 0 37 30 VLeft 2
WINDOW 3 -54 270 VLeft 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 10
SYMBOL voltage 464 -592 R90
WINDOW 0 37 30 VLeft 2
WINDOW 3 -54 270 VLeft 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value 0
SYMBOL res 1920 -352 R0
SYMATTR InstName Motor_resistance
SYMATTR Value {R_motor}
SYMBOL bv 2304 -480 R0
SYMATTR InstName V_torque
SYMATTR Value V=I(V_sense_1)*K_t
SYMBOL nmos 912 176 R0
SYMATTR InstName M4
SYMATTR Value IXTH88N30P
SYMBOL bv 1936 -192 R0
SYMATTR InstName Back_emf
SYMATTR Value V=I(V_sense_2)*K_emf
SYMBOL nmos 496 176 R0
SYMATTR InstName M2
SYMATTR Value IXTH88N30P
SYMBOL voltage 2720 -80 R0
SYMATTR InstName V_sense_2
SYMATTR Value 0
SYMBOL ind 1920 -480 R0
SYMATTR InstName Motor_inductance
SYMATTR Value {L_motor}
SYMBOL voltage 896 -432 R90
WINDOW 0 37 30 VLeft 2
WINDOW 3 -54 270 VLeft 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value PULSE(0 10 0.02866m 1p 1p 0.02134m 0.05m)
SYMBOL voltage 224 32 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V5
SYMATTR Value 320
SYMBOL nmos 912 -112 R0
SYMATTR InstName M3
SYMATTR Value IXTH88N30P
SYMBOL voltage 48 64 R0
WINDOW 3 -458 10 Left 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value PWL file=Rectifier_Single_Phase.txt
SYMATTR InstName V_DC
SYMBOL nmos 496 -112 R0
SYMATTR InstName M1
SYMATTR Value IXTH88N30P
FLAG 224 336 0
FLAG 496 -32 V_G1
FLAG 496 256 V_G2
FLAG 912 -32 V_G3
FLAG 912 256 V_G4
FLAG 944 32 V_S3
FLAG 528 32 V_S1
FLAG 528 288 V_S2
FLAG 944 288 V_S4
FLAG 912 -592 V_G1
FLAG 768 -592 V_S1
FLAG 912 -432 V_G2
FLAG 768 -432 V_S2
FLAG 480 -592 V_G3
FLAG 336 -592 V_S3
FLAG 480 -432 V_G4
FLAG 336 -432 V_S4
FLAG 1936 -512 HB+
FLAG 672 80 HB+
FLAG 832 80 HB-
FLAG 1936 112 HB-
TEXT -240 368 Left 2 !.tran 0 56m 0 0.01m
TEXT 2360 -200 Left 2 !.PARAM K_t=0.2\n.PARAM K_emf = 0.25\n.PARAM L_motor = 1000u\n.PARAM R_motor =1.2\n.PARAM R_loss = 0.1m\n.PARAM L_inertia = 20u