-2

In Switzerland, the heating period usually lasts from mid-September to mid-May. Is there any possibility to set either valve or pump to closed (0 if y=true) position from e.g., 15.05 till 15.09 in the simulation?

Orhun C.
  • 17
  • 4
  • Like the `valve` and `handle` in `Modelica.Fluid.Examples.HeatingSystem` just with a longer simulation time? Potentially you would need to replace the `Modelica.Blocks.Sources.Step` with a `Modelica.Blocks.Sources.Pulse` or `Modelica.Blocks.Sources.CombiTimeTable`... – Markus A. Oct 17 '22 at 08:41

1 Answers1

0

The easiest will be to use the Modelica.Blocks.Sources.RealExpressionas the RealInput to Modelica.Fluid.Valves.ValveIncompressible component. You can assign Modelica.Blocks.Sources.RealExpression.y= if (time > 15.05) and (time < 15.09) then 1 else 0.01. In fluidpackages it is advisable not to set the valve close value explicitly as '0' but to positive value close to 0 say 0.01.

enter image description here

Akhil Nandan
  • 315
  • 2
  • 9