Problem with the Transformer model in matlab simulink

19 次查看(过去 30 天)
When I run the simulation without the transformer block, everything works fine. However, when I add the transformer to the network, the waves become rectangular, and I receive the following error message:
"Warning: Could not evaluate MaskDisplay commands of block IEEE34bus_v2019b_Discrete_ZIPload/Three-Phase Transformer (Two Windings)1': Unable to resolve the name ST.satx."
The model involves connecting the transformer to a three-phase load with a constant current of 150 kW and 75 kVAR. How can I resolve this issue?
  2 个评论
Umar
Umar 2024-9-8
编辑:Umar 2024-9-8

Hi @Asi angel,

You mentioned, “When I run the simulation without the transformer block, everything works fine. However, when I add the transformer to the network, the waves become rectangular, and I receive the following error message: "Warning: Could not evaluate MaskDisplay commands of block IEEE34bus_v2019b_Discrete_ZIPload/Three-Phase Transformer (Two Windings)1': Unable to resolve the name ST.satx."The model involves connecting the transformer to a three-phase load with a constant current of 150 kW and 75 kVAR. How can I resolve this issue?”

Please see my response to your comments below.

The issue seems to arise from the transformer block's inability to resolve certain parameters or variables, specifically the variable ST.satx which indicates that the variable is either undefined in the workspace or not properly initialized. The rectangular waveforms suggest that the transformer is not functioning correctly, likely due to the improper handling of the input signals or parameters.

To resolve this issue, follow these steps:

Step#1 ,Check Variable Definition:

Make sure that the variable ST.satx is defined in the MATLAB workspace. You can do this by executing the following command in the MATLAB Command Window:



   evalin('base', 'ST.satx');

For more information on “evalin” function, please refer to

https://www.mathworks.com/help/matlab/ref/evalin.html


If it returns an error, you need to define it appropriately.

Step#2,Initialize the Variable:

If ST.satx is not defined, you can initialize it in your MATLAB script or directly in the workspace. For example:



ST.satx = <appropriate_value>; % Replace <appropriate_value> with   the  correct value for your model


Step#3, Review Transformer Parameters:

Double-check the parameters of the transformer block to ensure they are set correctly. Pay special attention to the winding ratios and any other settings that might affect its operation.

Step#4, Simulate Again:

After making the necessary adjustments, run the simulation again to verify that the issue has been resolved.

I would also suggest running your Simulink model in new version because sometimes the old version have some bugs which gets fixed in newer version.

Hope this helps.

Shivam Gothi
Shivam Gothi 2024-9-16
Hello @Asi angel,
can you please shared the simulink model file along with the parameters necessary to initialise in base workspace so that I can reproduce the error from my end and suggest some solution?
I also faced similiar issue, but I managed to get some workaround by correcting power system network.

请先登录,再进行评论。

回答(1 个)

Umar
Umar 2024-9-8
移动:Sabin 2025-1-23

Hi @Asi angel,

You mentioned, “When I run the simulation without the transformer block, everything works fine. However, when I add the transformer to the network, the waves become rectangular, and I receive the following error message: "Warning: Could not evaluate MaskDisplay commands of block IEEE34bus_v2019b_Discrete_ZIPload/Three-Phase Transformer (Two Windings)1': Unable to resolve the name ST.satx."The model involves connecting the transformer to a three-phase load with a constant current of 150 kW and 75 kVAR. How can I resolve this issue?”

Please see my response to your comments below.

The issue seems to arise from the transformer block's inability to resolve certain parameters or variables, specifically the variable ST.satx which indicates that the variable is either undefined in the workspace or not properly initialized. The rectangular waveforms suggest that the transformer is not functioning correctly, likely due to the improper handling of the input signals or parameters.

To resolve this issue, follow these steps:

Step#1 ,Check Variable Definition:

Make sure that the variable ST.satx is defined in the MATLAB workspace. You can do this by executing the following command in the MATLAB Command Window:



   evalin('base', 'ST.satx');

For more information on “evalin” function, please refer to

https://www.mathworks.com/help/matlab/ref/evalin.html


If it returns an error, you need to define it appropriately.

Step#2,Initialize the Variable:

If ST.satx is not defined, you can initialize it in your MATLAB script or directly in the workspace. For example:



ST.satx = <appropriate_value>; % Replace <appropriate_value> with   the  correct value for your model


Step#3, Review Transformer Parameters:

Double-check the parameters of the transformer block to ensure they are set correctly. Pay special attention to the winding ratios and any other settings that might affect its operation.

Step#4, Simulate Again:

After making the necessary adjustments, run the simulation again to verify that the issue has been resolved.

I would also suggest running your Simulink model in new version because sometimes the old version have some bugs which gets fixed in newer version.

Hope this helps.

  5 个评论
Asi angel
Asi angel 2024-9-14
移动:Sabin 2025-1-23
What do you think is the best solution for this issue?
moreover, when I tried adding the power flow buses to the distribution network, I encountered the following error: 'Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 1.218374e-17.'"
Umar
Umar 2024-9-15
移动:Sabin 2025-1-23

Hi @Asi angel,

You asked, “What do you think is the best solution for this issue? moreover, when I tried adding the power flow buses to the distribution network, I encountered the following error: 'Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 1.218374e-17.'"

Please see my response to your comments below.

My analysis for the errors you encountered in your Simulink model are listed below.

Please bear in mind that a matrix is singular when it does not have an inverse, which typically occurs when its determinant is zero. In practical terms, this means that the equations represented by the matrix are linearly dependent,some equations do not provide new information. So, in my opinion the causes of the error are due to

Poor Scaling: This can happen when there are large disparities in the magnitudes of the elements in the matrix. For example, if some values are very large while others are very small, numerical methods may struggle to find accurate solutions.

Modeling Issues: If the distribution network is incorrectly modeled (e.g., missing connections or incorrect parameters), it could lead to a situation where the system is not fully defined, contributing to singularity.

Insufficient Data: If there are not enough buses or branches defined in your network model, it might not be possible to solve for all variables.

So, based on the above mentioned causes of error, I will propose the following solutions to help you resolve your problem.

Check Model Configuration: Make sure that all buses and branches in your distribution network are correctly defined and connected. Also, review the parameters of each component (e.g., resistances, reactances) to ensure they are realistic and correctly specified.

Scaling Adjustments: Normalize values within your model if there is a wide range of magnitudes. For example, consider using per-unit (pu) systems for more consistent scaling across components.

Matrix Conditioning: Use techniques such as regularization to improve matrix conditioning. This involves adding a small value to the diagonal elements of your matrix to prevent singularity. You can also apply numerical techniques such as pivoting or iterative solvers that are more robust against poorly conditioned matrices.

Simulink Diagnostics: Utilize built-in diagnostics within Simulink to identify potential issues with your model configuration. Tools like Model Advisor can help spot common pitfalls. Please click the link below for more information regarding “Model Advisor”.

https://www.mathworks.com/help/simulink/ug/select-and-run-model-advisor-checks.html

Examine simulation settings and solver options; sometimes adjusting these can alleviate numerical problems. Also, before scaling up your model, test it with a simplified version that has fewer components but maintains similar characteristics. This can help isolate the source of errors.

Hope this helps.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by