Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Adrian's profile - activity

2018-06-06 04:10:27 -0500 marked best answer Input of fans (OMEdit)

I created a model to heat the air of a room. I'm using a fan to transport the air to the room, for now, the input of the fan is a RealInput, and it works nice. However I'm interested in vectors.

I tried to change the block RealInput for RealVectorInput but I have 1 more equation than variables. What am I missing? Moreover if the input of the fan is a vector, I suppose the output, the temperature of the room in my case, will be a vector too, but there isn't any block called RealVectorOutput.

So is it possible to give an input to a fan will change over time?

I'm using the blocks RealInput & Output because I'm interesting to get the results into Matlab.

Thanks in advance.

2018-06-06 04:10:14 -0500 marked best answer OpenModelica-Matlab-Interface

Hi. I'm trying to use and interface between Matlab and OMEdit. I found this one (https://es.mathworks.com/matlabcentral/ … function). An example code is within the download. However I can't get the same results like the autor did with the code given. (You can see the results in the pdf file called plot). I understood that using "omcompile(hello.mo,'modelname')" I get a model compiled in Matlab. Then I can simulate it (omrun(modelname)) and see the results with "omimport(modelname)". So I could re-simulate this model many times as I want without use OMEdit again. The files need one matrix, "HelloWorld.test_res.mat" to execute some commands. The command "omrun(modelname)" deletes that matrix and it don’t create a new one, but the next command (omimport(modelname)) needs this matrix to load the results into Matlab.

I did some changes into the files but I couldn’t make the example works. I can use it to see the results I simulated in OMEdit, but if I tried to change the parameter “a” through Matlab (omparameter), the parameter doesn’t change and I always see the same.

I'd appreciatte the help that you could give me.

2018-06-06 04:09:39 -0500 marked best answer Problems with room model

I'm working with the room model in a new program, because this model is giving me so many errors. I found another question here about room model (https://unmethours.com/question/29564...). I think my problem is the same that in the other question, but I'm not capable of solve it.

I tried to reinstall OpenModelica and I checked out about the version of the library. I did a lot of changes and I got errors in every single step. I wrote the following code, because see every single error could be impossible.

    model nuevaHab
        replaceable package MediumA = Buildings.Media.Air;
    parameter Integer nConExtWin = 1;
    parameter Integer nConBou=4;
    parameter Integer nSurBou=0;
    parameter Integer nConExt=1;
    parameter Integer nConPar=0;

  Buildings.ThermalZones.Detailed.MixedAir mixedAir1(
  redeclare package Medium=MediumA,
  hRoo=4,
  AFlo=25,
  lat=37.22,
  nConExtWin=nConExtWin,
  nConBou=nConBou,
  nSurBou=nSurBou,
  nConExt=nConExt,
  nConPar=nConPar,
  datConExtWin(layers={Wall1},each A=25, each til=Buildings.Types.Tilt.Wall, each azi=Buildings.Types.Azimuth.S,wWin={2*3},glaSys={glaSys},hWin={2},fFra={0.001}),
  datConBou(layers={Wall3,Floor,Ceiling,Wall4},A={25,25,25,25}, til={Buildings.Types.Tilt.Wall,Buildings.Types.Tilt.Floor,Buildings.Types.Tilt.Ceiling,Buildings.Types.Tilt.Wall}),
  datConExt(layers={Wall2},each A=25,each til=Buildings.Types.Tilt.Wall,each azi=Buildings.Types.Azimuth.W))
   annotation(
    Placement(visible = true, transformation(origin = {48, -18}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));


/*parameter Buildings.ThermalZones.Detailed.Constructions.Construction Wall1(
A=25,
til=Buildings.Types.Tilt.Wall,
layers={Buildings.HeatTransfer.Data.OpaqueConstructions.Generic});*/

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall2(
  final nLay=3,
    material={
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.2),
      Buildings.HeatTransfer.Data.Solids.InsulationBoard(x=0.15),
      Buildings.HeatTransfer.Data.Solids.Concrete(x=0.05)});

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall3(
  final nLay=2,
  absIR_a=0.9,
  absIR_b=0.9,
  absSol_a=0.6,
  absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.0127,k=0.12,c=1210,d=540),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.133,k=0.047,c=1006,d=93.84)});

  parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Wall1(
    nLay=3,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.009,k=0.140,c=900,d=530),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.066,k=0.040,c=840, d=12),
      Buildings.HeatTransfer.Data.Solids.Generic(x=0.012,k=0.160,c=840,d=950)});

parameter  Buildings.HeatTransfer.Data.GlazingSystems.DoubleClearAir13Clear glaSys(
    UFra=2,
    shade=Buildings.HeatTransfer.Data.Shades.Gray(),
    haveExteriorShade=false,
    haveInteriorShade=true);

