# Refrigerator {-}

```{rosmose refrigerator}
! OSMOSE ET refrigerator
```


```{rosmose} 
Evap_Tin = 5 [C] # Evaporator temperature inlet
Evap_Tout = 5 [C] # Evaporator temperature outlet
Cond_Tin = 35 [C] # Condenser temperature inlet
Cond_Tout = 35 [C] # Condenser temperature outlet
Evap_Qmax = 5000 [kW] # evaporator reference heat flow rate (Q_L)
exeff = 0.5 [-] # Second law efficiency
dtmin_2ph = 2 [C] # phase-change delta t minimum
n = 40.0 [yr] #lifetime 
i = 0.06 [-] #interest rate
CEPCI_2020 = 596.2 [-] # actual CEPCI
CEPCI_2008 = 575.4 [-] # CEPCI 2008
```

```{rosmose} 
COPcarnot = (%Evap_Tin% + 273) / (%Cond_Tin% - %Evap_Tin%) [-] # Carnot COP 
COP = %exeff% * %COPcarnot% [-] # Actual COP
W_refrig = %Evap_Qmax% / %COP% [kW] # Heat pump power consumption
Cond_Qmax = %Evap_Qmax% * (%COP% + 1) / %COP% [kW] # Condenser heat flow rate (Q_H)
Annuity = (%i%*(1+%i%)**%n%)/((1+%i%)**%n%-1) [-] #annualization factor
Cinv2_RF = 300*%Cond_Qmax%*(%CEPCI_2020%/%CEPCI_2008%)*%Annuity% [Euro/y] #300 Euro/kWth at the condenser
```


**Layers of the Refrigerator ET**

```{rosmose} 
: OSMOSE LAYERS refrigerator

|Layer      |Display name|shortname|Unit    |Color  |
|:----------|:-----------|:--------|:-------|:------|
|ELEC       |Electricity |elec     |kW      |yellow |
```

**Refrigerator unit of the Refrigerator ET**

```{rosmose} 
: OSMOSE UNIT refrigerator

|unit name      |type   |
|:--------------|:------|
|Refrigerator   |Utility|
```

**Parameters of the Refrigerator unit**

```{rosmose Refrigerator_params}
: OSMOSE UNIT_PARAM Refrigerator

|cost1  |cost2  |cinv1  |cinv2      |imp1   |imp2   |fmin   |fmax   |
|:------|:------|:------|:----------|:------|:------|:------|:------|
|0      |0      |0      |%Cinv2_RF% |0      |0      |0      |10     |
```

**Refrigerator Streams**

*Resource Streams*
Defining the resource streams, in this case electricity to the refrigerator

```{rosmose Refrigerator_rs}
: OSMOSE RESOURCE_STREAMS Refrigerator

|layer      |direction|value                |
|:----------|:--------|:--------------------|
|ELEC       | in      |%W_refrig%           |
```

*Heat Streams*

```{rosmose Refrigerator_hs}
: OSMOSE HEAT_STREAMS Refrigerator

|name           |Tin        |Tout       |Hin        |Hout       |DT min/2   |alpha|
|:--------------|:----------|:----------|:----------|:----------|:----------|:----|
|evaporation    |%Evap_Tin% |%Evap_Tout%|0          |%Evap_Qmax%|%dtmin_2ph%|1    |
|condensation   |%Cond_Tin% |%Cond_Tout%|%Cond_Qmax%|0          |%dtmin_2ph%|1    |
```

