h2integrate.core.feedstocks#
Classes
|
Config class for feedstock. |
|
|
|
Config class for feedstock. |
|
- class h2integrate.core.feedstocks.FeedstockPerformanceConfig(*, feedstock_type, units, rated_capacity)#
Config class for feedstock.
- Parameters:
feedstock_type (str)
units (str)
rated_capacity (float)
- name#
feedstock name
- Type:
str
- units#
feedstock usage units (such as "galUS" or "kg")
- Type:
str
- rated_capacity#
The rated capacity of the feedstock in units/hour. This is used to size the feedstock supply to meet the plant's needs.
- Type:
float
- feedstock_type: str#
- units: str#
- rated_capacity: float#
- class h2integrate.core.feedstocks.FeedstockPerformanceModel(**kwargs)#
- initialize()#
Perform any one-time initialization run at instantiation.
- setup()#
Declare inputs and outputs.
- Available attributes:
name pathname comm options
- compute(inputs, outputs)#
Compute outputs given inputs. The model is assumed to be in an unscaled state.
An inherited component may choose to either override this function or to define a compute_primal function.
- Parameters:
inputs (Vector) -- Unscaled, dimensional input variables read via inputs[key].
outputs (Vector) -- Unscaled, dimensional output variables read via outputs[key].
discrete_inputs (dict-like or None) -- If not None, dict-like object containing discrete input values.
discrete_outputs (dict-like or None) -- If not None, dict-like object containing discrete output values.
- class h2integrate.core.feedstocks.FeedstockCostConfig(*, cost_year, feedstock_type, units, price, annual_cost=0.0, start_up_cost=0.0)#
Config class for feedstock.
- Parameters:
cost_year (int)
feedstock_type (str)
units (str)
price (int | float | list)
annual_cost (float)
start_up_cost (float)
- name#
feedstock name
- Type:
str
- units#
feedstock usage units (such as "galUS" or "kg")
- Type:
str
- price#
The cost of the feedstock in USD/units). If scalar, cost is assumed to be constant for each timestep and each year. If list, then it can be the cost per timestep of the simulation
- Type:
scalar or list
- annual_cost#
fixed cost associated with the feedstock in USD/year
- Type:
float, optional
- start_up_cost#
one-time capital cost associated with the feedstock in USD.
- Type:
float, optional
- cost_year#
dollar-year for costs.
- Type:
int
- feedstock_type: str#
- units: str#
- price: int | float | list#
- annual_cost: float#
- start_up_cost: float#
- class h2integrate.core.feedstocks.FeedstockCostModel(**kwargs)#
- setup()#
Declare inputs and outputs.
- Available attributes:
name pathname comm options
- compute(inputs, outputs, discrete_inputs, discrete_outputs)#
Computation for the OM component.
For a template class this is not implement and raises an error.