BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.countAggregationCells

# .BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.countAggregationCells

Function which returns the number of aggregation cells in the aggregation vector

## Information

Function that counts the required length of the aggregation time vector `nu` and of the weighting factor vectors `kappa` based on the maximum time for calculations related to the ground temperature response.

#### Interface

>     function countAggregationCells
>       extends Modelica.Icons.Function;
>       input Real lvlBas "Base for growth between each level, e.g. 2";
>       input Integer nCel(min = 1) "Number of cells of same size per level";
>       input Modelica.Units.SI.Time timFin "Total simulation max length";
>       input Modelica.Units.SI.Time tLoaAgg "Time resolution of load aggregation";
>       output Integer i(min = 1) "Size of aggregation vectors";
>     end countAggregationCells;

## Revisions

- July 15, 2018, by Michael Wetter:
  Added `min=1` to `nCel` so that a tool can infer that this quantity is non-zero.
- March 5, 2018, by Alex Laferrière:
  First implementation.

Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos