Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
ON-OFF function and txt loaded file
Posted Mar 29, 2014, 12:09 p.m. EDT Fluid & Heat, Heat Transfer & Phase Change, Materials Version 4.3b 2 Replies
Please login with a confirmed email address before reporting spam
Hello,
I'm Stefano Casson and I'm using COMSOL to model the behavior of a heat storage in the gravel: my intention is to use a function as an input of temperature (I chose the interpolation) so in this way I can load a txt file where there are 8760 values of temperature, one per each hour of the year. The problem is that sometimes the system works, let's say when T > 30°C, (during sunny days), but most of the time the system should be turn off because there is no heat to storage: I couldn't figure out how to express this in COMSOL. For example if I put zero as temperature in the txt loaded file when T < 30°C, for the program "zero" is a value but I want COMSOL to understand to stop the injection of fluid for those hours, and to star it again when T > 30°C. A function ON-OFF could describe better this kind of trend but if I use different types of function I can't load an external file. Can anyone help me please?
Kind Regards,
Stefano.
I'm Stefano Casson and I'm using COMSOL to model the behavior of a heat storage in the gravel: my intention is to use a function as an input of temperature (I chose the interpolation) so in this way I can load a txt file where there are 8760 values of temperature, one per each hour of the year. The problem is that sometimes the system works, let's say when T > 30°C, (during sunny days), but most of the time the system should be turn off because there is no heat to storage: I couldn't figure out how to express this in COMSOL. For example if I put zero as temperature in the txt loaded file when T < 30°C, for the program "zero" is a value but I want COMSOL to understand to stop the injection of fluid for those hours, and to star it again when T > 30°C. A function ON-OFF could describe better this kind of trend but if I use different types of function I can't load an external file. Can anyone help me please?
Kind Regards,
Stefano.
2 Replies Last Post Mar 31, 2014, 5:22 a.m. EDT