simulate_ams_iiih_dataset.RdGenerates synthetic wastewater monitoring datasets consistent with the AMS-III.H helper functions.
simulate_ams_iiih_dataset(n_sites = 3, n_periods = 4, seed = NULL)List containing tibbles baseline, project, leakage, and applicability.
simulate_ams_iiih_dataset(n_sites = 2, n_periods = 3, seed = 2025)
#> $baseline
#> # A tibble: 6 × 8
#> site_id period influent_flow_m3_per_day cod_mg_l biodegradable_fraction
#> <chr> <int> <dbl> <dbl> <dbl>
#> 1 WW1 1 5064. 4297. 0.781
#> 2 WW1 2 4165. 2756. 0.655
#> 3 WW1 3 4300. 3789. 0.744
#> 4 WW2 1 4245. 3639. 0.821
#> 5 WW2 2 5231. 3371. 0.723
#> 6 WW2 3 4265. 4405. 0.723
#> # ℹ 3 more variables: baseline_capture_efficiency_fraction <dbl>,
#> # baseline_oxidation_fraction <dbl>, days_in_period <dbl>
#>
#> $project
#> # A tibble: 6 × 14
#> site_id period influent_flow_m3_per_day cod_mg_l biodegradable_fraction
#> <chr> <int> <dbl> <dbl> <dbl>
#> 1 WW1 1 5064. 4297. 0.781
#> 2 WW1 2 4165. 2756. 0.655
#> 3 WW1 3 4300. 3789. 0.744
#> 4 WW2 1 4245. 3639. 0.821
#> 5 WW2 2 5231. 3371. 0.723
#> 6 WW2 3 4265. 4405. 0.723
#> # ℹ 9 more variables: project_capture_efficiency_fraction <dbl>,
#> # destruction_efficiency_fraction <dbl>, project_oxidation_fraction <dbl>,
#> # fugitive_leakage_fraction <dbl>, days_in_period <dbl>,
#> # electricity_consumption_mwh <dbl>, electricity_ef_tco2_per_mwh <dbl>,
#> # thermal_energy_consumption_gj <dbl>, thermal_energy_ef_tco2_per_gj <dbl>
#>
#> $leakage
#> # A tibble: 6 × 10
#> site_id period sludge_tonnes transport_distance_km transport_ef_tco2_per_tkm
#> <chr> <int> <dbl> <dbl> <dbl>
#> 1 WW1 1 276. 40.5 0.000120
#> 2 WW1 2 298. 43.1 0.000120
#> 3 WW1 3 301. 21.5 0.000115
#> 4 WW2 1 254. 41.7 0.0000935
#> 5 WW2 2 218. 29.3 0.000112
#> 6 WW2 3 345. 33.2 0.000128
#> # ℹ 5 more variables: sludge_treatment_ef_tco2_per_tonne <dbl>,
#> # chemical_usage_tonnes <dbl>, chemical_ef_tco2_per_tonne <dbl>,
#> # displaced_fossil_fuel_gj <dbl>, displaced_fossil_fuel_ef_tco2_per_gj <dbl>
#>
#> $applicability
#> # A tibble: 2 × 14
#> site_id wastewater_type cod_mg_l anaerobic_fraction baseline_system
#> <chr> <chr> <dbl> <dbl> <chr>
#> 1 WW1 agro-industrial 3781. 0.504 open anaerobic lagoon
#> 2 WW2 industrial 4688. 0.586 covered anaerobic lagoon
#> # ℹ 9 more variables: gas_capture_installed <lgl>,
#> # destruction_technology <chr>, operating_hours_per_week <dbl>,
#> # redundancy_installed <lgl>, utilisation_documented <lgl>,
#> # flow_measurements_per_week <int>, methane_measurements_per_week <int>,
#> # cod_samples_per_month <int>, calibration_events_per_year <int>
#>