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

Posts

Posts

Mar-01-21 15:24:21
Is OpenModelica the right tool?

justnielsen wrote:

You can model a slice/layer of your heat storage as a component (class) and test it separately. Then you can instantiate and interconnect an array of N layers to simulate the distributed effect with the spatial resolution necessary for your studies.

Hi Rene,
Thank you for replying so quick.

You mention "instantiate and interconnect an array of layers". Can this be implemented in OpenModelica as freely as that without defining explicit connections between the layers?

Just to be clear that my understanding is correct. The problem can be formulated as PDFs in time and position and the dt is handled by modelica whereas I need to take care of the dx resolution in the way I build the model?

With e.g. Matlab this can be done by adjusting the number of elements in the vectors representing a given tank size and I can then reference layers by indexes in the vector. Is a similar technic available in modelica?

I am not sure stratified water can correctly mimic the behaviour of solid/gas properties but I will locate the building library and have a look.

/Hans

Mar-01-21 13:49:21
Is OpenModelica the right tool?

I need to model the dynamics in a thermal energy storage with pebble rocks in a pressurized tank.

Charging of the storage is by heating with hot air from the top until the temperature rises in the bottom outlet.

Likewise, discharging is by sending cold air from the bottom until the hot end temperature drops. Hot/cold temperatures are 540/80°C for this tank, and a similar "cold tank" is used as a cold reservoir as well.

An important aspect of the storage performance is the development of the temperature gradient in the stone filling during charge/discharge cycles and the temperature-dependent heat capacity of the stones. Being able to monitor the temperature through the stone filling over time would be valuable.

I have no experience with Modelica whatsoever and was initially considering using Matlab/Octave for the modelling when I came across Modelica. Before starting out to learn a new and very different language I would like to know if it it is suitable for my purpose.

My simple question to the experienced people in this forum is whether Modelica is the right tool for the task?

From my limited study of the thermal libraries in OMEdit I get the impression that I would need to model the storage as individual layers in Modellica just as with a finite-difference model made in Matlab only "manually".

/Hans

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