You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
This is related to #44
One of our customer have problems with the Bode plot in M_LS2.
In the attached package, the example model Model.Sample.Model_sample_step_fodr can be used to reproduce the issue.
Running the bode plot Modelica_LinearSystems2.ModelAnalysis.TransferFunctions("Model.Sample.Model_sample_step_fodr");
only the phase plot is generated, the magnitude plot is not ok.
The customer has worked around the issue by bypassing the balancing. Examples in the attachment in the sub package "Functions", the function with "_f" is the customer modified code (version numbers in the function refers to Dymola versions).
What is done is to bypass the balancing
// Balance system
(,A,Bfull,Cfull) :=Internal.balanceABC(A=ss.A, B=ss.B, C=ss.C);
//----------------------------------------------------------------------
A := ss.A; //add
//----------------------------------------------------------------------
and
//----------------------------------------------------------------------
// Perform computation from every input to every output
for i1 in 1:size(ss.C, 1) loop
for i2 in 1:size(ss.B, 2) loop
// Compute zeros
B :=matrix(ss.B[:, i2]);
C :=transpose(matrix(ss.C[i1, :]));
D :=matrix(ss.D[i1, i2]);
//----------------------------------------------------------------------
//----------------------------------------------------------------------
// // Perform computation from every input to every output
// for i1 in 1:size(Cfull, 1) loop
// for i2 in 1:size(Bfull, 2) loop
// // Compute zeros
// B :=matrix(Bfull[:, i2]);
// C :=transpose(matrix(Cfull[i1, :]));
// D :=matrix(ss.D[i1, i2]);
//----------------------------------------------------------------------
Could you analyze the issue, is there a problem with the balancing?
Model_2022.txt
The attached model is using Modelica 4 and compatible M_LS, but the customer code fix is based on an older version.
Best regards,
Ulf
The text was updated successfully, but these errors were encountered:
Hi,
This is related to #44
One of our customer have problems with the Bode plot in M_LS2.
In the attached package, the example model Model.Sample.Model_sample_step_fodr can be used to reproduce the issue.
Running the bode plot
Modelica_LinearSystems2.ModelAnalysis.TransferFunctions("Model.Sample.Model_sample_step_fodr");
only the phase plot is generated, the magnitude plot is not ok.
The customer has worked around the issue by bypassing the balancing. Examples in the attachment in the sub package "Functions", the function with "_f" is the customer modified code (version numbers in the function refers to Dymola versions).
What is done is to bypass the balancing
and
Could you analyze the issue, is there a problem with the balancing?
Model_2022.txt
The attached model is using Modelica 4 and compatible M_LS, but the customer code fix is based on an older version.
Best regards,
Ulf
The text was updated successfully, but these errors were encountered: