Rename confusing/misleading variables and parameters
brynpickering opened this issue · comments
There are a few variables/parameters that are confusing on a first pass, and sometimes a bit misleading. The main culprit is energy_cap
, but there are a few others. Here are some ideas (and why they might need changing in brackets) from offline discussions and my own head:
variables
-
energy_cap
->flow_cap
/(this is e.g. in units ofcarrier_cap
flow_per_hour
so, if anything, is apower_cap
rather than anenergy_cap
, butpower
has an energy system focus and is perhaps confusing when one has e.g. water or distance travelled as the carrier) -
carrier_con
->flow_in
/(carrier_in
con
makes sense once you're a calliope convert, butin
is instantly understandable) -
carrier_prod
->flow_out
/(carrier_out
prod
makes sense once you're a calliope convert, butout
is instantly understandable) -
resource_area
->/resource_footprint
/footprint
area_use
(footprint
perhaps better covers the fact that it can be indirect (e.g., biofuel crops) or direct (e.g., PV panels) area use) -
resource_con
->/resource_in
source_use
(con
makes sense once you're a calliope convert, butin
is instantly understandable) -
purchased
->purchased_units
/binary_investment
(maybe this is rolled in withunits
and differentiated by setting the maximum to 1 and then having some other parameter set that allows it to have the same constraints applied to it aspurchased
currently does) -
units
->purchased_units
/integer_investment
(maybe this is rolled in withpurchased
and differentiated by having some other parameter set that allows it to have the same constraints applied to it asunits
currently does) -
prod_con_switch
->/in_out_switch
flow_switch
(see above)
parameters
All the above are ported across where relevant and...
-
energy_cap_min_use
->flow_out_min_relative
//flow_out_min
carrier_out_min
-
resource
->source
andsink
, i.e. we separate positive and negative resources into their own parameters.sink
becomes a positive number now. -
force_resource
-> (source_min
,source_max
, andsource_equals
) and (sink_min
,sink_max
, andsink_equals
)._equals
has to be there as these parameters tend to be the largest in the model (due to the time dimension).
Calliope version
v0.7.0-dev
I'm starting to think that source
and sink
should be source_use
and sink_use
(like with area_use
). source_use_max
, sink_use_equals
, etc. sounds better to me than source_max
, sink_equals
, etc. Thoughts @sjpfenninger , @FLomb , @jnnr , @FraSanvit ...?