--------------------------------------------------------------------------------
SafeWater MCBC User Guide and Description of Source Code
The first section of this memo describes how to install and use SafeWater MCBC run different regulatory options for the proposed rule. The second section of this memo describes the source code used for SafeWater MCBC, which is available in the PFAS NPDWR Rulemaking docket (EPA-HQ-OW-XXXX-XXXX).
Installing and Using SafeWater MCBC
The SafeWater MCBC executable program and most of the associated data has been provided as a zip file titled SafeWaterMCBC_Executables&DataFiles (available on PFAS NPDWR Rulemaking docket EPA-HQ-OW-XXXX-XXXX). The zip file contains the SafeWater MCBC executable (SafeWaterRun.exe), the configuration settings (config.ini), and a folder containing the following required data files:
 Cohort Data: includes the health and population characteristics
 Cost workbook: contains the cost equations and data (*including 2 past versions right now  -  13 and 14)
 WBSCostCurves: contains the WBS cost curves for the different treatment techniques
 PFAS_occurrence: the .bin and .csv files for the occurrence data
 SDWIS_Amended_Inventory_2022-07-07: SDWIS inventory .csv file used for SafeWater MCBC (see the PFAS NPDWR Rulemaking Economic Analysis for additional information)
 SDWISUCMR3: Text file for ??
 TechForecast: .csv file for ??
The steps to install and use SafeWater MCBC are as follows:
 Extract the files from the zip file titled SafeWaterMCBC_Executables&DataFiles and save in a folder named "SafeWaterMCBC."
 Open the executable SafeWaterRun.exe, which will pull up the SafeWAter MCBC interface that allows the user to tailor the SafeWater run. 
 Develop the parameters for the SafeWater Run:
 Ensure that the data file inputs are appropriately mapped. 
 Select a cost and benefit option
 Select a discount rate or no discounting. The default discount rate is 3%.
 Ensure that Cohort Follow is selected, which ??
 Ensure that the Uncertainty option is selected, which
 Ensure that the PBPK Time Step is 1 and the Start, End, and Change Years are: 2023, 2056, and 2026, respectively.
 Ensure that the Tech Forecast file is appropriately mapped.
 Choose any Output Options, if desired.
 Click "Run Model" to begin the SafeWater MCBC run.
  be saved in the "X" folder within the "SafeWaterMCBC" parent folder.
 Multiple runs can occur at once. To do so, minimize the existing SafeWater MCBC window and repeat the above steps.

SafeWater MCBC Source Code
In addition to the SafeWater MCBC executables and this user guide, the EPA is providing the files for the code used for SafeWater MCBC in the zip file titled SafeWaterMCBC_sourcecode, which is available in the PFAS NPDWR Rulemaking docket (EPA-HQ-OW-XXXX-XXXX).
:: DevExpress VCL
:: TMS FlexCel
:: MtxVec 2017
:: MtxStatsMaster 2017
:: Mathparser
:: HtmlViewer-HtmlViewer-11.7
:: CodeSite_5_Express_RX101
Links to the third party vendors are provided at the end of this memo.
The file structure for the zip drive SafeWaterLCR_sourcecode is as follows:
 The code used for the SafeWater LCR program is contained in the folders "Code," "codeLCR," and "uiLCR."
 The code used for the SafeWater LCR sample creation is contained in the folders "LCRSample," "Code," and "codeLCR."
Third Party Links
DevExpress VCL: https://www.devexpress.com
TMS FlexCel: http://www.tmssoftware.com/site/
MtxVec 2017: http://www.dewresearch.com/delphi
MtxStatsMaster 2017: http://www.dewresearch.com/delphi
Mathparser: https://sourceforge.net/projects/parse-components/
HtmlViewer-HtmlViewer-11.7: https://github.com/BerndGabriel/HtmlViewer
CodeSite_5_Express_RX101: https://www.embarcadero.com/products/delphi

