Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » prasanjitdas111
  • » Profile

Posts

Posts

Oct-12-15 23:20:57
Simulation of Brayton Cycle

Hi All,

While simulating/instantiating my Package which contains a Compressor,turbine and a Heat exchanger I am getting the following error:

[2] 09:16:52 Translation Error
[Modelica.Media: 4477:17-4602:23]: Illegal to instantiate partial class BaseProperties$gas.

[3] 09:16:52 Translation Error
Error occurred while flattening model

Could someone help me out?

Thanks

Sep-18-15 01:14:11
Hi All, I am drafting a Brayton Cycle model for simulation in OpenModelica, I have used...
Category: Developer

Hi Erik,

I have been facing a similar issue, I get a distinct impression that Thermocycle may not be compatible with OM

Sep-11-15 00:26:31
Hi All, I am drafting a Brayton Cycle model for simulation in OpenModelica, I have used...
Category: Developer

Hi Adrian,

So I am beginning to understand how all this works. I am currently drafting a Brayton Cycle using a thermopower library. I am stuck at drafting a heat exchanger in the model(Cant find a heat exchanger component) can you help me in this?

Awaiting for a reply...

Thanks

Aug-25-15 02:25:59
Hi All, I am drafting a Brayton Cycle model for simulation in OpenModelica, I have used...
Category: Developer

Thanks Adrian,

Certain things are making sense to me now. Il go and try apply your suggestions.

Cheers!

Aug-25-15 02:07:39
Hi All, I am drafting a Brayton Cycle model for simulation in OpenModelica, I have used...
Category: Developer

Hi adrpo.
Thank for the reply.

I may have missed a useful piece of info.
While loading the library i got the following errors:


[25] 12:03:32 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Components/FluidFlow/Pipes/MultiFlow1D.mo: 40:5-40:77]: The file was not encoded in UTF-8:
  "Valve throat area for quadratic pressure drop (dp = 1/A?*M_dot?/(2*rho))".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[26] 12:03:32 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Components/FluidFlow/package.mo: 6:32-6:104]: The file was not encoded in UTF-8:
  "<HTML> <p><big> This package contains the basic fluid flow model, pressu...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[27] 12:03:32 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Components/HeatFlow/HeatTransfer/SinglePhaseCorrelations/DittusBoelter1930.mo: 50:31-50:247]: Lexer treating \ as \\, since \< is not a valid Modelica escape sequence.

[28] 12:03:32 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Components/HeatFlow/package.mo: 6:32-6:104]: The file was not encoded in UTF-8:
  "<HTML> <p><big> This package contains model for thermal storage in solid...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[29] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Components/Units/HeatExchangers/CrossHX.mo: 58:5-58:77]: The file was not encoded in UTF-8:
  "Valve throat area for quadratic pressure drop (dp = 1/A?*M_dot?/(2*rho))".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[30] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Components/Units/PdropAndValves/DP.mo: 20:5-20:77]: The file was not encoded in UTF-8:
  "Valve throat area for quadratic pressure drop (dp = 1/A?*M_dot?/(2*rho))...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[31] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Components/Units/Solar/SolarField_Soltigua.mo: 257:53-257:125]: The file was not encoded in UTF-8:
  "<HTML>  <p><big>The <b>SolarField_Soltigua</b> model is based on the sam...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[32] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Components/Units/package.mo: 6:32-6:104]: The file was not encoded in UTF-8:
  "<HTML> <p><big> This package contains the common components used to buil...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[33] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Components/Units/Tanks/Deaerator.mo: 177:29-177:101]: The file was not encoded in UTF-8:
  "<html> <p><big>Model <b>Deareator</b> is a variation of the  <a href=\"m...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[34] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Examples/Simulations/package.mo: 6:32-6:104]: The file was not encoded in UTF-8:
  "<HTML> <p><big><dl><dt><b>Main Authors:</b> <br/></dt> <dd>Sylvain Quoil...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[35] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Examples/TestComponents/package.mo: 6:32-6:104]: The file was not encoded in UTF-8:
  "<HTML> <p><big><dl><dt><b>Main Authors:</b> <br/></dt> <dd>Sylvain Quoil...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[36] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Examples/TestFluid/package.mo: 6:32-6:104]: The file was not encoded in UTF-8:
  "<HTML> <p><big><dl><dt><b>Main Authors:</b> <br/></dt> <dd>Sylvain Quoil...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[37] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Examples/TestFunctions/package.mo: 6:32-6:104]: The file was not encoded in UTF-8:
  "<HTML> <p><big><dl><dt><b>Main Authors:</b> <br/></dt> <dd>Sylvain Quoil...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[38] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Examples/package.mo: 6:32-6:104]: The file was not encoded in UTF-8:
  "<HTML> <p><big><dl><dt><b>Main Authors:</b> <br/></dt> <dd>Sylvain Quoil...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[39] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Functions/package.mo: 12:32-12:104]: The file was not encoded in UTF-8:
  "<HTML> <p><big><dl><dt><b>Main Authors:</b> <br/></dt> <dd>Sylvain Quoil...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[40] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Interfaces/Fluid/Flange_pT.mo: 20:17-20:58]: The file was not encoded in UTF-8:
  "<html> University of Li?ge, November 2012".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[41] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Interfaces/Fluid/Flange.mo: 16:17-16:58]: The file was not encoded in UTF-8:
  "<html> University of Li?ge, November 2012".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[42] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Interfaces/package.mo: 6:32-6:104]: The file was not encoded in UTF-8:
  "<HTML> <p><big><dl><dt><b>Main Authors:</b> <br/></dt> <dd>Sylvain Quoil...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[43] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Media/package.mo: 6:32-6:104]: The file was not encoded in UTF-8:
  "<HTML> <p><big><dl><dt><b>Main Authors:</b> <br/></dt> <dd>Sylvain Quoil...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[44] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/Obsolete/package.mo: 6:32-6:104]: The file was not encoded in UTF-8:
  "<HTML> <p><big><dl><dt><b>Main Authors:</b> <br/></dt> <dd>Sylvain Quoil...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[45] 12:03:33 Syntax Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/UsersGuide/Contacts.mo: 4:34-4:106]: The file was not encoded in UTF-8:
  "<html> <p> <br/><b>The library is available at</b><br> <a href=\"http://...".
  Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
  To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
  To change it in a package: add a file package.encoding at the top-level.
  Note: The Modelica Language Specification only allows files encoded in UTF-8.

