TNO Intern

Commit e88a3033 authored by Hen Brett's avatar Hen Brett 🐔
Browse files

updating documentation on how to run the jupyter notebook examples

parent 72588c66
Loading
Loading
Loading
Loading
+62 −0
Original line number Diff line number Diff line
%% Cell type:code id:initial_id tags:

``` python
from pythermogis import calculate_doublet_performance
import xarray as xr
```

%% Cell type:code id:23cd5a9471611a5c tags:

``` python
input_data = xr.Dataset({
    "thickness": 300,
    "ntg": 0.5,
    "porosity": 0.2,
    "depth": 2000,
    "permeability": 300,
})
```

%% Cell type:code id:3c92c4f9d5890229 tags:

``` python
results = calculate_doublet_performance(input_data)
```

%% Cell type:code id:4f81387037e4ce1e tags:

``` python
print(results.data_vars.keys())
```

%% Output

    KeysView(Data variables:
        thickness                int64 8B 300
        ntg                      float64 8B 0.5
        porosity                 float64 8B 0.2
        depth                    int64 8B 2000
        permeability             int64 8B 300
        mask                     float64 8B nan
        temperature              float64 8B 76.65
        transmissivity           int64 8B 90000
        transmissivity_with_ntg  float64 8B 45.0
        power                    float64 8B 19.75
        heat_pump_power          float64 8B 0.0
        capex                    float64 8B 19.65
        opex                     float64 8B -3.127
        utc                      float64 8B 4.872
        npv                      float64 8B 1.536
        hprod                    float64 8B 2.5e+06
        cop                      float64 8B 18.01
        cophp                    float64 8B 0.0
        pres                     float64 8B 60.0
        flow_rate                float64 8B 394.9
        welld                    float64 8B 1.193e+03
        inj_temp                 float64 8B 30.0
        prd_temp                 float64 8B 75.84)

%% Cell type:code id:e5e069faebb99ebd tags:

``` python
```
+251 −0

File added.

Preview size limit exceeded, changes collapsed.