Skip to content

Commit

Permalink
PySAM v 2.2.4 (#97)
Browse files Browse the repository at this point in the history
* files for pysam 2.2.4

* update build_manylinux.sh

* update tests and conda build
  • Loading branch information
dguittet authored Aug 21, 2021
1 parent a4dce76 commit d08cbcf
Show file tree
Hide file tree
Showing 47 changed files with 2,986 additions and 872 deletions.
7 changes: 6 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Release Notes

## Version 2.2.3, ~ SAM 2020.11.29 Revision 2, SSC Version
## Version 2.2.4, Aug 20, 2021 ~ SAM 2020.11.29, Revision 2, SSC Version 259
* Fix bug in Battery LMO/LTO life model
* Fix a few cost defaults for PV PPA-model configuration
* Clean up PhysicalTroughProcessHeat inputs

## Version 2.2.3, July 22, 2021 ~ SAM 2020.11.29 Revision 2, SSC Version
* Fix ResourceTools solar resource download bug (#86)
* Update Models.rst and module docs
* New analytic battery life model for LMO/LTO chemistry
Expand Down
1 change: 0 additions & 1 deletion build_manylinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ ln -s /opt/python/cp37-cp37m/bin/cmake /usr/bin/cmake

mkdir -p /io/build_linux_ssc
cd /io/build_linux_ssc
rm -rf *
cmake ${SSCDIR} -DCMAKE_BUILD_TYPE=Release -DSAM_SKIP_TOOLS=1 -DSAMAPI_EXPORT=1 -DSAM_SKIP_TESTS=1 ../ssc/ || exit
make -j 6

Expand Down
2 changes: 1 addition & 1 deletion build_unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ done
mypy stubs/stubs || exit
python stubs/setup.py bdist_wheel

$PYSAMDIR/build_conda.sh || exit
yes | $PYSAMDIR/build_conda.sh || exit

#
# Building for Manylinux1
Expand Down
2 changes: 1 addition & 1 deletion conda/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi

pattern=$DIST_DIR/NREL_PySAM-*$VERSION*"${PYTHONVER//.}"*$OS_NAME*whl
FILE=( $pattern )
pattern=$DIST_DIR/NREL_PySAM_stubs-*$VERSION*"${PYTHONVER//.}"*$OS_NAME*whl
pattern=$DIST_DIR/NREL_PySAM_stubs-*$VERSION*whl
STUBS_FILE=( $pattern )

if [ -f "$FILE" ]; then
Expand Down
6 changes: 6 additions & 0 deletions docs/modules/Battery.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ ElectricityRates Group
.. autoclass:: PySAM.Battery.Battery.ElectricityRates
:members:

GridLimits Group
======================================================

.. autoclass:: PySAM.Battery.Battery.GridLimits
:members:

Outputs Group
======================================================

Expand Down
6 changes: 6 additions & 0 deletions docs/modules/Battwatts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ Load Group
.. autoclass:: PySAM.Battwatts.Battwatts.Load
:members:

GridLimits Group
======================================================

.. autoclass:: PySAM.Battwatts.Battwatts.GridLimits
:members:

Outputs Group
======================================================

Expand Down
12 changes: 6 additions & 6 deletions docs/modules/Grid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ Lifetime Group
.. autoclass:: PySAM.Grid.Grid.Lifetime
:members:

GridLimits Group
======================================================

.. autoclass:: PySAM.Grid.Grid.GridLimits
:members:

SystemOutput Group
======================================================

Expand All @@ -56,6 +50,12 @@ Load Group
.. autoclass:: PySAM.Grid.Grid.Load
:members:

GridLimits Group
======================================================

.. autoclass:: PySAM.Grid.Grid.GridLimits
:members:

Outputs Group
======================================================

Expand Down
6 changes: 6 additions & 0 deletions docs/modules/Pvsamv1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,12 @@ ElectricityRates Group
.. autoclass:: PySAM.Pvsamv1.Pvsamv1.ElectricityRates
:members:

GridLimits Group
======================================================

.. autoclass:: PySAM.Pvsamv1.Pvsamv1.GridLimits
:members:

AdjustmentFactors Group
======================================================

Expand Down
12 changes: 12 additions & 0 deletions docs/modules/TcsmoltenSalt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ SolarResource Group
.. autoclass:: PySAM.TcsmoltenSalt.TcsmoltenSalt.SolarResource
:members:

FinancialModel Group
======================================================

.. autoclass:: PySAM.TcsmoltenSalt.TcsmoltenSalt.FinancialModel
:members:

TimeOfDeliveryFactors Group
======================================================

Expand Down Expand Up @@ -105,6 +111,12 @@ SCO2Cycle Group
.. autoclass:: PySAM.TcsmoltenSalt.TcsmoltenSalt.SCO2Cycle
:members:

Revenue Group
======================================================

.. autoclass:: PySAM.TcsmoltenSalt.TcsmoltenSalt.Revenue
:members:

AdjustmentFactors Group
======================================================

Expand Down
12 changes: 12 additions & 0 deletions docs/modules/TroughPhysical.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ Tou Group
.. autoclass:: PySAM.TroughPhysical.TroughPhysical.Tou
:members:

FinancialModel Group
======================================================

.. autoclass:: PySAM.TroughPhysical.TroughPhysical.FinancialModel
:members:

Revenue Group
======================================================

.. autoclass:: PySAM.TroughPhysical.TroughPhysical.Revenue
:members:

System Group
======================================================

Expand Down
65 changes: 0 additions & 65 deletions docs/modules/TroughPhysicalProcessHeat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,71 +5,6 @@ TroughPhysicalProcessHeat

Wrapper for SAM Simulation Core model: `cmod_trough_physical_process_heat.cpp <https://github.com/NREL/ssc/blob/develop/ssc/cmod_trough_physical_process_heat.cpp>`_

Input Consistency Warning
==================================

As described in :ref:`Possible Problems <possible_problems>`, some input parameters are interdependent but the equations
that enforce consistency are not available in this PySAM module. Therefore,
the onus is on the PySAM user to check that interdependencies are correctly handled. The variables which may require
additional logic include:

- A_aperture
- Ave_Focal_Length
- ColperSCA
- D_2
- D_cpnt
- Design_loss
- Dirt_HCE
- Dirt_mirror
- Distance_SCA
- Error
- Fluid
- GeomEffects
- HCE_FieldFrac
- IAM_matrix
- I_bn_des
- K_cpnt
- L_SCA
- L_aperture
- L_cpnt
- Rho_mirror_clean
- Row_Distance
- SCADefocusArray
- SCAInfoArray
- SCA_drives_elec
- Shadowing
- T_loop_in_des
- T_loop_out
- Tau_envelope
- TrackingError
- Type_cpnt
- W_aperture
- alpha_abs
- azimuth
- disp_wlim_maxspec
- field_fl_props
- fluid_dens_inlet_temp
- fluid_dens_outlet_temp
- is_dispatch
- is_wlim_series
- lat
- m_dot_htfmax
- m_dot_htfmin
- nLoops
- nSCA
- non_solar_field_land_area_multiplier
- q_pb_design
- radio_sm_or_area
- solar_mult
- specified_solar_multiple
- specified_total_aperture
- tilt
- trough_loop_control
- tshours
- wlim_series

Provided for each of these inputs is a list of other inputs that are potentially interdependent.

Creating an Instance
===================================

Expand Down
2 changes: 1 addition & 1 deletion files/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.2.3'
__version__ = '2.2.4'
Loading

0 comments on commit d08cbcf

Please sign in to comment.