solar dhw - gas auxilary heater

2 posts / 0 new
Last post
solar dhw - gas auxilary heater

For a solar DHW system, I understand that SAM only calculates savings in kWh. There is a macro to run using an auxiliary gas water heat that gives the savings in kWh. Converting to BTU or therms is easy enough. However, with the 2017 version on SAM, I'm seeing results that suggest an error. The scale of auxiliary gas water savings is very low.

As an example, using the default system that opens up in SAM's residential solar water heating module, I get 2,407 kWh of annual savings for the electric water heater, but only 3 kWh savings when using the gas water heater macro. In a prior version of SAM I was getting comparable kWh or BTU savings between an electric and gas water heater (adjusting for water heater system efficiencies).

Using basic energy conversion factors, I'm seeing an 2 order of magnitude or greater issue. I also allow that I may be misunderstanding what I'm doing or seeing, but I'm not convinced that the case. The solar fraction for electric is 0.68 and for gas is 0.62. 3 kWh savings and a 0.62 solar fraction are not in alignment.

Thanks for any help or guidance,

Paul Gilman


It looks like we changed the units from W to kW at some point and we forgot to update the macro.

Here's how you can fix the macro:

1. Start SAM, create or open a solar water heating case.

2. On the Macros page, click the Auxiliary Gas Heater macro.

3. Click View Code at the top right of the page to open the script editor.

4. For lines 65, 66, and 67, remove the division by 1000. The lines should look like this when you finish:

Q_gas_saved[i] = Q_saved[i] / Eta_burn;
Q_gas_no_solar[i] = Q_aux_only[i] / EF_gas_tank;
Q_gas_with_solar[i] = ( Q_gas_no_solar[i] - Q_gas_saved[i] + P_pump[i] );

5. Click Save at the top of the script editor to save your changes.

6. Click Close to close the editor.

7. Switch to a different macro and then back to the Auxiliary Gas Heater macro to reload the macro.

Now when you run the macro, you should get results in the correct units.

I will update the macro so that it is correct in the next version of SAM. Thanks for pointing out the error!

Best regards,

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer