Class representing a BMI (Basic Model Interface) implementation for the CLASS model. This class provides methods to initialize, update, and retrieve information from the model.

Implements

Constructors

Properties

config: Config = ...
model: CLASS = ...

Methods

  • Parameters

    • name: string

    Returns number

  • Parameters

    • name: string

    Returns string

  • Parameters

    • name: string

    Returns string

  • Runs the model till the end and returns the output data.

    Type Parameters

    • T extends string[]

    Parameters

    • options: {
          freq?: number;
          var_names?: T;
      }

      The options for running the model.

      • Optionalfreq?: number

        The frequency at which to record the output data. Default is 60 seconds.

      • Optionalvar_names?: T

        For which output variables to record the data. Default is all output variables.

    Returns {
        t: number[];
    } & {
        [K in string]: number[]
    }

    The output data, including the time values in t key and the values of the output variables.