필터 지우기
필터 지우기

Is it possible use a battery in Simulink?

조회 수: 7 (최근 30일)
Tony Castillo
Tony Castillo 2021년 2월 17일
댓글: Tony Castillo 2021년 11월 5일
Dear all,
I am modeling a power microgrid model, like the example "power_microgrid", however, I wonder wether is feasible interchange the battery model of the example for one developed in Simscape or not?. My question arises because they are different environments, the battery is shown below.
  댓글 수: 6
Vinay Gurram
Vinay Gurram 2021년 6월 22일
Hi
Singular matrix error is commonly seen when there is a zero in denominator, could you disable all zero crossings from configuration parameters and check once.
Rik
Rik 2021년 6월 23일
Comment posted as flag by @Tony Castillo:
I appreciate your attempt, but even I added a zero crossing block at the output port of the Symscape Electrical battery the error still persisted

댓글을 달려면 로그인하십시오.

채택된 답변

Joel Van Sickel
Joel Van Sickel 2021년 7월 2일
Hello Tony,
the Rcond warning can be very common when using specialized power systesm. Essentially, the tool generates matrices behind the scenes, and they can be near singular depending on circuit topologies and parameter values. It can be non-trivial to determine what is causing these. Some things to try is adding snubbers, changing your time step value, removing extremely small or extremely larger circuit parameters. Eliminating parts of the model and and replacing them with controlled current/voltage sources to isolate what is causing the issue is another possibility. There is a chance your model will work just fine though. It is good to compare fixed step to variable step (ode23Tb) to make sure the results line up.
However, the error in your case is that something with the connection of the battery has the wrong signal dimensions. Can you provide a screen shot of both how you have connected the battery to the microgrid and the battery parameter settings?
Regards,
Joel
  댓글 수: 8
Tony Castillo
Tony Castillo 2021년 11월 5일
Thank you for your information
Tony Castillo
Tony Castillo 2021년 11월 5일
Dear Joel,
I have started to replace some parts of the model in order to increase the accuracy and flexibility of the model as you former kindly recommended to me, but I am stuck in a error produced by the mode of the simulation "continous".
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 2.638315e-18. [2 similar]
Matching "Goto" for "From" 'SCS_PED_model/Scopes/From2' not found
Component: Simulink | Category: Block warning
Matching "From" for "Goto" 'SCS_PED_model/Goto14' not found [2 similar]
Component: Simulink | Category: Block warning
Unconnected output line found on 'SCS_PED_model/Battery_Control/Product9' (output port: 1)
Component: Simulink | Category: Block warning
Complex signal mismatch. 'Input Port 4' of 'SCS_PED_model/powergui/EquivalentModel1/Sources/Mux' expects a signal of numeric type real. However, it is driven by a signal of numeric type complex
Component: Simulink | Category: Model error
Complex signal mismatch. 'Output Port 1' of 'SCS_PED_model/powergui/EquivalentModel1/Sources/From4' is a signal of numeric type complex. However, it is driving a signal of numeric type real
Component: Simulink | Category: Model error
Can you provide any workaround to overcome this problem?
PD. I wonder, what if I used mode discrete-phasor rather than phasor as I was using initially?
Best regards

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Composite Components에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by