Skip to content

Loss curves and units #1728

Description

@luke-kiernan

Currently, fields that are loss curves are declared as ValueCurve types. Unlike CostCurve types, those objects don't have units data attached to them. Hence the units are currently ambiguous.

This is causing actual issues. psi_library.jl:1829-1957 in PSB builds a loss curve on an InterconnectingConverter with the y axis in system base. Meanwhile, code in an open POM PR assumes that same curve has its y axis in device base...

Potential solutions:

  1. Eliminate the ambiguity by adding units somewhere.
    a. Add units to ValueCurve.
    b. Introduce some other curve type that carries units, but isn't a CostCurve.
    c. Just make them CostCurves, even though losses aren't costs.
  2. Decide on some fixed units and document that choice prominently.

edit: here I'm talking about the IS4/psy6 branches.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions