Сделан тест диодов в матлаб/симулинк
This commit is contained in:
parent
a2043006cc
commit
51b862fbb7
36
.gitignore
vendored
36
.gitignore
vendored
@ -101,3 +101,39 @@ compile_commands.json
|
||||
|
||||
*_qmlcache.qrc
|
||||
|
||||
|
||||
|
||||
|
||||
# ---> MATLAB
|
||||
# Windows default autosave extension
|
||||
*.asv
|
||||
|
||||
# OSX / *nix default autosave extension
|
||||
*.m~
|
||||
|
||||
# Compiled MEX binaries (all platforms)
|
||||
*.mex*
|
||||
|
||||
# Packaged app and toolbox files
|
||||
*.mlappinstall
|
||||
*.mltbx
|
||||
|
||||
# Generated helpsearch folders
|
||||
helpsearch*/
|
||||
|
||||
# Simulink code generation folders
|
||||
slprj/
|
||||
sccprj/
|
||||
|
||||
# Matlab code generation folders
|
||||
codegen/
|
||||
|
||||
# Simulink autosave extension
|
||||
*.autosave
|
||||
|
||||
# Simulink cache files
|
||||
*.slxc
|
||||
|
||||
# Octave session info
|
||||
octave-workspace
|
||||
|
||||
|
Binary file not shown.
BIN
MATLAB/diode_tester.slx.original
Normal file
BIN
MATLAB/diode_tester.slx.original
Normal file
Binary file not shown.
37
MATLAB/sim_model_init.m
Normal file
37
MATLAB/sim_model_init.m
Normal file
@ -0,0 +1,37 @@
|
||||
% Инициализация параметров модели
|
||||
clear, clc
|
||||
|
||||
Ts = 1e-7;
|
||||
|
||||
% первое число - инициализация
|
||||
% второе число - время подключения DC1 к цепи
|
||||
% третье число - время отключения DC1 от цепи
|
||||
% четвертое число - время подключения DC2 к цепи
|
||||
% пятое число - время отключения DC2 от цепи
|
||||
switch_time = [0 0.01 0.011 0.03 0.031 0.05 0.051];
|
||||
|
||||
|
||||
DC1_V = 5;
|
||||
DC2_V = 5;
|
||||
|
||||
|
||||
R1_R = 10000;
|
||||
R2_R = 1;
|
||||
% L1_L = ;
|
||||
R3_R = 1;
|
||||
C1_C = 1e-6;
|
||||
|
||||
D1_R = 1e-3;
|
||||
D1_L = 1e-6;
|
||||
D1_Voltage = 0.8;
|
||||
D1_SnubberR = 500;
|
||||
D1_SnubberC = 250e-9;
|
||||
|
||||
|
||||
SW_R = 1e-3;
|
||||
SW_SnubberR = 1e5;
|
||||
SW_SnubberC = inf;
|
||||
|
||||
|
||||
AC_V = 5;
|
||||
AC_Freq = 5;
|
Loading…
Reference in New Issue
Block a user