Simscape Electrical: Solver Settings - Best Practices

  Рет қаралды 8,362

Electrification Enthusiasts

Electrification Enthusiasts

Күн бұрын

Пікірлер: 10
@hasanovmaqsud
@hasanovmaqsud 3 жыл бұрын
Man, I like the way you explain the stuff, thank you very much for your awesome work here! I would be happy to see a course in Electrical Engineering done on Simscape by you. Take care and all the best!
@rahultandon9749
@rahultandon9749 Жыл бұрын
Elaborate on how to use different solvers for different modules of a model
@srinivasansubramanian7333
@srinivasansubramanian7333 Жыл бұрын
Can discrete state solvers be used for simscape models? If not, what models do I use to have a realtime deployment for eg. in a microautobox?
@blaaa5144
@blaaa5144 2 жыл бұрын
Amazing video! Thank you very much for this content. Have you ever used LTspice components (SiC MOSFET) in Simscape Electrical? I know that the subcircuit2ssc function allows the conversion of .lib files and then the component can be generated in library browser. I have done all these steps. In the case of a buck converter, the signals are good. In the case of a single phase h bridge inverter, the simulation time becomes extremely slow, the signals are not good, etc. I have not found any examples or mathworks videos, using this approach with an inverter. You will save me if you make a video about it :D
@electrificationenthusiasts8611
@electrificationenthusiasts8611 2 жыл бұрын
Unfortunately, some of the LTspice models uses LTspice proprietary functions that don't import, so I have to look for PSPICE equivalents or hand modify the file to get the import to work. At that point I'm more likely to just use the n-channel mosfet and parameterize it from the data sheet.
@gokhanbayraktar8313
@gokhanbayraktar8313 Жыл бұрын
​@@electrificationenthusiasts8611hello, do you have a video about how to parametrize the n-channel mosfet from datasheet?
@niteshkumar6072
@niteshkumar6072 3 жыл бұрын
Can you please explain advantages of simscape models over simulink models.....why should we prefer simscape models.
@electrificationenthusiasts8611
@electrificationenthusiasts8611 3 жыл бұрын
The simple reason is that is is much easier to put together complex models in Simscape than Simulink. Simscape supports bi-directional connections while all Simulink models must be represented by input and output ports. This makes Simscape models much easier to maintain and change compared to Simulink. Getting deeper into the math, the Simscape engine can solve DAEs which allows for more accurate representations of things like variable resistances and other physical realities that can't be represented as well by an ODE. A good exercise if you have free time, is to design your own RC circuit in Simulink and then in Simscape. Then add another RC circuit across the capacitor of that circuit. It is very easy to do in Simscape (just cut and paste), while it is hard to do in Simulink (your must rederive all of the equations).
@vandaliztik9266
@vandaliztik9266 3 жыл бұрын
Does the solver and the algorithm behind is distoring the simulation. For example, te solver itself makes the simulation more damped than it is. I ve been simulating converter with switch model and DPL. I tried to replicate high-frequency resonance, I suspect the simulation is overly damped than it should be. Could you please explain to us that how the solver changes the system damping
@electrificationenthusiasts8611
@electrificationenthusiasts8611 2 жыл бұрын
A computer simulation is almost always an estimation of numerical equations, and even those equations if solved analytically, are a simplification of reality. For an ODE solver, which plays a large role in Simulink, certain algorithms have a tendency to either over estimate, or under estimate the integral of an equation. This is particularly noticeable for first order methods like forward and backward Euler. If you are using a variable step solver such as ode23t or the DAE solver, you probably aren't going to see an issue with damping. However, to make sure, you can tighten your tolerance and see if the simulation changes. By default, the simulation tolerance is rel: 1e-3, and abs: auto. You can change both of these to 1e-5 and see if your simulation results change. If there is no difference, it is likely an issue with the model or model parameters, and not the solver. If the tighter tolerance makes a noticeable difference, then you have a particularly challenging topology for the solver to handle and will need to have slower simulations with the tighter tolerance to get accurate results. Having particularly fast frequencies on top of an otherwise slow system (think wide bandgap device turn on and turn off transients compared to line frequency) can be a reason you would need tighter tolerances. One thing that happens when the tolerance is made tighter, is essentially the solver takes smaller time steps (I'm leaving out why and how for brevity), and the smaller the time step, the more accurate the estimation of the integral. The integral error approaches 0 as the time step approaches 0, but it is physically impossible to have a time step of 0, so you always have some error.
Simscape Electrical Crash Course/Tutorial
30:05
Electrification Enthusiasts
Рет қаралды 50 М.
Simulink: Tips and Tricks
36:48
MATLAB
Рет қаралды 37 М.
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 44 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 70 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 2,9 МЛН
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
Premiers pas avec Simscape Multibody dans Matlab Simulink
18:31
Alexandre Popoff
Рет қаралды 2,4 М.
Generating Code with Simscape Models
18:51
Electrification Enthusiasts
Рет қаралды 788
Simulation of electric circuit using SIMULINK and SIMSCAPE
12:20
NIK RUMZI NIK IDRIS
Рет қаралды 8 М.
Simscape Electrical Modeling Practices for Fast Simulation
59:30
Radio Antenna Fundamentals   Part 1 1947
26:09
Gerry Trenwith
Рет қаралды 408 М.
6 0 Simulink   Solver selection 1
14:26
Simulation guide
Рет қаралды 9 М.
OnRamp For Power Electronics Simulation
55:52
Agastya Siri
Рет қаралды 1,8 М.
Dual Active Bridge Converter - Simplified
1:26:10
Free Online Courses on Elec.Engg. by Bhuvaneswari
Рет қаралды 7 М.
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 44 МЛН