[46] 12:03:33 Scripting Warning
[C:/Users/Jeet/Desktop/Project Work/ThermoCycle/package.mo: 7:20-7:33]: Uses-annotation is missing version for library ExternalMedia. Assuming the tool-specific version="default".

[47] 12:03:33 Scripting Notification
Skipped loading package ExternalMedia (default) using MODELICAPATH C:\Users\Jeet\Desktop\Project Work\;C:/OpenModelica1.9.3Nightly/lib/omlibrary (uses-annotation may be wrong).




I understand you mentioned thermocycle may not be compatible with Openmodelica, is there any other recommendations?

Thanks

Aug-23-15 13:05:13
Hi All, I am drafting a Brayton Cycle model for simulation in OpenModelica, I have used...
Category: Developer

I am getting the below errors:

[40] 22:27:19 Translation Error
Cannot instantiate BCycle due to class specialization PACKAGE.

[41] 22:27:19 Translation Error
[ThermoCycle.Media.R245fa_CP: 3:3-5:43]: Base class ExternalMedia.Media.CoolPropMedium not found in scope ThermoCycle.Media.R245fa_CP.

[42] 22:27:19 Translation Error
[ThermoCycle.Components.FluidFlow.Pipes.Cell1Dim: 3:13-3:59]: Class SpecificEnthalpy not found in scope ThermoCycle.Components.FluidFlow.Pipes.Cell1Dim.Medium.

[43] 22:27:19 Translation Error
[ThermoCycle.Components.FluidFlow.Pipes.Cell1Dim: 35:3-36:46]: Class Medium.SpecificEnthalpy not found in scope ThermoCycle.Components.FluidFlow.Pipes.Cell1Dim.

[44] 22:27:19 Translation Error
[ThermoCycle.Media.DummyFluid: 3:3-3:45]: Base class ExternalMedia.Media.CoolPropMedium not found in scope ThermoCycle.Media.DummyFluid.

[45] 22:27:19 Translation Error
[ThermoCycle.Components.FluidFlow.Pipes.Flow1Dim: 4:13-4:59]: Class Temperature not found in scope ThermoCycle.Components.FluidFlow.Pipes.Flow1Dim.Medium.

[46] 22:27:19 Translation Error
[ThermoCycle.Components.FluidFlow.Pipes.Flow1Dim: 55:3-56:47]: Class Medium.Temperature not found in scope ThermoCycle.Components.FluidFlow.Pipes.Flow1Dim.

[47] 22:27:19 Translation Error
Error occurred while flattening model BCyle


Can someone help or advice?

Aug-12-15 03:06:20
Hi I am a newbie, hoping to achieve simulation of brayton cycle in OpenModelica.
Category: Programming

After trying a couple of modelica softwares, I have started using OMEC connection editor for writing a simulation code for brayton cycle.
can anyone give me an insight of how all this work, I have understood how the thermopower library works so far.

  • Index
  • » Users
  • » prasanjitdas111
  • » Profile
You are here: