openmodelica

How to specify medium in Openmodelica?

给你一囗甜甜゛ 提交于 2021-01-27 20:30:26
问题 I am simulating a heat pump water heating system in Modelica. I have attached the picture of my model. However, when I run the model I get the error "Medium is partial, name lookup is not allowed in partial classes". Can you please let me know: How should I specify the water in tank, heat pump condenser and pipe? How should I specify air in heat pump evaporator? And in general, I did not find any example of modeling thermal systems in Openmodelica, can you suggest a source? Thanks 来源: https:/

DrumBoiler Modeling in Modelica

99封情书 提交于 2021-01-27 17:10:03
问题 I want to get into modeling with modelica especially the thermial and fluid branches. So now I am reversing and altering examples from stackoverflow and the modelica library to get to know the language better. At the moment I try to understand Modelica.Fluid.Examples.DrumBoiler.DrumBoiler . I have no problems to comprehend what the model does physically. But when I rebuilt it, I get the error message: Function Cv.from_bar not found in scope DrumBoiler. I rebuild the model from scratch and I

Why does the “der()” operator in Modelica apply to the time variable only?

喜夏-厌秋 提交于 2020-12-30 03:13:37
问题 I build a simple to model in Dymola, but I got confused about the der() operator, why does the der() operator apply to the time variable only? What if I want to use the derivate to other variables In the following code, if I want to calculate dy/dx (derivative of y to x), how should I do this? model A Real x, y, z; equation x=10; y=sin(x); z=der(y); end A; 回答1: Partial derivatives are supported via functions. See chapter 12.7.2 in Modelica Spec 3.4: Partial Derivatives of Functions . You have

alternative to sample function with varying sampling range

只谈情不闲聊 提交于 2020-07-30 07:00:12
问题 Is there an alternative to the sample function in Openmodelica, which accepts arguments which are not of type parameter ? That is, the alternative should permit the sampling of a variable range of values during a simulation. The end goal is to create a class with which I can measure the RMS value of a real signal during a simulation. The RMS value is used as a control variable. The real signal has a continuously changing frequency so in order to have better measurements, I want to either be

alternative to sample function with varying sampling range

独自空忆成欢 提交于 2020-07-30 07:00:05
问题 Is there an alternative to the sample function in Openmodelica, which accepts arguments which are not of type parameter ? That is, the alternative should permit the sampling of a variable range of values during a simulation. The end goal is to create a class with which I can measure the RMS value of a real signal during a simulation. The RMS value is used as a control variable. The real signal has a continuously changing frequency so in order to have better measurements, I want to either be

alternative to sample function with varying sampling range

橙三吉。 提交于 2020-07-30 06:59:34
问题 Is there an alternative to the sample function in Openmodelica, which accepts arguments which are not of type parameter ? That is, the alternative should permit the sampling of a variable range of values during a simulation. The end goal is to create a class with which I can measure the RMS value of a real signal during a simulation. The RMS value is used as a control variable. The real signal has a continuously changing frequency so in order to have better measurements, I want to either be

alternative to sample function with varying sampling range

前提是你 提交于 2020-07-30 06:58:18
问题 Is there an alternative to the sample function in Openmodelica, which accepts arguments which are not of type parameter ? That is, the alternative should permit the sampling of a variable range of values during a simulation. The end goal is to create a class with which I can measure the RMS value of a real signal during a simulation. The RMS value is used as a control variable. The real signal has a continuously changing frequency so in order to have better measurements, I want to either be

关于OpenModelica的编译

微笑、不失礼 提交于 2020-07-27 12:00:35
由于工作需要 ,最近对OpenModelica进行二次开发,由于国内资料也比较少,所以踩了一些坑,近期计划把OpenModelica的编译,msys,及OpenModelica里面比较关键的部分OMEdit的代码结构系统的和大家分享下,国内用Modelica的相对较少,主要集中在高校和科研院所, 所有希望大家一起努力 ,丰富这方面的材料, 提高Modelica在国内的活跃度,如果有感兴趣的童鞋,可以留言, 来源: oschina 链接: https://my.oschina.net/u/4415966/blog/4371003

Variable sampling frequency in OpenModelica

最后都变了- 提交于 2020-06-28 03:39:16
问题 I am referring to this post: alternative to sample function with varying sampling range I want to measure an RMS value (or a mean value) with a variable sampling frequency, which i can feed in as an input signal. The suggested way which nearly suits my need is the following: model RMS constant Real f_max = 2*2*asin(1.0); constant Real f = 1+abs(2*asin(time)); Real signal = sin(time); Real rms = if time < f then (if time < 1e-10 then signal else sqrt(i_sq / time)) else sqrt(i_sq_f / f); Real i