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
  • » Ascold
  • » Profile

Posts

Posts

Feb-17-16 16:34:53
The problems with properties of R134a

Does anybody know that Modelica.Media.R134a.R134a_ph.specificHeatCapacityCp is incorrect on Saturation line?

This value is always equal zero on SaturationLine.

Hi everyone. Does anybody use the next option on simulation tab

"Save simulation settings inside model"


See the attached picture below.

When I select this  options, OpenModelica doesn't save my settings next time.

http://i.imgsafe.org/061e534.png

YacinOS wrote:


Thank you, I heard of it before, but the problem is in which file I could find them, because the FMI export process generates lots of files, hence, I can't figure out which file(s).

When you choose "Export FMU" OM generates this file into your Working Directory. The file is named "Name.fmu" there is only one file with such name in the working directory.

Feb-10-16 15:48:12
The problems with properties of R134a

Working with Media.R134a.
Hello friends!
I tried to use saturation properties of freon 134a by using the next form:

[Hidden text - guest user]



But when I simulated this, I've got the next error:

[Hidden text - guest user]


https://i.imgsafe.org/62eb219.png
If I simulate this model with Dymola, I have no problems.

Sep-29-15 07:19:55
how to utilize the exe file that is compiled when i simulate a model?

adrpo wrote:


You need some dlls from C:\OpenModelica....\bin\ in order to be able to run your model.
Copy all dlls but the Qt ones to the folder you have Model.exe in.

Cheers,
Adrian Pop/



Big thanks, Adrian!
You are really help me!

Sep-28-15 14:05:22
how to utilize the exe file that is compiled when i simulate a model?

adrpo wrote:


Hi,

No, there is no guide.

However, is an Model.exe so you run it and the result will be a Model.mat file with the same name as your model.


Cheers,
Adrian Pop/

Hi, Adrian. Could you help me? When I tried to open Model.exe which is created by OpenModelica, I saw a message "there is no the libsundials_kinsol.dll". And nothing happen after that. What shoul I do to fix the error?
P.S. Sorry for double message, I didn't see where I could delete my message.

Oct-02-14 10:18:42
My question is about using the libraries.

Hello. Help me please.
We want to working with models of positive displacement compressors and shell and tube heat exchanger. By using media of freons and water.
So what do you think what are the libraries tailored for these tasks?

Sep-24-14 06:41:20
Implement the HeatPump (from the ThermoCycle library) in a mixedAir room model (Buildings library)

Sorry but I didn't understand what did you mean.
1) Where should I add a file package.encoding? In the ThermoCycle folder?
2) What should I write in this file?
3) You told that the TC works anyway, but I couldn't simulate any examples.
P.S. Thank you for your help!

Sep-23-14 13:02:19
Implement the HeatPump (from the ThermoCycle library) in a mixedAir room model (Buildings library)

sjoelund.se, I want to confirm what do I do wrong.
For example I got this message:

Code:

[C:/Users/savin/Downloads/TCnew/Thermocycle-library-master/ThermoCycle/UsersGuide/Contacts.mo:4:34-4:106] Warning: 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.

Then I found this file(Contacts.mo), opened it by Notepad and selected "Save as" chosed "UTF-8". But when I try to load again this library I got this message about UTF-8 again.

Sep-23-14 10:47:54
Implement the HeatPump (from the ThermoCycle library) in a mixedAir room model (Buildings library)
Sep-23-14 10:42:00
Implement the HeatPump (from the ThermoCycle library) in a mixedAir room model (Buildings library)

And second question is:
When I have successfully loaded this library (with a CoolProp library) I have seen this problem:


Code:

[C:/Users/savin/Downloads/ThermoCycle/Components/FluidFlow/Pipes/MultiFlow1D.mo:40:5-40:77] Warning: 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.

Sep-23-14 10:29:38
Implement the HeatPump (from the ThermoCycle library) in a mixedAir room model (Buildings library)

I have downloaded  this library, than I have extracted it. But when I try to open package.mo the OpenModelica doesn't load this library. Nothing happened. I note that I often see a similar issue when I try to open files. For example OM could open files from one folder but couldn't open from another folder.

Sep-19-14 11:27:04
Implement the HeatPump (from the ThermoCycle library) in a mixedAir room model (Buildings library)

How can you instal the Thermocycle by OpenModelica?

Jul-03-14 12:00:32
fail to open simulation result

sjoelund.se wrote:

Probably because OpenModelica does not know the inverse of log10. If you give tk2 a start-value of 36.4, it finds the solution using a non-linear solver.

You are smart. Thanks for answer .Can I distract you, if I will have some question?

Jul-03-14 11:26:04
fail to open simulation result

sjoelund.se wrote:

Ascold wrote:

sjoelund.se wrote:

(Note that complex solutions are not solutions in Modelica; the equation should not be possible to solve)

I didn't understand what do you want to say me.

Your equation has four solutions; for example:
x = 0.5389-1.4934 i

Modelica Real numbers are not imaginary. So your model should be unsolvable. And OpenModelica says it was unable to find a solution; so it did the right thing telling you that.

Thanks for answer. It is correct. Please tell me more. If its true so why I cannot calculate this code ?
model   sjoelund.se
parameter Real tw1=32.1;
  parameter Real tw2=36.4;
Real tk2;
equation
  1=(tw2-tw1)/(2.3*log10((tk2-tw1)/(tk2-tw2)));
end sjoelund.se;
I have same errors..Dymola solves that code perfect and has no errors.

Jul-03-14 10:36:25
fail to open simulation result

sjoelund.se wrote:

(Note that complex solutions are not solutions in Modelica; the equation should not be possible to solve)

I didn't understand what do you want to say me.

Jul-03-14 10:26:02
fail to open simulation result

No. I have another code:

Code:

LOG_NLS        | warning     | Error solving nonlinear system Nonlinear function (residualFunc5, size 1) at time 0 Debug more

stdout        | warning     | Error in initialization. Storing results and exiting.
Use -lv=LOG_INIT -w for more information.
Process crashed
Simulation process exited with code -1

Jul-03-14 10:02:06
fail to open simulation result

I can  give you more information. I have tried to simulate this simple example:
model daadd
  Real x;
equation
  1 = x - 1 - (x - 1) ^ 2 / 2 + (x - 1) ^ 3 / 3 - (x - 1) ^ 4 / 4;
end daadd;
And then I get this message:"Too few rows in data_2 matrix".

Jun-20-14 13:02:25
Initialization Failures

I have this problem too. Please anybody answer.

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