Simulation of an Electric Arc in Circuit

5 views (last 30 days)
Yossi Abutbul
Yossi Abutbul on 25 Sep 2016
Commented: Mukti Chaturvedi on 28 Jul 2022
I am trying to build the ssc model - "ssc_build".
I am getting the error:
"Error using ArcLib.IdealArc>equations (line 43)
No matching signature found for atan. atan takes one dimensionless argument.
Argument 1 = {[1x1 double], 'A'}
b = 1.4600
it = {[1x1 double], 'A'}"
Is it related to the atan function?

Answers (2)

Walter Roberson
Walter Roberson on 26 Sep 2016
When you open the model, notice the warnings:
Warning: File: Line: 1, the unit of value assigned to 'v' was changed from '1' to 'V'.
Warning: File: Line: 1, the unit of value assigned to 'i' was changed from '1' to 'A'.
Warning: File: Line: 1, the unit of value assigned to 'it' was changed from '1' to 'A'.
so for some reason, where effectively "no unit" was configured for those variables in the model, the variables are being forced to volts and amps.
At line 43 of IdealArc.ssc (the line warned about), you will find
v + TauV*v.der == a*Rc*(it)/(Rc*(it)*atan(b*(it))+a);
Because the variable it has been changed to units A, the expression b*it has units A, so Simscape is being asked to find arctan of some number of amps. But the arctan function, atan, is only configured to know how to take the arctan of something that has no units, so Simscape cannot find a function named atan that is configured to accept Amps as input.
It might take me a bit of time to figure out how to properly override units.
  3 Comments
Mukti Chaturvedi
Mukti Chaturvedi on 28 Jul 2022
Need more help on this issue. On making the suggested change in the IdealArc.ssc file, now getting this error:
=== Simulation (Elapsed: 1 sec) ===
Warning:File: Line: 1, the unit of value assigned to 'v' was changed from '1' to 'V'.
Warning:File: Line: 1, the unit of value assigned to 'i' was changed from '1' to 'A'.
Warning:File: Line: 1, the unit of value assigned to 'it' was changed from '1' to 'A'.
Error:Error compiling Simscape network for model sim_opencontact.
Caused by:
['sim_opencontact/Ideal Arc']: No matching signature found for atan. atan takes one dimensionless argument.
Argument 1 = {[1x1 double], 'A'}
b = [1x1 double]
it = {[1x1 double], 'A'}
=== Simulation (Elapsed: 2 sec) ===
Warning:File: Line: 1, the unit of value assigned to 'v' was changed from '1' to 'V'.
Warning:File: Line: 1, the unit of value assigned to 'i' was changed from '1' to 'A'.
Warning:File: Line: 1, the unit of value assigned to 'it' was changed from '1' to 'A'.
Warning:First solve for initial conditions failed to converge. Trying again with all high priorities relaxed to low.
Warning:Unable to satisfy all initial conditions. The variables involved are listed below.
The following variables are involved in a constraint that conflicts with their targets:
'Ideal_Arc.i' (Current)
'Ideal_Arc.v' (Voltage)
'Inductor.i_L' (Inductor current)
Here are the equations involved:
all components involved
'sim_opencontact/Arc Current Sensor'
Equation location is:
'C:\Program Files\MATLAB\R2022a\toolbox\physmod\simscape\library\m\+foundation\+electrical\+sensors\current.ssc' (line 31)

Sign in to comment.


Mukti Chaturvedi
Mukti Chaturvedi on 26 Jul 2022
How to access the arcLib_lib? Getting the library access error " ArcLib_lib not found". Thanks for any suggestion regarding this.
  2 Comments
Mukti Chaturvedi
Mukti Chaturvedi on 26 Jul 2022
Getting this error now. I am new to MATLAB, request you if you may pelase list the steps to work around with this file. attached the error file to this post.

Sign in to comment.

Categories

Find more on Get Started with Antenna Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by