Skip to content

Repository files navigation

Input data for swolfpy's life-cycle process models (swolfpy_inputdata)

Supported Python VersionsLicenseDownloadsFormathttps://img.shields.io/badge/linting-pylint-yellowgreenDocumentation StatusTestDOIJIE DOI

Features

  • Input data for Life-cycle process models of swolfpy
    • Common data (e.g., molecular weights, heating values)
    • Material properties (46 common waste fractions; e.g., Food waste, Yard waste)
      • Chemical properties (e.g., carbon content, methane yield)
      • Physical properties (e.g., moisture content, density)
    • Material dependent process model inputs (e.g., separation efficiency for each waste fraction in the trommel)
    • Material indepent process model inputs
  • Built-in Monte Carlo simulation
Description of columns in the csv file for input data
FieldDescription
CategoryCategory of the input (e.g., energy recovery, post closure)
Dictonary_NameName of the dictionary and attribute (whitespace is not allowed)
Parameter NameShort name of the parameter (whitespace is not allowed)
Parameter DescriptionLonger description of the parameter
AmountDefault value for the parameter
UnitUnit of the parameter (e.g., MJ/Mg, kW, hours/day)
Uncertainty_type0: Undefined, 2: Lognormal, 3: normal, 4: Uniform, 5: Triangular, 7: Discrete Uniform
LocMean for lognormal and normal distribution
scaleStandard deviation for lognormal and normal distribution
shapeShape parameter for Weibull, Gamma or Beta distributions
MinimumLower bound/minimum for lognormal, normal, uniform, triangular, and discrete uniform distributions
maximumUpper bound/maximum for lognormal, normal, uniform, triangular, and discrete uniform distributions
Reference
Comment

Installation

1- Download and install miniconda from: https://docs.conda.io/en/latest/miniconda.html

2- Update conda in a terminal window or anaconda prompt:

conda update conda

3- Create a new environment for swolfpy:

conda create --name swolfpy python=3.9

4- Activate the environment:

conda activate swolfpy

5- Install swolfpy_inputdata in the environment:

pip install swolfpy_inputdata

6- Use in python (e.g., Landfill model):

import swolfpy_inputdata as spid
data = spid.LF_Input()
model.calc()
#Example: Returs the actk parameter in landfill
data.LF_gas['actk']
#Example: Returns input data in dataframe format
data.Data

About

The swolfpy-inputdata module is responsible for storing, updating, and generating new uncertain input data for the process models in swolfpy-processmodels.

Topics

Resources

Contributing

Stars

8 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages