4
votes

I started to use openmodelica few days ago. I created a lot of tables where Data is defrost efficiency, first row is Air temperature which is my first input and first column is Leaving water temperature from the condenser which is my second input. I created this kind of matrix for five humidity level and for 4 number of compressor so I have 20 matrix.

I would like to create a modelica block with 4 inputs:

  • Air temperature
  • Leaving water temperature
  • number of compressor
  • humidity level

and as output the defrost efficiency which is in the tables. Can someone help me please ?

I can't use the block CombiTable2dv which is in open modelica because i have 4 input and 20 tables. I found modelon article which speaks about a library but I don't know how to use it.

2
The SDF library mentioned by Markus A. is the newest version of the HDF5Table Library you linked in the paper. The library was renamed to SDF in the meantime. There are also Python and Matlab implementations available on github.com/ScientificDataFormat - marco
May you explain how to use NDTable block ? I created a SDF file using Dymola SDF Edtor but i don't manage to use it. Thanks you - dav

2 Answers

4
votes

In Dymola there is the (free) SDF library for this purpose. In case you don't have Dymola some information can be found here: SDF-Paper. For testing you can download a free demo here (you need to register).

2
votes

N-dimensional table interpolation is missing in the Modelica Standard Library indeed. The developers are aware of the need and discussed it previously, however could not converge towards some data input format for multi-dimensional arrays. What would your requirement (or even proposal) be like?