Skip to content
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

How to run ThermoCycle Examples with OpenModelica. #2

Open
SeverinMe0 opened this issue Apr 26, 2024 · 0 comments
Open

How to run ThermoCycle Examples with OpenModelica. #2

SeverinMe0 opened this issue Apr 26, 2024 · 0 comments

Comments

@SeverinMe0
Copy link

Hello Shjiang,
Thank you very much for your upload of updated ThermoCycle Library. I myself try to simulate ORC dynamic behavior.
I was wondering if you had the chance to test your updated library using OpenModelica.
I uploaded your library in its last version, thus I am working with Modelica 4.0.0, OpenModelica 1.9.1 Beta1. The libraries compile well.
Currently I cannot have ThermoCycle's Examples or "step_by_step" simulations to work. For instance, when trying to simulate "ThermoCycle.Examples.Simulations.step_by_step.ORC_245fa.step_0", I get the following error :

[1] 16:33:31 Translation Warning
[ExternalMedia.Media.BaseClasses.ExternalTwoPhaseMedium: 288:13-292:19]: [Pure function 'ThermoCycle.Examples.Simulations.step_by_step.ORC_245fa.step0.sourceWF.Medium.setState_pTX' contains a call to impure function 'ThermoCycle.Examples.Simulations.step_by_step.ORC_245fa.step0.sourceWF.Medium.setState_pT'.](omeditmessagesbrowser:///ExternalMedia.Media.BaseClasses.ExternalTwoPhaseMedium?lineNumber=288)

[2] 16:33:31 Translation Error
[ThermoCycle.Components.FluidFlow.Pipes.CellConst: 77:1-77:64]: Type mismatch for positional argument 1 in sum(a=SecondaryFluid.Cells.qdot). The argument has type:
  Real
expected type:
  Array

As I am relatively new to Modelica, it might be a simple error to correct, I apologize if so. However, by any chance, do you manage to make your library work with OpenModelica?
Thank again for your work and help,
Sincerely,
Severin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant