README.md

dev version: 0.0.0.9000

bpip

This R package provides a data frame interface for EPA's air dispersion downwash model BPIP.

Install

install.packages("remotes")

remotes::install_github("dKvale/bpip")

Use

Create a 10x10x10 building that is rotated 45 degrees and located 20 meters West of the air emissions source.

Create new bpip table

library(bpip)

builds <- new_bpip()

builds

Adjust building parameters

builds$bld_rotation      <- 45
builds$length_x          <- 10
builds$angle_from_source <- 270 

builds

Plot building

plot_bpip(builds)

Install BPIP to EPA folder in working directory

library(installEPA)
install_epa("bpip", dir = "EPA")

Create bpip input file

write_bpip(builds, "rotated_building.bpi")

Run bpip

run_bpip("rotated_building.bpi", "rotated_results", exe_folder = "EPA/")

Read results

results <- read_bpip_out(file = "rotated_results.out", as_text = FALSE)

results


dKvale/bpip documentation built on Aug. 30, 2022, 2:05 a.m.