parameter Buildings.HeatTransfer.Data.OpaqueConstructions.Generic Floor(
    final nLay=4,
    absIR_a=0.9,
    absIR_b=0.9,
    absSol_a=0.6,
    absSol_b=0.6,
    material={
    Buildings.HeatTransfer.Data.Solids.Generic(x=5.28,k=1,c=0,d=0),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.15,c=1630,d=608),
    Buildings.HeatTransfer.Data.Solids.Generic(x=0.01905,k=0.12,c=1210,d=540 ...
(more)
2018-05-18 02:11:02 -0500 commented answer Problems with room model

I'm trying to use JModelica since I read your first comment. However it been a while since I don't use the command promp

2018-05-17 05:47:05 -0500 edited question Problems with room model

Problems with room model I'm working with the room model in a new program, because this model is giving me so many error

2018-05-17 05:45:58 -0500 commented answer Problems with room model

Hello! I edited the code. The model, plus the changes that you told me, is on my first comment. However I'm still getti

2018-05-15 06:06:42 -0500 edited question Problems with room model

Problems with room model I'm working with the room model in a new program, because this model is giving me so many error

2018-05-15 06:06:29 -0500 edited question Problems with room model

Problems with room model I'm working with the room model in a new program, because this model is giving me so many error

2018-05-15 05:59:18 -0500 edited question Problems with room model

Problems with room model I'm working with the room model in a new program, because this model is giving me so many error

2018-05-15 05:06:05 -0500 edited question Problems with room model

Problems with room model I'm working with the room model in a new program, because this model is giving me so many error

2018-05-15 04:55:50 -0500 edited question Problems with room model

Problems with room models I'm working with the room model in a new program, because this model is giving me so many erro

2018-05-15 04:55:43 -0500 edited question Problems with room model

Problems with room models I'm working with the room model in a new program, because this model is giving me so many erro

2018-05-15 04:54:41 -0500 edited question Problems with room model

Problems with room models I'm working with the room model in a new program, because this model is giving me so many erro

2018-05-14 09:05:48 -0500 edited question Problems with room model

Problems with room models Hi, I'm trying to create a room really simple, just 4 walls without windows, floor and ceiling

2018-05-14 05:10:28 -0500 edited question Problems with room model

Problems with room models Hi, I'm trying to create a room really simple, just 4 walls without windows, floor and ceiling

2018-05-14 04:39:37 -0500 edited question Problems with room model

Problems with room models Hi, I'm trying to create a room really simple, just 4 walls without windows, floor and ceiling

2018-05-14 04:39:37 -0500 received badge  Editor (source)
2018-05-14 04:34:31 -0500 asked a question Problems with room model

Problems with room models Hi, I'm trying to create a room really simple, just 4 walls without windows, floor and ceiling

2018-04-11 03:44:47 -0500 answered a question OpenModelica-Matlab-Interface

This interface is old. There is a new one (https://github.com/OpenModelica/OMMatlab) but is still in development. I'll c

2018-04-11 03:41:35 -0500 edited answer Input of fans (OMEdit)

I just found the answer. It is an example called MoverStages. I'll close the question. http://simulationresearch.lbl.go

2018-04-11 03:41:08 -0500 answered a question Input of fans (OMEdit)

I just found the answer. It is an example called MoverStages. I'll close the question.

2018-04-06 15:25:50 -0500 asked a question Input of fans (OMEdit)

Input of fans (OMEdit) I created a model to heat the air of a room. I'm using a fan to transport the air to the room, fo

2018-04-06 15:13:00 -0500 asked a question OpenModelica-Matlab-Interface

OpenModelica-Matlab-Interface Hi. I'm trying to use and interface between Matlab and OMEdit. I found this one (https://

2018-03-08 07:33:28 -0500 received badge  Teacher (source)
2018-03-08 03:50:01 -0500 marked best answer Problems simulating COILS

Hello!

Im trying to simulate the examples from Buildings.Fluid.HeatExchangers. I have problems with the examples that have a coil on it (like Buildings.Fluid.HeatExchangers.DryCoilCounterFlowMassLow). I always get the same error, I don't want a fast solution, I really want to understand what this problem is about. I searched it on internet but I didn't find a hint about it.

I experienced the problem just checking or simulating the examples from the folder I wrote before. The problem is always the same.

[Buildings.Fluid.HeatExchangers.DryCoilCounterFlow: 109:5-109:77]: Component hex.ele[4].initialize_p1 of variability CONST has binding false of higher variability PARAM.

I hope you can explain to me what is going on.

2018-03-08 03:50:01 -0500 received badge  Scholar (source)
2018-03-08 03:50:00 -0500 received badge  Supporter (source)
2018-03-08 03:49:51 -0500 answered a question Problems simulating COILS

I'm feeling very ashamed right now. The problem was OpenModelica just decided to load a old version of the library. I re

2018-02-27 18:51:10 -0500 received badge  Student (source)
2018-02-27 17:51:39 -0500 asked a question Problems simulating COILS

Problems simulating COILS Hello! Im trying to simulate the examples from Buildings.Fluid.HeatExchangers. I have problem

2018-02-27 03:32:07 -0500 received badge  Organizer (source)