Skip to content

Class: Battery

Copyright (C) 2008 Battelle Memorial Institute

@file battery.cpp

@defgroup battery

@ingroup generators

@{

__

Inherits from: gld_object

__

Type: Instance (network topology element)

__

Note: Inherits from gld_object (not in generators module)

URI: glm:Battery

 classDiagram
    class Battery
    click Battery href "../Battery/"
      GlmObject <|-- Battery
        click GlmObject href "../GlmObject/"

      Battery : additional_controls

      Battery : base_efficiency

      Battery : battery_capacity

      Battery : battery_load

      Battery : battery_state

      Battery : battery_type

      Battery : check_power_high

      Battery : check_power_low

      Battery : climate_object_found

      Battery : deadband

      Battery : E_Max

      Battery : E_Next

      Battery : efficiency

      Battery : Energy

      Battery : first_time_step

      Battery : flags

      Battery : generator_mode





        Battery --> "0..1" GeneratorMode : generator_mode
        click GeneratorMode href "../GeneratorMode/"



      Battery : generator_status





        Battery --> "0..1" GeneratorStatus : generator_status
        click GeneratorStatus href "../GeneratorStatus/"



      Battery : groupid

      Battery : high_temperature

      Battery : I_In





        Battery --> "0..1" Complex : I_In
        click Complex href "../Complex/"



      Battery : I_Internal





        Battery --> "0..1" Complex : I_Internal
        click Complex href "../Complex/"



      Battery : I_Max





        Battery --> "0..1" Complex : I_Max
        click Complex href "../Complex/"



      Battery : I_Out





        Battery --> "0..1" Complex : I_Out
        click Complex href "../Complex/"



      Battery : I_Prev





        Battery --> "0..1" Complex : I_Prev
        click Complex href "../Complex/"



      Battery : in_svc

      Battery : internal_battery_load

      Battery : latitude

      Battery : longitude

      Battery : low_temperature

      Battery : margin

      Battery : midpoint_temperature

      Battery : monitored_power

      Battery : name

      Battery : nominal_voltage

      Battery : number_battery_state_changes

      Battery : out_svc

      Battery : P_Max

      Battery : parasitic_power_draw

      Battery : parent

      Battery : parent_is_inverter

      Battery : parent_is_meter

      Battery : parent_is_triplex

      Battery : power_factor

      Battery : power_set_high

      Battery : power_set_high_highT

      Battery : power_set_low

      Battery : power_set_low_highT

      Battery : power_transferred

      Battery : power_type

      Battery : prev_state

      Battery : prev_time

      Battery : rank

      Battery : rated_power

      Battery : recalculate

      Battery : reserve_state_of_charge

      Battery : rfb_size

      Battery : Rinternal

      Battery : round_trip_efficiency

      Battery : scheduled_power

      Battery : sensitivity

      Battery : state_change_time_delta

      Battery : state_of_charge

      Battery : use_internal_battery_model

      Battery : V_Internal





        Battery --> "0..1" Complex : V_Internal
        click Complex href "../Complex/"



      Battery : V_Max

      Battery : V_Out





        Battery --> "0..1" Complex : V_Out
        click Complex href "../Complex/"



      Battery : VA_Out





        Battery --> "0..1" Complex : VA_Out
        click Complex href "../Complex/"



      Battery : value_Circuit_V_A





        Battery --> "0..1" Complex : value_Circuit_V_A
        click Complex href "../Complex/"



      Battery : value_Circuit_V_B





        Battery --> "0..1" Complex : value_Circuit_V_B
        click Complex href "../Complex/"



      Battery : value_Circuit_V_C





        Battery --> "0..1" Complex : value_Circuit_V_C
        click Complex href "../Complex/"



      Battery : value_Line12





        Battery --> "0..1" Complex : value_Line12
        click Complex href "../Complex/"



      Battery : value_Line_I_A





        Battery --> "0..1" Complex : value_Line_I_A
        click Complex href "../Complex/"



      Battery : value_Line_I_B





        Battery --> "0..1" Complex : value_Line_I_B
        click Complex href "../Complex/"



      Battery : value_Line_I_C





        Battery --> "0..1" Complex : value_Line_I_C
        click Complex href "../Complex/"



      Battery : value_Tout

      Battery : voltage_set_high

      Battery : voltage_set_low

Inheritance

Slots

Name Cardinality and Range Description Inheritance
generator_mode 0..1
GeneratorMode
LEGACY MODEL: Selects generator control mode when using legacy model; in non-... direct
additional_controls 0..1
String
LEGACY MODEL: In conjunction with POWER_DRIVEN, VOLTAGE_CONTROLLED, and POWER... direct
generator_status 0..1
GeneratorStatus
describes whether the generator is online or offline direct
rfb_size 0..1
String
Default settings for certain sizes of batteries direct
power_type 0..1
String
LEGACY MODEL: Not currently used direct
battery_state 0..1
String
Describes the current state of the battery direct
number_battery_state_changes 0..1
Float
LEGACY MODEL: Number of times battery switches between charging and dischargi... direct
monitored_power 0..1
Float
LEGACY MODEL: output only; power output value of parent meter when performing... direct
power_set_high 0..1
Float
LEGACY MODEL: high set point of dead band for load following (POWER_DRIVEN) direct
power_set_low 0..1
Float
LEGACY MODEL: low set point of dead band for load following (POWER_DRIVEN) direct
power_set_high_highT 0..1
Float
LEGACY MODEL: high set point of dead band for load following at higher temper... direct
power_set_low_highT 0..1
Float
LEGACY MODEL: low set point of dead band for load following at higher tempera... direct
check_power_low 0..1
Float
LEGACY MODEL: high set point of dead band for load following at lower tempera... direct
check_power_high 0..1
Float
LEGACY MODEL: low set point of dead band for load following at lower temperat... direct
voltage_set_high 0..1
Float
LEGACY MODEL: high set point for voltage control direct
voltage_set_low 0..1
Float
LEGACY MODEL: low set point for voltage control direct
deadband 0..1
Float
LEGACY MODEL: voltage deadband direct
sensitivity 0..1
Float
LEGACY MODEL: describes how sensitive the control is to temperature excursion... direct
high_temperature 0..1
Float
LEGACY MODEL: high temperature of linear control; defines slope direct
midpoint_temperature 0..1
Float
LEGACY MODEL: midpoint temperature of linear control; defines slope direct
low_temperature 0..1
Float
LEGACY MODEL: low temperature of linear control; defines slope direct
scheduled_power 0..1
Float
LEGACY MODEL: real power output of battery/inverter system direct
Rinternal 0..1
Float
LEGACY MODEL: the internal resistance of the battery direct
V_Max 0..1
Float
LEGACY MODEL: the maximum terminal voltage of the battery direct
I_Max 0..1
Complex
LEGACY MODEL: the maximum current output of the battery direct
E_Max 0..1
Float
LEGACY MODEL: the maximum capacity of the battery direct
P_Max 0..1
Float
LEGACY MODEL: the maximum power output of the battery direct
power_factor 0..1
Float
LEGACY MODEL: the power factor output of the battery direct
Energy 0..1
Float
LEGACY MODEL: the available capacity of the battery direct
efficiency 0..1
Float
LEGACY MODEL: the efficiency of the battery direct
base_efficiency 0..1
Float
LEGACY MODEL: the efficiency of the battery at rated voltaged and current direct
parasitic_power_draw 0..1
Float
LEGACY MODEL: the parasytic power draw of the battery when idle direct
V_Out 0..1
Complex
LEGACY MODEL: the AC voltage at the terminals of the battery direct
I_Out 0..1
Complex
LEGACY MODEL: the AC current output of the battery direct
VA_Out 0..1
Complex
LEGACY MODEL: the power output of the battery direct
I_In 0..1
Complex
LEGACY MODEL: the current flowing into the battery of the battery direct
V_Internal 0..1
Complex
LEGACY MODEL: the internal voltage of the battery direct
I_Internal 0..1
Complex
LEGACY MODEL: the internal current of the battery direct
I_Prev 0..1
Complex
LEGACY MODEL: the previous current output of the battery direct
power_transferred 0..1
Float
LEGACY MODEL: the power output of the battery direct
use_internal_battery_model 0..1
Boolean
Enables the INTERNAL BATTERY MODEL direct
battery_type 0..1
String
INTERNAL BATTERY MODEL: the type of the battery direct
nominal_voltage 0..1
Float
INTERNAL BATTERY MODEL: the rated DC voltage at the terminals of the battery direct
rated_power 0..1
Float
INTERNAL BATTERY MODEL: the rated power output of the battery direct
battery_capacity 0..1
Float
INTERNAL BATTERY MODEL: the rated battery capacity of the battery direct
round_trip_efficiency 0..1
Float
INTERNAL BATTERY MODEL: the round trip efficiency of the battery according to... direct
state_of_charge 0..1
Float
INTERNAL BATTERY MODEL: the current state of charge of the battery direct
battery_load 0..1
Float
INTERNAL BATTERY MODEL: the current power output of the battery direct
reserve_state_of_charge 0..1
Float
INTERNAL BATTERY MODEL: the reserve state of charge the battery can reach direct
state_change_time_delta 0..1
Integer
CHECKPOINT_VAR: internal variable for state_change_time_delta direct
margin 0..1
Float
CHECKPOINT_VAR: internal variable for margin direct
E_Next 0..1
Float
CHECKPOINT_VAR: internal variable for E_Next direct
recalculate 0..1
Boolean
CHECKPOINT_VAR: internal variable for recalculate direct
prev_time 0..1
String
CHECKPOINT_VAR: internal variable for prev_time direct
first_time_step 0..1
Integer
CHECKPOINT_VAR: internal variable for first_time_step direct
prev_state 0..1
Integer
CHECKPOINT_VAR: 1 is charging, 0 is nothing, -1 is discharging direct
internal_battery_load 0..1
Float
CHECKPOINT_VAR: the power out of the battery on the source side of the intern... direct
value_Circuit_V_A 0..1
Complex
CHECKPOINT_VAR: internal variable for value_Circuit_V[0] direct
value_Circuit_V_B 0..1
Complex
CHECKPOINT_VAR: internal variable for value_Circuit_V[1] direct
value_Circuit_V_C 0..1
Complex
CHECKPOINT_VAR: internal variable for value_Circuit_V[2] direct
value_Line_I_A 0..1
Complex
CHECKPOINT_VAR: internal variable for value_Line_I[0] direct
value_Line_I_B 0..1
Complex
CHECKPOINT_VAR: internal variable for value_Line_I[1] direct
value_Line_I_C 0..1
Complex
CHECKPOINT_VAR: internal variable for value_Line_I[2] direct
value_Line12 0..1
Complex
CHECKPOINT_VAR: internal variable for value_Line12 direct
value_Tout 0..1
Float
CHECKPOINT_VAR: internal variable for value_Tout direct
parent_is_meter 0..1
Boolean
CHECKPOINT_VAR: internal variable for parent_is_meter direct
parent_is_triplex 0..1
Boolean
CHECKPOINT_VAR: internal variable for parent_is_triplex direct
parent_is_inverter 0..1
Boolean
CHECKPOINT_VAR: internal variable for parent_is_inverter direct
climate_object_found 0..1
Boolean
CHECKPOINT_VAR: internal variable for climate_object_found direct
name 1
String
The object's name; unique across the model GlmObject
parent 0..1
String
The parent object's name GlmObject
groupid 0..1
String
Free-text group label GlmObject
latitude 0..1
String
Latitude, as written (decimal degrees or GridLAB-D's 37N26:12 form) GlmObject
longitude 0..1
String
Longitude, as written GlmObject
in_svc 0..1
String
Timestamp the object enters service GlmObject
out_svc 0..1
String
Timestamp the object leaves service GlmObject
rank 0..1
String
Solver rank GlmObject
flags 0..1
String
Core object flags GlmObject

Comments

  • Import: BatteryUnit, mRID _unit (inverter.cimtbl), with a BatteryInfo datasheet; its parent must be an inverter; name is BatteryUnit.name. Export: each BatteryUnit as the battery child of its inverter.

Identifier and Mapping Information

Schema Source

  • from schema: https://gridlabd.org/schema/glm

Mappings

Mapping Type Mapped Value
self glm:Battery
native glm:Battery
exact cim:BatteryUnit
close cim:BatteryInfo

LinkML Source

Direct

name: battery
description: 'Copyright (C) 2008 Battelle Memorial Institute

  @file battery.cpp

  @defgroup battery

  @ingroup generators

  @{


  Inherits from: gld_object


  Type: Instance (network topology element)


  Note: Inherits from gld_object (not in generators module)'
comments:
- 'Import: BatteryUnit, mRID <connection>_unit (inverter.cimtbl), with a BatteryInfo
  datasheet; its parent must be an inverter; name is BatteryUnit.name. Export: each
  BatteryUnit as the battery child of its inverter.'
from_schema: https://gridlabd.org/schema/glm
exact_mappings:
- cim:BatteryUnit
close_mappings:
- cim:BatteryInfo
is_a: glm_object
attributes:
  generator_mode:
    name: generator_mode
    annotations:
      order:
        tag: order
        value: 1
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: generator_mode
    description: 'LEGACY MODEL: Selects generator control mode when using legacy model;
      in non-legacy models, this should be SUPPLY_DRIVEN.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - inverter
    - rectifier
    range: GeneratorMode
    required: false
  additional_controls:
    name: additional_controls
    annotations:
      order:
        tag: order
        value: 2
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: additional_controls
    description: 'LEGACY MODEL: In conjunction with POWER_DRIVEN, VOLTAGE_CONTROLLED,
      and POWER_VOLTAGE_HYBRID, this will activate control set points that adjust
      with temperature'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: string
    required: false
  generator_status:
    name: generator_status
    annotations:
      order:
        tag: order
        value: 3
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: generator_status
    description: describes whether the generator is online or offline
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - inverter
    range: GeneratorStatus
    required: false
  rfb_size:
    name: rfb_size
    annotations:
      order:
        tag: order
        value: 4
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: rfb_size
    description: Default settings for certain sizes of batteries
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: string
    required: false
  power_type:
    name: power_type
    annotations:
      order:
        tag: order
        value: 5
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: power_type
    description: 'LEGACY MODEL: Not currently used'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: string
    required: false
  battery_state:
    name: battery_state
    annotations:
      order:
        tag: order
        value: 6
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: battery_state
    description: Describes the current state of the battery
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: string
    required: false
  number_battery_state_changes:
    name: number_battery_state_changes
    annotations:
      order:
        tag: order
        value: 7
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: number_battery_state_changes
    description: 'LEGACY MODEL: Number of times battery switches between charging
      and discharging'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
  monitored_power:
    name: monitored_power
    annotations:
      order:
        tag: order
        value: 8
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: monitored_power[W]
    description: 'LEGACY MODEL: output only; power output value of parent meter when
      performing load following modes (POWER_DRIVEN)'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  power_set_high:
    name: power_set_high
    annotations:
      order:
        tag: order
        value: 9
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: power_set_high[W]
    description: 'LEGACY MODEL: high set point of dead band for load following (POWER_DRIVEN)'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  power_set_low:
    name: power_set_low
    annotations:
      order:
        tag: order
        value: 10
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: power_set_low[W]
    description: 'LEGACY MODEL: low set point of dead band for load following (POWER_DRIVEN)'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  power_set_high_highT:
    name: power_set_high_highT
    annotations:
      order:
        tag: order
        value: 11
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: power_set_high_highT[W]
    description: 'LEGACY MODEL: high set point of dead band for load following at
      higher temperatures (POWER_DRIVEN + LINEAR_TEMPERATURE)'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  power_set_low_highT:
    name: power_set_low_highT
    annotations:
      order:
        tag: order
        value: 12
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: power_set_low_highT[W]
    description: 'LEGACY MODEL: low set point of dead band for load following at higher
      temperatures (POWER_DRIVEN + LINEAR_TEMPERATURE)'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  check_power_low:
    name: check_power_low
    annotations:
      order:
        tag: order
        value: 13
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: check_power_low[W]
    description: 'LEGACY MODEL: high set point of dead band for load following at
      lower temperatures (POWER_DRIVEN + LINEAR_TEMPERATURE)'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  check_power_high:
    name: check_power_high
    annotations:
      order:
        tag: order
        value: 14
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: check_power_high[W]
    description: 'LEGACY MODEL: low set point of dead band for load following at lower
      temperatures (POWER_DRIVEN + LINEAR_TEMPERATURE)'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  voltage_set_high:
    name: voltage_set_high
    annotations:
      order:
        tag: order
        value: 15
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: voltage_set_high[V]
    description: 'LEGACY MODEL: high set point for voltage control'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    domain_of:
    - capacitor
    - battery
    range: float
    required: false
    unit:
      ucum_code: V
  voltage_set_low:
    name: voltage_set_low
    annotations:
      order:
        tag: order
        value: 16
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: voltage_set_low[V]
    description: 'LEGACY MODEL: low set point for voltage control'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    domain_of:
    - capacitor
    - battery
    range: float
    required: false
    unit:
      ucum_code: V
  deadband:
    name: deadband
    annotations:
      order:
        tag: order
        value: 17
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: deadband[V]
    description: 'LEGACY MODEL: voltage deadband'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    domain_of:
    - load_tracker
    - battery
    - freezer
    - refrigerator
    range: float
    required: false
    unit:
      ucum_code: V
  sensitivity:
    name: sensitivity
    annotations:
      order:
        tag: order
        value: 18
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: sensitivity
    description: 'LEGACY MODEL: describes how sensitive the control is to temperature
      excursions; defines slope of linear control'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
  high_temperature:
    name: high_temperature
    annotations:
      order:
        tag: order
        value: 19
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: high_temperature
    description: 'LEGACY MODEL: high temperature of linear control; defines slope'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
  midpoint_temperature:
    name: midpoint_temperature
    annotations:
      order:
        tag: order
        value: 20
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: midpoint_temperature
    description: 'LEGACY MODEL: midpoint temperature of linear control; defines slope'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
  low_temperature:
    name: low_temperature
    annotations:
      order:
        tag: order
        value: 21
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: low_temperature
    description: 'LEGACY MODEL: low temperature of linear control; defines slope'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
  scheduled_power:
    name: scheduled_power
    annotations:
      order:
        tag: order
        value: 22
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: scheduled_power[W]
    description: 'LEGACY MODEL: real power output of battery/inverter system'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  Rinternal:
    name: Rinternal
    annotations:
      order:
        tag: order
        value: 23
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: Rinternal[Ohm]
    description: 'LEGACY MODEL: the internal resistance of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - solar
    range: float
    required: false
    unit:
      ucum_code: Ohm
  V_Max:
    name: V_Max
    annotations:
      order:
        tag: order
        value: 24
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: V_Max[V]
    description: 'LEGACY MODEL: the maximum terminal voltage of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - solar
    range: float
    required: false
    unit:
      ucum_code: V
  I_Max:
    name: I_Max
    annotations:
      order:
        tag: order
        value: 25
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: I_Max[A]
    description: 'LEGACY MODEL: the maximum current output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: Complex
    required: false
    unit:
      ucum_code: A
  E_Max:
    name: E_Max
    annotations:
      order:
        tag: order
        value: 26
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: E_Max[Wh]
    description: 'LEGACY MODEL: the maximum capacity of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: Wh
  P_Max:
    name: P_Max
    annotations:
      order:
        tag: order
        value: 27
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: P_Max[W]
    description: 'LEGACY MODEL: the maximum power output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  power_factor:
    name: power_factor
    annotations:
      order:
        tag: order
        value: 28
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: power_factor
    description: 'LEGACY MODEL: the power factor output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    domain_of:
    - performance_motor
    - battery
    - inverter
    - windturb_dg
    - residential_enduse
    range: float
    required: false
  Energy:
    name: Energy
    annotations:
      order:
        tag: order
        value: 29
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: Energy[Wh]
    description: 'LEGACY MODEL: the available capacity of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: Wh
  efficiency:
    name: efficiency
    annotations:
      order:
        tag: order
        value: 30
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: efficiency[unit]
    description: 'LEGACY MODEL: the efficiency of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    domain_of:
    - vfd
    - battery
    - diesel_dg
    - solar
    range: float
    required: false
    unit:
      ucum_code: unit
  base_efficiency:
    name: base_efficiency
    annotations:
      order:
        tag: order
        value: 31
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: base_efficiency[unit]
    description: 'LEGACY MODEL: the efficiency of the battery at rated voltaged and
      current.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: unit
  parasitic_power_draw:
    name: parasitic_power_draw
    annotations:
      order:
        tag: order
        value: 32
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: parasitic_power_draw[W]
    description: 'LEGACY MODEL: the parasytic power draw of the battery when idle.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  V_Out:
    name: V_Out
    annotations:
      order:
        tag: order
        value: 33
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: V_Out[V]
    description: 'LEGACY MODEL: the AC voltage at the terminals of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - rectifier
    - solar
    range: Complex
    required: false
    unit:
      ucum_code: V
  I_Out:
    name: I_Out
    annotations:
      order:
        tag: order
        value: 34
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: I_Out[A]
    description: 'LEGACY MODEL: the AC current output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - rectifier
    - solar
    range: Complex
    required: false
    unit:
      ucum_code: A
  VA_Out:
    name: VA_Out
    annotations:
      order:
        tag: order
        value: 35
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: VA_Out[VA]
    description: 'LEGACY MODEL: the power output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - inverter
    - inverter_dyn
    - rectifier
    range: Complex
    required: false
    unit:
      ucum_code: VA
  I_In:
    name: I_In
    annotations:
      order:
        tag: order
        value: 36
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: I_In[A]
    description: 'LEGACY MODEL: the current flowing into the battery of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - inverter
    - inverter_dyn
    range: Complex
    required: false
    unit:
      ucum_code: A
  V_Internal:
    name: V_Internal
    annotations:
      order:
        tag: order
        value: 37
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: V_Internal[V]
    description: 'LEGACY MODEL: the internal voltage of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: Complex
    required: false
    unit:
      ucum_code: V
  I_Internal:
    name: I_Internal
    annotations:
      order:
        tag: order
        value: 38
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: I_Internal[A]
    description: 'LEGACY MODEL: the internal current of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: Complex
    required: false
    unit:
      ucum_code: A
  I_Prev:
    name: I_Prev
    annotations:
      order:
        tag: order
        value: 39
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: I_Prev[A]
    description: 'LEGACY MODEL: the previous current output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: Complex
    required: false
    unit:
      ucum_code: A
  power_transferred:
    name: power_transferred
    annotations:
      order:
        tag: order
        value: 40
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: power_transferred
    description: 'LEGACY MODEL: the power output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
  use_internal_battery_model:
    name: use_internal_battery_model
    annotations:
      order:
        tag: order
        value: 41
      value_type:
        tag: value_type
        value: bool
      native_name:
        tag: native_name
        value: use_internal_battery_model
    description: Enables the INTERNAL BATTERY MODEL.
    comments:
    - 'Import: structural; TRUE only, false (the legacy model) raises. Export: TRUE.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: boolean
    required: false
  battery_type:
    name: battery_type
    annotations:
      order:
        tag: order
        value: 42
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: battery_type
    description: 'INTERNAL BATTERY MODEL: the type of the battery. Used to determine
      the soc vs voltage curve.'
    comments:
    - 'Import: LI_ION is lithiumIon, LEAD_ACID leadAcid, others blank. Export: the
      BatteryInfo''s, unset without one.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    close_mappings:
    - cim:BatteryInfo.batteryType
    rank: 1000
    domain_of:
    - battery
    range: string
    required: false
  nominal_voltage:
    name: nominal_voltage
    annotations:
      order:
        tag: order
        value: 43
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: nominal_voltage[V]
    description: 'INTERNAL BATTERY MODEL: the rated DC voltage at the terminals of
      the battery.'
    comments:
    - 'Import: numberOfCells = floor(nominal_voltage / 4.1 V) on LI_ION; default 115
      V. Export: unset (the DC voltage has no CIM home yet).'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    close_mappings:
    - cim:BatteryInfo.numberOfCells
    domain_of:
    - powerflow_object
    - battery
    - waterheater
    range: float
    required: false
    unit:
      ucum_code: V
  rated_power:
    name: rated_power
    annotations:
      order:
        tag: order
        value: 44
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: rated_power[W]
    description: 'INTERNAL BATTERY MODEL: the rated power output of the battery.'
    comments:
    - 'Import: BatteryUnit.maxP = rated_power and minP = -rated_power (W). Export:
      maxP.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    close_mappings:
    - cim:PowerElectronicsUnit.maxP
    - cim:PowerElectronicsUnit.minP
    rank: 1000
    domain_of:
    - battery
    - inverter
    - inverter_dyn
    - solar
    range: float
    required: false
    unit:
      ucum_code: W
  battery_capacity:
    name: battery_capacity
    annotations:
      order:
        tag: order
        value: 45
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: battery_capacity[Wh]
    description: 'INTERNAL BATTERY MODEL: the rated battery capacity of the battery.'
    comments:
    - 'Import: BatteryUnit.ratedE and BatteryInfo.ratedCapacity (Wh); unset raises.
      Export: ratedE.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    close_mappings:
    - cim:BatteryUnit.ratedE
    - cim:BatteryInfo.ratedCapacity
    rank: 1000
    domain_of:
    - battery
    - evcharger_det
    range: float
    required: false
    unit:
      ucum_code: Wh
  round_trip_efficiency:
    name: round_trip_efficiency
    annotations:
      order:
        tag: order
        value: 46
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: round_trip_efficiency[pu]
    description: 'INTERNAL BATTERY MODEL: the round trip efficiency of the battery
      according to a full discharge/charge cycle.'
    comments:
    - 'Import: both efficiencies are the square root of it, in percent; default 0.8.
      Export: chargingEfficiency x dischargingEfficiency.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    close_mappings:
    - cim:BatteryUnit.chargingEfficiency
    - cim:BatteryUnit.dischargingEfficiency
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: pu
  state_of_charge:
    name: state_of_charge
    annotations:
      order:
        tag: order
        value: 47
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: state_of_charge[pu]
    description: 'INTERNAL BATTERY MODEL: the current state of charge of the battery.'
    comments:
    - 'Import: storedE (Wh) = state_of_charge x battery_capacity; unset raises. Export:
      storedE / ratedE.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    close_mappings:
    - cim:BatteryUnit.storedE
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: pu
  battery_load:
    name: battery_load
    annotations:
      order:
        tag: order
        value: 48
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: battery_load[W]
    description: 'INTERNAL BATTERY MODEL: the current power output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  reserve_state_of_charge:
    name: reserve_state_of_charge
    annotations:
      order:
        tag: order
        value: 49
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: reserve_state_of_charge[pu]
    description: 'INTERNAL BATTERY MODEL: the reserve state of charge the battery
      can reach.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: pu
  state_change_time_delta:
    name: state_change_time_delta
    annotations:
      order:
        tag: order
        value: 50
      value_type:
        tag: value_type
        value: int
      native_name:
        tag: native_name
        value: state_change_time_delta
    description: 'CHECKPOINT_VAR: internal variable for state_change_time_delta'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: integer
    required: false
  margin:
    name: margin
    annotations:
      order:
        tag: order
        value: 51
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: margin
    description: 'CHECKPOINT_VAR: internal variable for margin'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
  E_Next:
    name: E_Next
    annotations:
      order:
        tag: order
        value: 52
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: E_Next
    description: 'CHECKPOINT_VAR: internal variable for E_Next'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
  recalculate:
    name: recalculate
    annotations:
      order:
        tag: order
        value: 53
      value_type:
        tag: value_type
        value: bool
      native_name:
        tag: native_name
        value: recalculate
    description: 'CHECKPOINT_VAR: internal variable for recalculate'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: boolean
    required: false
  prev_time:
    name: prev_time
    annotations:
      order:
        tag: order
        value: 54
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: prev_time
    description: 'CHECKPOINT_VAR: internal variable for prev_time'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - inverter
    range: string
    required: false
  first_time_step:
    name: first_time_step
    annotations:
      order:
        tag: order
        value: 55
      value_type:
        tag: value_type
        value: int
      native_name:
        tag: native_name
        value: first_time_step
    description: 'CHECKPOINT_VAR: internal variable for first_time_step'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: integer
    required: false
  prev_state:
    name: prev_state
    annotations:
      order:
        tag: order
        value: 56
      value_type:
        tag: value_type
        value: int
      native_name:
        tag: native_name
        value: prev_state
    description: 'CHECKPOINT_VAR: 1 is charging, 0 is nothing, -1 is discharging'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: integer
    required: false
  internal_battery_load:
    name: internal_battery_load
    annotations:
      order:
        tag: order
        value: 57
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: internal_battery_load
    description: 'CHECKPOINT_VAR: the power out of the battery on the source side
      of the internal resistance'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
  value_Circuit_V_A:
    name: value_Circuit_V_A
    annotations:
      order:
        tag: order
        value: 58
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: value_Circuit_V_A
    description: 'CHECKPOINT_VAR: internal variable for value_Circuit_V[0]'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - windturb_dg
    range: Complex
    required: false
  value_Circuit_V_B:
    name: value_Circuit_V_B
    annotations:
      order:
        tag: order
        value: 59
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: value_Circuit_V_B
    description: 'CHECKPOINT_VAR: internal variable for value_Circuit_V[1]'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - windturb_dg
    range: Complex
    required: false
  value_Circuit_V_C:
    name: value_Circuit_V_C
    annotations:
      order:
        tag: order
        value: 60
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: value_Circuit_V_C
    description: 'CHECKPOINT_VAR: internal variable for value_Circuit_V[2]'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - windturb_dg
    range: Complex
    required: false
  value_Line_I_A:
    name: value_Line_I_A
    annotations:
      order:
        tag: order
        value: 61
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: value_Line_I_A
    description: 'CHECKPOINT_VAR: internal variable for value_Line_I[0]'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - windturb_dg
    range: Complex
    required: false
  value_Line_I_B:
    name: value_Line_I_B
    annotations:
      order:
        tag: order
        value: 62
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: value_Line_I_B
    description: 'CHECKPOINT_VAR: internal variable for value_Line_I[1]'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - windturb_dg
    range: Complex
    required: false
  value_Line_I_C:
    name: value_Line_I_C
    annotations:
      order:
        tag: order
        value: 63
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: value_Line_I_C
    description: 'CHECKPOINT_VAR: internal variable for value_Line_I[2]'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - windturb_dg
    range: Complex
    required: false
  value_Line12:
    name: value_Line12
    annotations:
      order:
        tag: order
        value: 64
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: value_Line12
    description: 'CHECKPOINT_VAR: internal variable for value_Line12'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    - windturb_dg
    range: Complex
    required: false
  value_Tout:
    name: value_Tout
    annotations:
      order:
        tag: order
        value: 65
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: value_Tout
    description: 'CHECKPOINT_VAR: internal variable for value_Tout'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: float
    required: false
  parent_is_meter:
    name: parent_is_meter
    annotations:
      order:
        tag: order
        value: 66
      value_type:
        tag: value_type
        value: bool
      native_name:
        tag: native_name
        value: parent_is_meter
    description: 'CHECKPOINT_VAR: internal variable for parent_is_meter'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: boolean
    required: false
  parent_is_triplex:
    name: parent_is_triplex
    annotations:
      order:
        tag: order
        value: 67
      value_type:
        tag: value_type
        value: bool
      native_name:
        tag: native_name
        value: parent_is_triplex
    description: 'CHECKPOINT_VAR: internal variable for parent_is_triplex'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: boolean
    required: false
  parent_is_inverter:
    name: parent_is_inverter
    annotations:
      order:
        tag: order
        value: 68
      value_type:
        tag: value_type
        value: bool
      native_name:
        tag: native_name
        value: parent_is_inverter
    description: 'CHECKPOINT_VAR: internal variable for parent_is_inverter'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: boolean
    required: false
  climate_object_found:
    name: climate_object_found
    annotations:
      order:
        tag: order
        value: 69
      value_type:
        tag: value_type
        value: bool
      native_name:
        tag: native_name
        value: climate_object_found
    description: 'CHECKPOINT_VAR: internal variable for climate_object_found'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    domain_of:
    - battery
    range: boolean
    required: false

Induced

name: battery
description: 'Copyright (C) 2008 Battelle Memorial Institute

  @file battery.cpp

  @defgroup battery

  @ingroup generators

  @{


  Inherits from: gld_object


  Type: Instance (network topology element)


  Note: Inherits from gld_object (not in generators module)'
comments:
- 'Import: BatteryUnit, mRID <connection>_unit (inverter.cimtbl), with a BatteryInfo
  datasheet; its parent must be an inverter; name is BatteryUnit.name. Export: each
  BatteryUnit as the battery child of its inverter.'
from_schema: https://gridlabd.org/schema/glm
exact_mappings:
- cim:BatteryUnit
close_mappings:
- cim:BatteryInfo
is_a: glm_object
attributes:
  generator_mode:
    name: generator_mode
    annotations:
      order:
        tag: order
        value: 1
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: generator_mode
    description: 'LEGACY MODEL: Selects generator control mode when using legacy model;
      in non-legacy models, this should be SUPPLY_DRIVEN.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - inverter
    - rectifier
    range: GeneratorMode
    required: false
  additional_controls:
    name: additional_controls
    annotations:
      order:
        tag: order
        value: 2
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: additional_controls
    description: 'LEGACY MODEL: In conjunction with POWER_DRIVEN, VOLTAGE_CONTROLLED,
      and POWER_VOLTAGE_HYBRID, this will activate control set points that adjust
      with temperature'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: string
    required: false
  generator_status:
    name: generator_status
    annotations:
      order:
        tag: order
        value: 3
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: generator_status
    description: describes whether the generator is online or offline
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - inverter
    range: GeneratorStatus
    required: false
  rfb_size:
    name: rfb_size
    annotations:
      order:
        tag: order
        value: 4
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: rfb_size
    description: Default settings for certain sizes of batteries
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: string
    required: false
  power_type:
    name: power_type
    annotations:
      order:
        tag: order
        value: 5
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: power_type
    description: 'LEGACY MODEL: Not currently used'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: string
    required: false
  battery_state:
    name: battery_state
    annotations:
      order:
        tag: order
        value: 6
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: battery_state
    description: Describes the current state of the battery
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: string
    required: false
  number_battery_state_changes:
    name: number_battery_state_changes
    annotations:
      order:
        tag: order
        value: 7
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: number_battery_state_changes
    description: 'LEGACY MODEL: Number of times battery switches between charging
      and discharging'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
  monitored_power:
    name: monitored_power
    annotations:
      order:
        tag: order
        value: 8
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: monitored_power[W]
    description: 'LEGACY MODEL: output only; power output value of parent meter when
      performing load following modes (POWER_DRIVEN)'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  power_set_high:
    name: power_set_high
    annotations:
      order:
        tag: order
        value: 9
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: power_set_high[W]
    description: 'LEGACY MODEL: high set point of dead band for load following (POWER_DRIVEN)'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  power_set_low:
    name: power_set_low
    annotations:
      order:
        tag: order
        value: 10
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: power_set_low[W]
    description: 'LEGACY MODEL: low set point of dead band for load following (POWER_DRIVEN)'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  power_set_high_highT:
    name: power_set_high_highT
    annotations:
      order:
        tag: order
        value: 11
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: power_set_high_highT[W]
    description: 'LEGACY MODEL: high set point of dead band for load following at
      higher temperatures (POWER_DRIVEN + LINEAR_TEMPERATURE)'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  power_set_low_highT:
    name: power_set_low_highT
    annotations:
      order:
        tag: order
        value: 12
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: power_set_low_highT[W]
    description: 'LEGACY MODEL: low set point of dead band for load following at higher
      temperatures (POWER_DRIVEN + LINEAR_TEMPERATURE)'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  check_power_low:
    name: check_power_low
    annotations:
      order:
        tag: order
        value: 13
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: check_power_low[W]
    description: 'LEGACY MODEL: high set point of dead band for load following at
      lower temperatures (POWER_DRIVEN + LINEAR_TEMPERATURE)'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  check_power_high:
    name: check_power_high
    annotations:
      order:
        tag: order
        value: 14
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: check_power_high[W]
    description: 'LEGACY MODEL: low set point of dead band for load following at lower
      temperatures (POWER_DRIVEN + LINEAR_TEMPERATURE)'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  voltage_set_high:
    name: voltage_set_high
    annotations:
      order:
        tag: order
        value: 15
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: voltage_set_high[V]
    description: 'LEGACY MODEL: high set point for voltage control'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    owner: battery
    domain_of:
    - capacitor
    - battery
    range: float
    required: false
    unit:
      ucum_code: V
  voltage_set_low:
    name: voltage_set_low
    annotations:
      order:
        tag: order
        value: 16
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: voltage_set_low[V]
    description: 'LEGACY MODEL: low set point for voltage control'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    owner: battery
    domain_of:
    - capacitor
    - battery
    range: float
    required: false
    unit:
      ucum_code: V
  deadband:
    name: deadband
    annotations:
      order:
        tag: order
        value: 17
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: deadband[V]
    description: 'LEGACY MODEL: voltage deadband'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    owner: battery
    domain_of:
    - load_tracker
    - battery
    - freezer
    - refrigerator
    range: float
    required: false
    unit:
      ucum_code: V
  sensitivity:
    name: sensitivity
    annotations:
      order:
        tag: order
        value: 18
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: sensitivity
    description: 'LEGACY MODEL: describes how sensitive the control is to temperature
      excursions; defines slope of linear control'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
  high_temperature:
    name: high_temperature
    annotations:
      order:
        tag: order
        value: 19
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: high_temperature
    description: 'LEGACY MODEL: high temperature of linear control; defines slope'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
  midpoint_temperature:
    name: midpoint_temperature
    annotations:
      order:
        tag: order
        value: 20
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: midpoint_temperature
    description: 'LEGACY MODEL: midpoint temperature of linear control; defines slope'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
  low_temperature:
    name: low_temperature
    annotations:
      order:
        tag: order
        value: 21
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: low_temperature
    description: 'LEGACY MODEL: low temperature of linear control; defines slope'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
  scheduled_power:
    name: scheduled_power
    annotations:
      order:
        tag: order
        value: 22
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: scheduled_power[W]
    description: 'LEGACY MODEL: real power output of battery/inverter system'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  Rinternal:
    name: Rinternal
    annotations:
      order:
        tag: order
        value: 23
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: Rinternal[Ohm]
    description: 'LEGACY MODEL: the internal resistance of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - solar
    range: float
    required: false
    unit:
      ucum_code: Ohm
  V_Max:
    name: V_Max
    annotations:
      order:
        tag: order
        value: 24
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: V_Max[V]
    description: 'LEGACY MODEL: the maximum terminal voltage of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - solar
    range: float
    required: false
    unit:
      ucum_code: V
  I_Max:
    name: I_Max
    annotations:
      order:
        tag: order
        value: 25
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: I_Max[A]
    description: 'LEGACY MODEL: the maximum current output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: Complex
    required: false
    unit:
      ucum_code: A
  E_Max:
    name: E_Max
    annotations:
      order:
        tag: order
        value: 26
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: E_Max[Wh]
    description: 'LEGACY MODEL: the maximum capacity of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: Wh
  P_Max:
    name: P_Max
    annotations:
      order:
        tag: order
        value: 27
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: P_Max[W]
    description: 'LEGACY MODEL: the maximum power output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  power_factor:
    name: power_factor
    annotations:
      order:
        tag: order
        value: 28
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: power_factor
    description: 'LEGACY MODEL: the power factor output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    owner: battery
    domain_of:
    - performance_motor
    - battery
    - inverter
    - windturb_dg
    - residential_enduse
    range: float
    required: false
  Energy:
    name: Energy
    annotations:
      order:
        tag: order
        value: 29
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: Energy[Wh]
    description: 'LEGACY MODEL: the available capacity of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: Wh
  efficiency:
    name: efficiency
    annotations:
      order:
        tag: order
        value: 30
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: efficiency[unit]
    description: 'LEGACY MODEL: the efficiency of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    owner: battery
    domain_of:
    - vfd
    - battery
    - diesel_dg
    - solar
    range: float
    required: false
    unit:
      ucum_code: unit
  base_efficiency:
    name: base_efficiency
    annotations:
      order:
        tag: order
        value: 31
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: base_efficiency[unit]
    description: 'LEGACY MODEL: the efficiency of the battery at rated voltaged and
      current.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: unit
  parasitic_power_draw:
    name: parasitic_power_draw
    annotations:
      order:
        tag: order
        value: 32
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: parasitic_power_draw[W]
    description: 'LEGACY MODEL: the parasytic power draw of the battery when idle.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  V_Out:
    name: V_Out
    annotations:
      order:
        tag: order
        value: 33
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: V_Out[V]
    description: 'LEGACY MODEL: the AC voltage at the terminals of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - rectifier
    - solar
    range: Complex
    required: false
    unit:
      ucum_code: V
  I_Out:
    name: I_Out
    annotations:
      order:
        tag: order
        value: 34
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: I_Out[A]
    description: 'LEGACY MODEL: the AC current output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - rectifier
    - solar
    range: Complex
    required: false
    unit:
      ucum_code: A
  VA_Out:
    name: VA_Out
    annotations:
      order:
        tag: order
        value: 35
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: VA_Out[VA]
    description: 'LEGACY MODEL: the power output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - inverter
    - inverter_dyn
    - rectifier
    range: Complex
    required: false
    unit:
      ucum_code: VA
  I_In:
    name: I_In
    annotations:
      order:
        tag: order
        value: 36
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: I_In[A]
    description: 'LEGACY MODEL: the current flowing into the battery of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - inverter
    - inverter_dyn
    range: Complex
    required: false
    unit:
      ucum_code: A
  V_Internal:
    name: V_Internal
    annotations:
      order:
        tag: order
        value: 37
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: V_Internal[V]
    description: 'LEGACY MODEL: the internal voltage of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: Complex
    required: false
    unit:
      ucum_code: V
  I_Internal:
    name: I_Internal
    annotations:
      order:
        tag: order
        value: 38
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: I_Internal[A]
    description: 'LEGACY MODEL: the internal current of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: Complex
    required: false
    unit:
      ucum_code: A
  I_Prev:
    name: I_Prev
    annotations:
      order:
        tag: order
        value: 39
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: I_Prev[A]
    description: 'LEGACY MODEL: the previous current output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: Complex
    required: false
    unit:
      ucum_code: A
  power_transferred:
    name: power_transferred
    annotations:
      order:
        tag: order
        value: 40
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: power_transferred
    description: 'LEGACY MODEL: the power output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
  use_internal_battery_model:
    name: use_internal_battery_model
    annotations:
      order:
        tag: order
        value: 41
      value_type:
        tag: value_type
        value: bool
      native_name:
        tag: native_name
        value: use_internal_battery_model
    description: Enables the INTERNAL BATTERY MODEL.
    comments:
    - 'Import: structural; TRUE only, false (the legacy model) raises. Export: TRUE.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: boolean
    required: false
  battery_type:
    name: battery_type
    annotations:
      order:
        tag: order
        value: 42
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: battery_type
    description: 'INTERNAL BATTERY MODEL: the type of the battery. Used to determine
      the soc vs voltage curve.'
    comments:
    - 'Import: LI_ION is lithiumIon, LEAD_ACID leadAcid, others blank. Export: the
      BatteryInfo''s, unset without one.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    close_mappings:
    - cim:BatteryInfo.batteryType
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: string
    required: false
  nominal_voltage:
    name: nominal_voltage
    annotations:
      order:
        tag: order
        value: 43
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: nominal_voltage[V]
    description: 'INTERNAL BATTERY MODEL: the rated DC voltage at the terminals of
      the battery.'
    comments:
    - 'Import: numberOfCells = floor(nominal_voltage / 4.1 V) on LI_ION; default 115
      V. Export: unset (the DC voltage has no CIM home yet).'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    close_mappings:
    - cim:BatteryInfo.numberOfCells
    owner: battery
    domain_of:
    - powerflow_object
    - battery
    - waterheater
    range: float
    required: false
    unit:
      ucum_code: V
  rated_power:
    name: rated_power
    annotations:
      order:
        tag: order
        value: 44
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: rated_power[W]
    description: 'INTERNAL BATTERY MODEL: the rated power output of the battery.'
    comments:
    - 'Import: BatteryUnit.maxP = rated_power and minP = -rated_power (W). Export:
      maxP.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    close_mappings:
    - cim:PowerElectronicsUnit.maxP
    - cim:PowerElectronicsUnit.minP
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - inverter
    - inverter_dyn
    - solar
    range: float
    required: false
    unit:
      ucum_code: W
  battery_capacity:
    name: battery_capacity
    annotations:
      order:
        tag: order
        value: 45
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: battery_capacity[Wh]
    description: 'INTERNAL BATTERY MODEL: the rated battery capacity of the battery.'
    comments:
    - 'Import: BatteryUnit.ratedE and BatteryInfo.ratedCapacity (Wh); unset raises.
      Export: ratedE.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    close_mappings:
    - cim:BatteryUnit.ratedE
    - cim:BatteryInfo.ratedCapacity
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - evcharger_det
    range: float
    required: false
    unit:
      ucum_code: Wh
  round_trip_efficiency:
    name: round_trip_efficiency
    annotations:
      order:
        tag: order
        value: 46
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: round_trip_efficiency[pu]
    description: 'INTERNAL BATTERY MODEL: the round trip efficiency of the battery
      according to a full discharge/charge cycle.'
    comments:
    - 'Import: both efficiencies are the square root of it, in percent; default 0.8.
      Export: chargingEfficiency x dischargingEfficiency.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    close_mappings:
    - cim:BatteryUnit.chargingEfficiency
    - cim:BatteryUnit.dischargingEfficiency
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: pu
  state_of_charge:
    name: state_of_charge
    annotations:
      order:
        tag: order
        value: 47
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: state_of_charge[pu]
    description: 'INTERNAL BATTERY MODEL: the current state of charge of the battery.'
    comments:
    - 'Import: storedE (Wh) = state_of_charge x battery_capacity; unset raises. Export:
      storedE / ratedE.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    close_mappings:
    - cim:BatteryUnit.storedE
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: pu
  battery_load:
    name: battery_load
    annotations:
      order:
        tag: order
        value: 48
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: battery_load[W]
    description: 'INTERNAL BATTERY MODEL: the current power output of the battery.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: W
  reserve_state_of_charge:
    name: reserve_state_of_charge
    annotations:
      order:
        tag: order
        value: 49
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: reserve_state_of_charge[pu]
    description: 'INTERNAL BATTERY MODEL: the reserve state of charge the battery
      can reach.'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
    unit:
      ucum_code: pu
  state_change_time_delta:
    name: state_change_time_delta
    annotations:
      order:
        tag: order
        value: 50
      value_type:
        tag: value_type
        value: int
      native_name:
        tag: native_name
        value: state_change_time_delta
    description: 'CHECKPOINT_VAR: internal variable for state_change_time_delta'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: integer
    required: false
  margin:
    name: margin
    annotations:
      order:
        tag: order
        value: 51
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: margin
    description: 'CHECKPOINT_VAR: internal variable for margin'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
  E_Next:
    name: E_Next
    annotations:
      order:
        tag: order
        value: 52
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: E_Next
    description: 'CHECKPOINT_VAR: internal variable for E_Next'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
  recalculate:
    name: recalculate
    annotations:
      order:
        tag: order
        value: 53
      value_type:
        tag: value_type
        value: bool
      native_name:
        tag: native_name
        value: recalculate
    description: 'CHECKPOINT_VAR: internal variable for recalculate'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: boolean
    required: false
  prev_time:
    name: prev_time
    annotations:
      order:
        tag: order
        value: 54
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: prev_time
    description: 'CHECKPOINT_VAR: internal variable for prev_time'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - inverter
    range: string
    required: false
  first_time_step:
    name: first_time_step
    annotations:
      order:
        tag: order
        value: 55
      value_type:
        tag: value_type
        value: int
      native_name:
        tag: native_name
        value: first_time_step
    description: 'CHECKPOINT_VAR: internal variable for first_time_step'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: integer
    required: false
  prev_state:
    name: prev_state
    annotations:
      order:
        tag: order
        value: 56
      value_type:
        tag: value_type
        value: int
      native_name:
        tag: native_name
        value: prev_state
    description: 'CHECKPOINT_VAR: 1 is charging, 0 is nothing, -1 is discharging'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: integer
    required: false
  internal_battery_load:
    name: internal_battery_load
    annotations:
      order:
        tag: order
        value: 57
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: internal_battery_load
    description: 'CHECKPOINT_VAR: the power out of the battery on the source side
      of the internal resistance'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
  value_Circuit_V_A:
    name: value_Circuit_V_A
    annotations:
      order:
        tag: order
        value: 58
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: value_Circuit_V_A
    description: 'CHECKPOINT_VAR: internal variable for value_Circuit_V[0]'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - windturb_dg
    range: Complex
    required: false
  value_Circuit_V_B:
    name: value_Circuit_V_B
    annotations:
      order:
        tag: order
        value: 59
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: value_Circuit_V_B
    description: 'CHECKPOINT_VAR: internal variable for value_Circuit_V[1]'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - windturb_dg
    range: Complex
    required: false
  value_Circuit_V_C:
    name: value_Circuit_V_C
    annotations:
      order:
        tag: order
        value: 60
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: value_Circuit_V_C
    description: 'CHECKPOINT_VAR: internal variable for value_Circuit_V[2]'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - windturb_dg
    range: Complex
    required: false
  value_Line_I_A:
    name: value_Line_I_A
    annotations:
      order:
        tag: order
        value: 61
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: value_Line_I_A
    description: 'CHECKPOINT_VAR: internal variable for value_Line_I[0]'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - windturb_dg
    range: Complex
    required: false
  value_Line_I_B:
    name: value_Line_I_B
    annotations:
      order:
        tag: order
        value: 62
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: value_Line_I_B
    description: 'CHECKPOINT_VAR: internal variable for value_Line_I[1]'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - windturb_dg
    range: Complex
    required: false
  value_Line_I_C:
    name: value_Line_I_C
    annotations:
      order:
        tag: order
        value: 63
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: value_Line_I_C
    description: 'CHECKPOINT_VAR: internal variable for value_Line_I[2]'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - windturb_dg
    range: Complex
    required: false
  value_Line12:
    name: value_Line12
    annotations:
      order:
        tag: order
        value: 64
      value_type:
        tag: value_type
        value: complex
      native_name:
        tag: native_name
        value: value_Line12
    description: 'CHECKPOINT_VAR: internal variable for value_Line12'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    - windturb_dg
    range: Complex
    required: false
  value_Tout:
    name: value_Tout
    annotations:
      order:
        tag: order
        value: 65
      value_type:
        tag: value_type
        value: float
      precision:
        tag: precision
        value: 6
      native_name:
        tag: native_name
        value: value_Tout
    description: 'CHECKPOINT_VAR: internal variable for value_Tout'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: float
    required: false
  parent_is_meter:
    name: parent_is_meter
    annotations:
      order:
        tag: order
        value: 66
      value_type:
        tag: value_type
        value: bool
      native_name:
        tag: native_name
        value: parent_is_meter
    description: 'CHECKPOINT_VAR: internal variable for parent_is_meter'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: boolean
    required: false
  parent_is_triplex:
    name: parent_is_triplex
    annotations:
      order:
        tag: order
        value: 67
      value_type:
        tag: value_type
        value: bool
      native_name:
        tag: native_name
        value: parent_is_triplex
    description: 'CHECKPOINT_VAR: internal variable for parent_is_triplex'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: boolean
    required: false
  parent_is_inverter:
    name: parent_is_inverter
    annotations:
      order:
        tag: order
        value: 68
      value_type:
        tag: value_type
        value: bool
      native_name:
        tag: native_name
        value: parent_is_inverter
    description: 'CHECKPOINT_VAR: internal variable for parent_is_inverter'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: boolean
    required: false
  climate_object_found:
    name: climate_object_found
    annotations:
      order:
        tag: order
        value: 69
      value_type:
        tag: value_type
        value: bool
      native_name:
        tag: native_name
        value: climate_object_found
    description: 'CHECKPOINT_VAR: internal variable for climate_object_found'
    from_schema: https://gridlabd.org/schema/glm/generators/battery
    rank: 1000
    owner: battery
    domain_of:
    - battery
    range: boolean
    required: false
  name:
    name: name
    annotations:
      order:
        tag: order
        value: 0
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: name
    description: The object's name; unique across the model.
    comments:
    - 'Import: <CIM class>.name, copied as written; mRID = the class''s prefix + name
      (none on a bus). Export: Names, sanitized for GridLAB-D; a name two objects
      share raises.'
    from_schema: https://gridlabd.org/schema/glm/types/common
    exact_mappings:
    - cim:IdentifiedObject.name
    rank: 1000
    identifier: true
    owner: battery
    domain_of:
    - glm_object
    range: string
    required: true
  parent:
    name: parent
    annotations:
      order:
        tag: order
        value: 0
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: parent
    description: The parent object's name. A child node is solved as its parent's
      bus; a nested object block sets it to the enclosing object.
    comments:
    - 'Import: a bus whose parent is a bus is its root bus''s ConnectivityNode, named
      on the root''s row; no object of its own. On a link it is not mapped.'
    from_schema: https://gridlabd.org/schema/glm/types/common
    rank: 1000
    owner: battery
    domain_of:
    - glm_object
    range: string
  groupid:
    name: groupid
    annotations:
      order:
        tag: order
        value: 0
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: groupid
    description: Free-text group label.
    from_schema: https://gridlabd.org/schema/glm/types/common
    rank: 1000
    owner: battery
    domain_of:
    - glm_object
    range: string
  latitude:
    name: latitude
    annotations:
      order:
        tag: order
        value: 0
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: latitude
    description: Latitude, as written (decimal degrees or GridLAB-D's 37N26:12 form).
    comments:
    - Not converted. Home is the EquipmentLocation shape.
    from_schema: https://gridlabd.org/schema/glm/types/common
    rank: 1000
    owner: battery
    domain_of:
    - glm_object
    range: string
  longitude:
    name: longitude
    annotations:
      order:
        tag: order
        value: 0
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: longitude
    description: Longitude, as written.
    comments:
    - Not converted. Home is the EquipmentLocation shape.
    from_schema: https://gridlabd.org/schema/glm/types/common
    rank: 1000
    owner: battery
    domain_of:
    - glm_object
    range: string
  in_svc:
    name: in_svc
    annotations:
      order:
        tag: order
        value: 0
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: in_svc
    description: Timestamp the object enters service.
    from_schema: https://gridlabd.org/schema/glm/types/common
    rank: 1000
    owner: battery
    domain_of:
    - glm_object
    range: string
  out_svc:
    name: out_svc
    annotations:
      order:
        tag: order
        value: 0
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: out_svc
    description: Timestamp the object leaves service.
    from_schema: https://gridlabd.org/schema/glm/types/common
    rank: 1000
    owner: battery
    domain_of:
    - glm_object
    range: string
  rank:
    name: rank
    annotations:
      order:
        tag: order
        value: 0
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: rank
    description: Solver rank.
    from_schema: https://gridlabd.org/schema/glm/types/common
    rank: 1000
    owner: battery
    domain_of:
    - glm_object
    range: string
  flags:
    name: flags
    annotations:
      order:
        tag: order
        value: 0
      value_type:
        tag: value_type
        value: string
      native_name:
        tag: native_name
        value: flags
    description: Core object flags.
    from_schema: https://gridlabd.org/schema/glm/types/common
    rank: 1000
    owner: battery
    domain_of:
    - glm_object
    range: string