How to properly run simple Simulink circuit?

Good day,
I am having issues with simulink. I am trying to simulate a portion of a circuit that I am trying to develop. I am just not understanding how simulink works. I created a portion of my circuit, stepping up a 12V DC voltage from a battery (from a DC to DC converter) to 4.5kv and it's suppose to charge a capacitor.
Source is 12 V - stepping it up to 4.5kV, and the capacitor should be charged at 4.5kV of course. I put a volt meter or a "voltage sensor" in parallel with the capacitor to verify the voltage.
The potentionmeter is used to adjust the DC-to-DC converter output (output should be somewhat linear to input). In real life, I have a dc-to-dc converter that has a max output of 6000V, and 1.67mA. At max, it draws a maximum of 1.5A. The dc-to-dc converter that I have is a 12V source.
I have attached the file, I hope someone can help me. This is driving me nuts.
When I am trying to run it, I am getting the following error.
I am using simscape for this. If there is a better recommendation please let me know.
Thank you in advance!!!
The model may not give enough information to make it possible to solve for values of some of its variables. Specific advice is given below.
Tie variable 'Voltage_Sensor.p.v' (Voltage) to a definite value, for example by connecting an appropriate domain reference block.
Dependency found among topology equations. Check for missing reference node.
Component:Simulink | Category:Modelwarning
The model may not give enough information to make it possible to solve for values of some of its variables. Specific advice is given below.
Tie variable 'Voltage_Sensor.p.v' (Voltage) to a definite value, for example by connecting an appropriate domain reference block.
Dependency found among topology equations. Check for missing reference node.
Component:Simulink | Category:Modelwarning
An error occurred while running the simulation and the simulation was terminated
Caused by:
At time 0.000000, an assertion is triggered. Supply-side current exceeded the Maximum expected supply-side current. The assertion comes from:
Block path: step_up_charge_cap/DC-DC Converter
Assert location: (location information is protected)
Component:Simulink | Category:Blockerror

2 commentaires

Do you have a ground in your circuit? The error seems to suggest you don't have a reference point.
Unfortunately, I don't have the right licenses to view the model. Maybe you could post a screenshot?
cancel077
cancel077 le 19 Fév 2019
Yes there is a ground. Here is a snapshot. screenshot.png

Connectez-vous pour commenter.

 Réponse acceptée

Patel Mounika
Patel Mounika le 19 Fév 2019

1 vote

Maximum expected supply-side current (Block parameter of DC-DC converter) is set to 1.5mA, but the circuit is drawing more current than specified, so try changing maximum expected supply-side current to appropriate value. For example, I tried changing it to 1.5 A and there were no errors produced.

9 commentaires

cancel077
cancel077 le 19 Fév 2019
Modifié(e) : cancel077 le 19 Fév 2019
I am not sure how it is working for you. but I changed it to 1.5A as yes I had it at 1.5mA, but I am still getting the error. It has something to do with my volt meter /volt sensor. It highlights it for me.
Now when I remove it, I still get an error saying, this time about the DC to DC converter (see below). So I am still unsure why it's working for you lol. Can you read the voltage coming out of the capacitor when you run it?
Thanks again,
The model may not give enough information to make it possible to solve for values of some of its variables. Specific advice is given below.
Tie variable 'DC_DC_Converter.p2.v' (Voltage) to a definite value, for example by connecting an appropriate domain reference block.
Dependency found among topology equations. Check for missing reference node.
Component:Simulink | Category:Modelwarning
The model may not give enough information to make it possible to solve for values of some of its variables. Specific advice is given below.
Tie variable 'DC_DC_Converter.p2.v' (Voltage) to a definite value, for example by connecting an appropriate domain reference block.
Dependency found among topology equations. Check for missing reference node.
Component:Simulink | Category:Modelwarning
An error occurred while running the simulation and the simulation was terminated
Caused by:
Trouble solving algebraic equations in differential-algebraic system. Singular iteration matrix encountered with step size 2.4595493404330583E-8 at time 0.0. Try tightening the error tolerances. If the problem persists, check the model structure and values of parameters.
Patel Mounika
Patel Mounika le 20 Fév 2019
The error is caused because their is no reference point provided to the volt sensor,so connect the negative terminal of the volt sensor with ground.
cancel077
cancel077 le 20 Fév 2019
I managed to get the voltage error removed. But how about the dc to dC converter Error?
Patel Mounika
Patel Mounika le 20 Fév 2019
What is the DC to DC converter error?
cancel077
cancel077 le 20 Fév 2019
The model may not give enough information to make it possible to solve for values of some of its variables. Specific advice is given below.
Tie variable 'DC_DC_Converter.p2.v' (Voltage) to a definite value, for example by connecting an appropriate domain reference block.
Dependency found among topology equations. Check for missing reference node.
Component:Simulink | Category:Modelwarning
The model may not give enough information to make it possible to solve for values of some of its variables. Specific advice is given below.
Tie variable 'DC_DC_Converter.p2.v' (Voltage) to a definite value, for example by connecting an appropriate domain reference block.
Dependency found among topology equations. Check for missing reference node.
Component:Simulink | Category:Modelwarning
An error occurred while running the simulation and the simulation was terminated
Caused by:
Trouble solving algebraic equations in differential-algebraic system. Singular iteration matrix encountered with step size 2.4595493404330583E-8 at time 0.0. Try tightening the error tolerances. If the problem persists, check the model structure and values of parameters.
Patel Mounika
Patel Mounika le 20 Fév 2019
I have made modifications to the model and attached the same.Please look into it.
cancel077
cancel077 le 20 Fév 2019
Modifié(e) : cancel077 le 20 Fév 2019
would you be able to export it as for an older matlab? I am unable to open it. My matlab is 2016b and I can't upgrade it as I am using a school computer. Thank you again
Patel Mounika
Patel Mounika le 21 Fév 2019
I have exported it to 2016b.Hope this helps.
cancel077
cancel077 le 21 Fév 2019
it works. I guess all I had to do was put a ground as reference! In real life I don't need to, which is why it confused me! Thank you appreciate it!
On a side note, you wouldn't know how to add a trigger transformer or a spark gap to a simulink would you?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simscape Electrical dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by