|
| 1 | +! |
| 2 | +! Module for reservoir characteristic and parameters |
| 3 | +! |
| 4 | +module Block_Reservoir |
| 5 | + ! |
| 6 | + ! Logical |
| 7 | + ! |
| 8 | + logical :: reservoir ! whether there is reservoir in the system |
| 9 | + logical, dimension(:), allocatable :: res_pres ! whether reservoir exists at specific grid cell |
| 10 | + logical, dimension(:), allocatable :: res_start ! |
| 11 | + logical, dimension(:), allocatable :: initial_storage ! |
| 12 | + logical, dimension(:), allocatable :: res_trib_calc ! |
| 13 | + logical, dimension(:), allocatable :: res_stratif_start ! |
| 14 | + logical, dimension(:), allocatable :: res_turnover ! |
| 15 | + ! |
| 16 | + ! |
| 17 | + real, parameter :: depth_e_frac=0.4, depth_h_frac=0.6 |
| 18 | + real, parameter :: ftsec_to_msec = 0.0283168, gravity = 9.8 |
| 19 | + real, parameter :: density = 1000, heat_c = 4180 |
| 20 | + real, parameter :: heat_c_kcal = 1 |
| 21 | + real :: flow_in_epi_x, flow_in_hyp_x |
| 22 | + real :: flow_out_epi_x,flow_out_hyp_x |
| 23 | + real :: flow_epi_hyp_x, outflow_x |
| 24 | + real :: res_vol_delta_x, vol_change_hyp_x, vol_change_epi_x |
| 25 | + real :: res_storage_pre, res_storage_post |
| 26 | + real, dimension(:), allocatable :: K_z |
| 27 | + real, dimension(:), allocatable :: depth_e, depth_h |
| 28 | + real, dimension(:), allocatable :: density_epil, density_hypo |
| 29 | + real, dimension(:), allocatable :: density_in |
| 30 | + real, dimension(:), allocatable :: volume_e_x |
| 31 | + real, dimension(:), allocatable :: volume_h_x |
| 32 | + real, dimension(:), allocatable :: dV_dt_epi |
| 33 | + real, dimension(:), allocatable :: dV_dt_hyp |
| 34 | + real, dimension(:), allocatable :: dam_grid_lat |
| 35 | + real, dimension(:), allocatable :: dam_grid_lon |
| 36 | + real, dimension(:), allocatable :: res_depth_meter |
| 37 | + real, dimension(:), allocatable :: res_width_meter |
| 38 | + real, dimension(:), allocatable :: res_area_km2 |
| 39 | + real, dimension(:), allocatable :: surface_area |
| 40 | + real, dimension(:), allocatable :: Q_res_inflow |
| 41 | + real, dimension(:), allocatable :: Q_res_outflow |
| 42 | + real, dimension(:), allocatable :: T_res_inflow |
| 43 | + real, dimension(:), allocatable :: T_res_in |
| 44 | + real, dimension(:), allocatable :: Q_res_in |
| 45 | + real, dimension(:), allocatable :: water_withdrawal |
| 46 | + real, dimension(:), allocatable :: temp_change_ep, temp_change_hyp |
| 47 | + real, dimension(:), allocatable :: T_epil |
| 48 | + real, dimension(:), allocatable :: T_hypo |
| 49 | + real, dimension(:), allocatable :: temp_out |
| 50 | + real, dimension(:), allocatable :: T_res |
| 51 | + real, dimension(:), allocatable :: diffusion_tot |
| 52 | + real, dimension(:), allocatable :: advec_hyp_tot |
| 53 | + real, dimension(:), allocatable :: advec_epi_tot |
| 54 | + real, dimension(:), allocatable :: qsurf_tot |
| 55 | + real, dimension(:), allocatable :: res_capacity_mcm |
| 56 | + real, dimension(:), allocatable :: volume_h_min |
| 57 | + real, dimension(:,:), allocatable :: res_storage |
| 58 | + ! |
| 59 | + ! |
| 60 | + integer :: nres |
| 61 | + integer, parameter :: km_to_m = 1000 |
| 62 | + integer, dimension(:), allocatable :: res_num |
| 63 | + integer, dimension(:), allocatable :: dam_number |
| 64 | + integer, dimension(:), allocatable :: res_start_node |
| 65 | + integer, dimension(:), allocatable :: res_end_node |
| 66 | + integer, dimension(:), allocatable :: ns_res_start |
| 67 | + integer, dimension(:), allocatable :: ns_res_end |
| 68 | + |
| 69 | + |
| 70 | +end module Block_Reservoir |
0 commit comments