h2integrate.core.test.test_feedstocks#

Tests for feedstock performance and cost models.

These tests validate the feedstock components that provide resource inputs to technologies, including natural gas, electricity, water, and other feedstock types.

Functions

create_basic_feedstock_config([...])

Create a basic feedstock configuration for testing.

test_multiple_different_type_feedstocks()

Test feedstocks of different types (natural gas, electricity, water).

test_multiple_same_type_feedstocks()

Test multiple feedstocks of the same type with different parameters.

test_single_feedstock_natural_gas()

Test a single natural gas feedstock with basic parameters.

test_variable_pricing()

Test feedstock with variable pricing (array of prices).

test_zero_cost_feedstock()

Test feedstock with zero costs (free resource).

h2integrate.core.test.test_feedstocks.create_basic_feedstock_config(feedstock_type='natural_gas', units='MMBtu/h', rated_capacity=100.0, price=4.2, annual_cost=0.0, start_up_cost=100000.0)#

Create a basic feedstock configuration for testing.

h2integrate.core.test.test_feedstocks.test_single_feedstock_natural_gas()#

Test a single natural gas feedstock with basic parameters.

h2integrate.core.test.test_feedstocks.test_multiple_same_type_feedstocks()#

Test multiple feedstocks of the same type with different parameters.

h2integrate.core.test.test_feedstocks.test_multiple_different_type_feedstocks()#

Test feedstocks of different types (natural gas, electricity, water).

h2integrate.core.test.test_feedstocks.test_variable_pricing()#

Test feedstock with variable pricing (array of prices).

h2integrate.core.test.test_feedstocks.test_zero_cost_feedstock()#

Test feedstock with zero costs (free resource).