-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use pvlib for PV Model #1
Comments
pvlib seems like a much better choice at this point. |
@mnblonsky and @jmaguire1 to discuss w/ SAM team next week. |
Is there a recommended path to model PV in OCHRE for the time being? I've done the following:
But I'm still running into walls - most recently Do you recommend not modeling solar in OCHRE currently, or is there a recommended way to do it? |
Hi @jason-curtis, you're right that the The We haven't run SAM with OCHRE in a while, so it looks like there are a few bugs for us to fix. For now, I would recommend that you run SAM separately and get a time series PV power profile, and then save that to the Normally, the recommended way to run with PV is to only specify |
Got it, thanks for the response. I already have `pvlib` set up for my
location so I will try and generate a schedule file from that.
…On Thu, Nov 9, 2023 at 6:52 AM Michael Blonsky ***@***.***> wrote:
Hi @jason-curtis <https://github.com/jason-curtis>, you're right that the
equipment_schedule_file will currently overwrite any data that SAM
generates. I think that's something we should change in the future.
The sam_weather_file is actually a file path that OCHRE will use to save
data for SAM, so OCHRE will overwrite anything in that file. There's also a
default, so you don't need to specify it.
We haven't run SAM with OCHRE in a while, so it looks like there are a few
bugs for us to fix. For now, I would recommend that you run SAM separately
and get a time series PV power profile, and then save that to the
equipment_schedule_file. You'll need to change the heading so the power
column is called "PV (kW)". OCHRE will use that column to set the PV power
at each time step. No need to specify any other inputs, though you can use
schedule_rename_columns to automatically change the power column name or
schedule_scale_factor to automatically change the units.
Normally, the recommended way to run with PV is to only specify capacity
in the PV dictionary. That's the only required input
<https://ochre-docs-final.readthedocs.io/en/latest/InputsAndArguments.html#solar-pv>.
However, it doesn't look like this is working in the latest version of
OCHRE. I'll work on a fix for this soon.
—
Reply to this email directly, view it on GitHub
<#1 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZPVU6JOU7CP4U4Q2AOHXTYDTU2XAVCNFSM6AAAAAA2BB4CWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBTHE4DAMBTGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
OK, I passed in a CSV file under
If it helps, this is the PV file I'm passing: https://gist.github.com/jason-curtis/9c75794fb6c32b8cecc74f936cfb44dd . I've tried with and without a timestamp column, with the same results. Apologies if this is off topic, lmk if I should file a separate issue. |
That's very strange... It looks like maybe you included something in |
Nothing in I just realized I had another issue where I changed the timestep, and now the In any case, I'm taking a non-OCHRE approach for the moment and I'll keep an eye on this issue for when In the unlikely event that I end up with spare time on this, would you accept a PR for removing the |
Ok. The Yes, it'd be great if you wanted to help with the development of pvlib! We did recently learn that PySAM can do single step updates, so we may stick with it long term, but we haven't made that decision yet. One possible advantage of PySAM over pvlib is that I think it has more features related to inverter modeling and DC-coupled PV+battery, so we may prefer that route. We'll hopefully get to that in 2024. |
We plan to use PySAM v5.0 instead of switching to pvlib. The new version of PySAM has a few useful features, including direct implementation of PVWatts (which will be the default) and the ability to run single time steps. We're also removing the |
Nice! Glad you can run a single timestep now, that's a big change for our use case. And I'd rather use an NREL tool than pvlib if possible. This might also set us up in the future to use SAM for utility bills? I know it has a bill calculation module that can load rates from the URDB, I think (but not 100%) we do this for OS-HPXML. At one point a long time ago I wrote my own bill calculation methodology (in python for BEopt 2.x) but I'd rather rely on SAM in case we hit any complicated cases (like say TOU + tiered + PV without net metering). |
Addresses #1 - [x] Reference the issue your PR is fixing - [x] Assign at least 1 reviewer for your PR - [x] Test with run_dwelling.py or other script - [x] Update documentation as appropriate - [x] Update changelog as appropriate
Just tried running SAM v4.0 within OCHRE and it failed:
reset to 3.0.1 and it works. We should mention this in the documentation and update so it works with the latest PySAM. Or move to pvlib...
The text was updated successfully, but these errors were encountered: