# Market {-}

```{rosmose market}
! OSMOSE ET market
```


```{rosmose}
water_cost = 0.0025 [Euro/kg] # Water price in Switzerland is 2-2.5 CHF/m3 (wfw.ch and Swiss gas and water industry association)
CW_ref_LOAD = 1000 [kg/h] # Reference capacity of water supply
elec_cost = 0.25 [Euro/kWh] # price of electricity for businesses in Switzerland 2023 (Oiken)
ELEC_ref_POWER = 1000 [kW] # Reference capacity of electricity supply
natgas_cost = 0.119 [Euro/kWh] # price of natural gas for businesses in Switzerland (globalpetrolprices.com)
NATGAS_ref_LOAD = 1000 [kW] #Reference capacity of natural gas supply

```



```{rosmose} 
CW_COST = %water_cost% * %CW_ref_LOAD% [Euro/h] # Reference cost of water supply
ELEC_SELL_COST = %elec_cost% * %ELEC_ref_POWER% [Euro/h] # Reference cost of electricity supply 
NATGAS_COST = %natgas_cost% * %NATGAS_ref_LOAD% [Euro/h] # Reference cost of natural gas supply 
```

**Layers of the Market ET**

```{rosmose} 
: OSMOSE LAYERS market

|Layer      |Display name   |shortname  |Unit       |Color  |
|:----------|:--------------|:----------|:----------|:------|
|NATGAS     |Gas            |ng         |kW         |green  |
|ELEC       |Electricity    |elec       |kW         |yellow |
|WATER      |Water          |water      |kg/h       |blue   |

```

**Units of the Market ET**

```{rosmose} 
: OSMOSE UNIT market

|unit name     |type   |
|:-------------|:------|
|ElecSell      |Utility|
|NatgasSell    |Utility|
|WaterSell     |Utility|

```

## Electricity Selling Unit {-}

Electricity sold by the grid to the process

**Parameters of the Electricity Selling unit**

```{rosmose ElecSell_params}
: OSMOSE UNIT_PARAM ElecSell

|cost1  |cost2              |cinv1  |cinv2  |imp1   |imp2   |fmin   |fmax   |
|:------|:------------------|:------|:------|:------|:------|:------|:------|
|0      |%ELEC_SELL_COST%   |0      |0      |0      |0      |0      |100000 |
```

**Electricity Selling Streams**

*Resource Streams*

Electricity sold from the market to the process and the indirect CO~2~ emissions from the electricity generated by the grid. 

```{rosmose ElecSell_rs}
: OSMOSE RESOURCE_STREAMS ElecSell

|layer      |direction|value                |
|:----------|:--------|:--------------------|
|ELEC       | out     |%ELEC_ref_POWER%     |
```



## Natural Gas Selling Unit {-}

**Parameters of the Natural Gas Selling unit**

```{rosmose NatgasSell_params}
: OSMOSE UNIT_PARAM NatgasSell

|cost1  |cost2          |cinv1  |cinv2  |imp1   |imp2   |fmin   |fmax   |
|:------|:--------------|:------|:------|:------|:------|:------|:------|
|0      |%NATGAS_COST%  |0      |0      |0      |0      |0      |1000   |
```

**Natural Gas Selling Streams**

*Resource Streams*

Natural gas sold from the market to the process. In addition to total CO~2~ emissions (direct and indirect) from the use of natural gas 

```{rosmose NatgasSell_rs}
: OSMOSE RESOURCE_STREAMS NatgasSell

|layer      |direction|value                |
|:----------|:--------|:--------------------|
|NATGAS     |out      |%NATGAS_ref_LOAD%    |
```



## Water Selling Unit {-}
Water from the market to the process

**Parameters of the Water Selling unit**

```{rosmose WaterSell_params}
: OSMOSE UNIT_PARAM WaterSell

|cost1  |cost2      |cinv1  |cinv2  |imp1   |imp2   |fmin   |fmax   |
|:------|:----------|:------|:------|:------|:------|:------|:------|
|0      |%CW_COST%  |0      |0      |0      |0      |0      |10000  |
```

**Water Selling Streams**

*Resource Streams*

Water sold from the market to the process

```{rosmose WaterSell_rs}
: OSMOSE RESOURCE_STREAMS WaterSell

|layer|direction|value          |
|:----|:--------|:--------------|
|WATER|out      |%CW_ref_LOAD%  |
```

