batt_bank_size vs. batt_bank_size_ui

  • gabrielkonzen
  • Topic Author
More
10 Aug 2022 13:57 #11344 by gabrielkonzen
batt_bank_size vs. batt_bank_size_ui was created by gabrielkonzen
Hi, these two LK variables are for: "Desired bank capacity" but each one gives me two different results in the simulation (in terms of NPV, for instance). What's is the difference between them? By the way, does SAM has a list explaining all the variables that can be used in LK?

Best,

GK

Please Log in or Create an account to join the conversation.

  • pgilman
More
11 Aug 2022 00:16 - 11 Aug 2022 00:17 #11346 by pgilman
Replied by pgilman on topic batt_bank_size vs. batt_bank_size_ui
Hi Gabriel,

Sorry this is confusing, and that it is not documented.

batt_bank_size is the desired bank capacity in kWh that gets sent to the simulation module.

SAM's user interface calculates this value as follows:
equations{'batt_bank_size'} = define() {
    if (${batt_duration_choice}==0) {
        return ${batt_bank_size_ui};
    }
    else
        return ${batt_bank_power} * ${batt_bank_duration};
};

batt_duration_choice is the kWh/kW dropdown that you see in on the Battery Cell and System page next to the Desired bank capacity input: 0 = kWh, 1 = h.

So if batt_duration_choice is zero, you should set the value of batt_bank_size_ui in kWh to set the desired bank capacity in your script. If it is set to one, you should use batt_bank_duration in hours.

You can use SAM's inputs browser (File, Inputs Browser) to see a list of all of the inputs in the user interface with both their label and variable name. You can also see a list of variable names and labels by clicking Variables at the top of the LK script editor.

Best regards,
Paul.
Last edit: 11 Aug 2022 00:17 by pgilman.

Please Log in or Create an account to join the conversation.

Moderators: pgilman
Powered by Kunena Forum