* Z:\home\khalils\Downloads\files\data\raw_asc\6fd4634be33c_Motor_Modelling.asc
* Generated by LTspice 26.0.1 for Windows.
V_DC NC_01 NC_02 PWL file=Rectifier_Single_Phase.txt
M1 N005 V_G1 HB+ HB+ IXTH88N30P
M3 N005 V_G3 HB- HB- IXTH88N30P
V1 V_G2 0 PULSE(0 10 0.02866m 1p 1p 0.02134m 0.05m)
V2 V_G1 HB+ PULSE(0 10 0 1p 1p 0.02866m 0.05m)
V3 V_G4 0 10
V4 V_G3 HB- 0
V_sense_1 N007 HB- 0
V_sense_2 N006 N008 0
LMotor_inductance HB+ N002 {L_motor}
LInertia_constant N001 N003 {L_inertia}
RMotor_resistance N002 N004 {R_motor}
RFriction N003 N006 {R_loss}
BV_torque N001 N008 V=I(V_sense_1)*K_t
Back_emf N004 N007 V=I(V_sense_2)*K_emf
V5 N005 0 320
M2 HB+ V_G2 0 0 IXTH88N30P
M4 HB- V_G4 0 0 IXTH88N30P
.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
FLAG 224 336 0
FLAG 496 -32 V_G1
IOPIN 496 -32 In
FLAG 496 256 V_G2
IOPIN 496 256 In
FLAG 912 -32 V_G3
IOPIN 912 -32 In
FLAG 912 256 V_G4
IOPIN 912 256 In
FLAG 944 32 V_S3
IOPIN 944 32 In
FLAG 528 32 V_S1
IOPIN 528 32 In
FLAG 528 288 V_S2
IOPIN 528 288 In
FLAG 944 288 V_S4
IOPIN 944 288 In
FLAG 912 -592 V_G1
IOPIN 912 -592 Out
FLAG 768 -592 V_S1
IOPIN 768 -592 Out
FLAG 912 -432 V_G2
IOPIN 912 -432 Out
FLAG 768 -432 V_S2
IOPIN 768 -432 Out
FLAG 480 -592 V_G3
IOPIN 480 -592 Out
FLAG 336 -592 V_S3
IOPIN 336 -592 Out
FLAG 480 -432 V_G4
IOPIN 480 -432 Out
FLAG 336 -432 V_S4
IOPIN 336 -432 Out
FLAG 1936 -512 HB+
IOPIN 1936 -512 In
FLAG 672 80 HB+
IOPIN 672 80 Out
FLAG 832 80 HB-
IOPIN 832 80 Out
FLAG 1936 112 HB-
IOPIN 1936 112 In
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
SYMBOL nmos 912 -112 R0
SYMATTR InstName M3
SYMATTR Value IXTH88N30P
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 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 voltage 1936 0 R0
SYMATTR InstName V_sense_1
SYMATTR Value 0
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 ind 2704 -464 R0
SYMATTR InstName Inertia_constant
SYMATTR Value {L_inertia}
SYMBOL res 1920 -352 R0
SYMATTR InstName Motor_resistance
SYMATTR Value {R_motor}
SYMBOL res 2704 -288 R0
SYMATTR InstName Friction
SYMATTR Value {R_loss}
SYMBOL bv 2304 -480 R0
SYMATTR InstName V_torque
SYMATTR Value V=I(V_sense_1)*K_t
SYMBOL bv 1936 -192 R0
SYMATTR InstName Back_emf
SYMATTR Value V=I(V_sense_2)*K_emf
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 496 176 R0
SYMATTR InstName M2
SYMATTR Value IXTH88N30P
SYMBOL nmos 912 176 R0
SYMATTR InstName M4
SYMATTR Value IXTH88N30P
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