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.