-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model Buildings.Electrical.DC.Loads.Examples.LinearizedLoad fails in OM due to a wrong initialization #4048
Comments
That for reporting. I will correct it and also in IBPSA (ibpsa/modelica-ibpsa#1942) |
mwetter
added a commit
that referenced
this issue
Nov 14, 2024
This closes #4048. It also merges minor changes from IBPSA.
mwetter
added a commit
that referenced
this issue
Nov 14, 2024
mwetter
added a commit
that referenced
this issue
Nov 14, 2024
mwetter
added a commit
that referenced
this issue
Nov 14, 2024
This was referenced Nov 14, 2024
mwetter
added a commit
that referenced
this issue
Nov 18, 2024
This closes #4048. It also merges minor changes from IBPSA.
mwetter
added a commit
that referenced
this issue
Nov 18, 2024
mwetter
added a commit
that referenced
this issue
Nov 18, 2024
mwetter
added a commit
that referenced
this issue
Nov 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The simulation of the model
Buildings.Electrical.DC.Loads.Examples.LinearizedLoad
fails in OM by throwing the following error:more precisely, the error is thrown during the lambda-0 step of the homotopy process:
The equation that generates the issue is the following, placed at the top-level in the model:
where
sen_nlin
is the sensor connected in series to theNonlinearLoad
, as shown in the following figure:The problem arises because the
NonlinearLoad
is initialized by using the defaultzero_current
initMode, that prescribes the current to be zero in the entire branch during the lambda-0 step, as shown in the initial equations of theNonlinearLoad
model (i.e., of theConductor
model):thus leading the
sen_nlin.P=0
from the sensorsen_nlin
during the lambda_0 step.One solution can be to set the initMode to
linearized
in theNonlinearLoad
, so that P is not equal to zero during the lambda-0 step.BTW Dymola seems to be able to manage this singularity, but the right way is to remove them.
The text was updated successfully, but these errors were encountered: