예제 #1
0
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 26 23:02:37 2019

@author: yoelr
"""
__all__ = []

from lazypkg import LazyPkg
LazyPkg(__name__, ['process_settings', 'chemicals', 'system', 'units'])
예제 #2
0
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 26 23:02:37 2019

@author: yoelr
"""
__all__ = []

from lazypkg import LazyPkg

LazyPkg(__name__, ['process_settings', 'species', 'system', 'units'])
예제 #3
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Oct 28 17:28:09 2017

@author: Yoel Rene Cortes-Pena
"""
__all__ = [
    'Species', 'WorkingSpecies', 'Stream', 'MixedStream', 'Unit', 'System',
    'TEA', 'PowerUtility', 'HeatUtility', 'find', 'Flowsheet', 'CE'
]

from lazypkg import LazyPkg
LazyPkg(__name__, [
    '_equilibrium', '_utils', 'units', 'evaluation', 'inspect', 'compounds',
    'reaction'
])

#: Chemical engineering plant cost index (defaults to 567.5 at 2017)
CE = 567.5

# %% Import base utils

import pandas as pd
import numpy as np
from pint import UnitRegistry
import os

# Set pint Unit Registry
_ureg = UnitRegistry()
_ureg.default_format = '~P'
예제 #4
0
# -*- coding: utf-8 -*-
__all__ = []

from lazypkg import LazyPkg
LazyPkg(__name__,
        ['tea', 'chemicals', 'process_settings', 'utils', 'system', 'model'])
예제 #5
0
Based on the biorefineries in [1] and [2] for the production of ethanol and 
adipic acid from lignocellulosic biomass. Part of the script is developed in [3] 

[1] Humbird et al., Process Design and Economics for Biochemical Conversion of 
    Lignocellulosic Biomass to Ethanol: Dilute-Acid Pretreatment and Enzymatic 
    Hydrolysis of Corn Stover; Technical Report NREL/TP-5100-47764; 
    National Renewable Energy Lab (NREL), 2011.
    https://www.nrel.gov/docs/fy11osti/47764.pdf

[2] Davis et al., Process Design and Economics for the Conversion of Lignocellulosic 
    Biomass to Hydrocarbon Fuels and Coproducts: 2018 Biochemical Design Case Update; 
    NREL/TP-5100-71949; National Renewable Energy Lab (NREL), 2018. 
    https://doi.org/10.2172/1483234

[3] Cortes-Peña et al., BioSTEAM: A Fast and Flexible Platform for the Design, 
    Simulation, and Techno-Economic Analysis of Biorefineries under Uncertainty. 
    ACS Sustainable Chem. Eng. 2020, 8 (8), 3302–3310. 
    https://doi.org/10.1021/acssuschemeng.9b07040
    
@author: yalinli_cabbi
"""

__all__ = []

from lazypkg import LazyPkg
LazyPkg(__name__, [
    'chemicals', 'process_settings', 'units', 'facilities', 'system_acid',
    'system_base'
])
예제 #6
0
# -*- coding: utf-8 -*-
"""
Created on Mon Sep  2 04:58:34 2019

@author: yoelr
"""

from lazypkg import LazyPkg

LazyPkg(__name__, ['parameter', 'plot'])
예제 #7
0
_Q = _ureg.Quantity
_Q._repr_latex_ = _Q._repr_html_ = _Q.__str__ = _Q.__repr__ = lambda self: self.__format__(
    '')

# Set number of digits displayed
np.set_printoptions(suppress=False)
np.set_printoptions(precision=3)
pd.options.display.float_format = '{:.3g}'.format
pd.set_option('display.max_rows', 35)
pd.set_option('display.max_columns', 10)
pd.set_option('max_colwidth', 35)
del np, pd, os, UnitRegistry

# %% Initialize BioSTEAM

from ._species import Species, WorkingSpecies
from ._stream import Stream
from ._mixed_stream import MixedStream
from ._heat_utility import HeatUtility
from ._power_utility import PowerUtility
from ._unit import Unit
from ._system import System
from ._tea import CombinedTEA, TEA
from ._flowsheet import Flowsheet, find

LazyPkg(__name__, [
    '_equilibrium', 'utils', 'units', 'evaluation', 'inspect', 'compounds',
    'reaction', 'thermo'
],
        unsearchable=biorefineries.__all__)
예제 #8
0
# -*- coding: utf-8 -*-
"""
Created on Mon Sep  2 04:58:34 2019

@author: yoelr
"""

from lazypkg import LazyPkg

LazyPkg(__name__, ['parameter', 'plot', 'in_parallel'])
예제 #9
0
from ._shredder import Shredder
from ._magnetic_separator import MagneticSeparator
from ._screw_feeder import ScrewFeeder
from ._vibrating_screen import VibratingScreen
from ._junction import Junction
from ._solids_separator import SolidsSeparator
from ._vent_scrubber import VentScrubber

# %% All units

__all__ = ['Mixer', 'Splitter', 'InvSplitter', 'MixTank', 'StorageTank', 'HXutility', 'HXprocess', 'Pump', 'Distillation', 'Transesterification', 'Fermentation', 'Centrifuge_LLE', 'MultiEffectEvaporator', 'EnzymeTreatment', 'CrushingMill', 'RVF', 'MolecularSieve', 'SolidsCentrifuge', 'Clarifier', 'MassBalance', 'ConveyingBelt', 'Shredder', 'MagneticSeparator', 'ScrewFeeder', 'VibratingScreen', 'Junction', 'SolidsSeparator', 'VentScrubber', 'Static']
__all__.extend(_flash.__all__)
__all__.extend(_centrifuge_LLE.__all__)

from lazypkg import LazyPkg
LazyPkg(__name__, ['decorators', 'designtools', 'facilities'])


# %% Enhance Graphics

# Mixer
_mixgraphics = Mixer._graphics
_mixgraphics.edge_in = _mixgraphics.edge_in * 3
_mixgraphics.edge_out = _mixgraphics.edge_out * 3

# MixTank
_mixgraphics = MixTank._graphics
_mixgraphics.edge_in = _mixgraphics.edge_in * 3
_mixgraphics.edge_out = _mixgraphics.edge_out * 3

# Flash
예제 #10
0
from . import reaction
from . import refractivity
from . import safety
from . import solubility
from . import stream
from . import interface
from . import thermal_conductivity
from . import triple
from . import unifac
from . import utils
from . import vapor_pressure
from . import virial
from . import viscosity
from . import volume

__all__ = [
    'activity', 'chemical', 'combustion', 'critical', 'dipole', 'electrochem',
    'elements', 'environment', 'eos', 'eos_mix', 'heat_capacity',
    'identifiers', 'joback', 'law', 'lennard_jones', 'miscdata',
    'permittivity', 'phase_change', 'property_package', 'reaction',
    'refractivity', 'safety', 'solubility', 'interface',
    'thermal_conductivity', 'triple', 'utils', 'vapor_pressure', 'virial',
    'viscosity', 'volume', 'acentric', 'coolprop', 'datasheet', 'dippr',
    'unifac', 'stream', 'mixture'
]

from lazypkg import LazyPkg
LazyPkg(__name__, ())

__version__ = '0.1.39'
예제 #11
0
# Bioindustrial-Park: BioSTEAM's Premier Biorefinery Models and Results
# Copyright (C) 2020, Yalin Li <*****@*****.**>,
# Sarang Bhagwat <*****@*****.**>, and Yoel Cortes-Pena (this biorefinery)
#
# This module is under the UIUC open-source license. See
# github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt
# for license details.
"""
Created on Mon Dec 30 09:28:03 2019

Modified from the biorefineries constructed in [1] and [2] for the production of
lactic acid from lignocellulosic feedstocks

[1] Cortes-Peña et al., BioSTEAM: A Fast and Flexible Platform for the Design, 
    Simulation, and Techno-Economic Analysis of Biorefineries under Uncertainty. 
    ACS Sustainable Chem. Eng. 2020, 8 (8), 3302–3310. 
    https://doi.org/10.1021/acssuschemeng.9b07040
    
[2] Li et al., Tailored Pretreatment Processes for the Sustainable Design of
    Lignocellulosic Biorefineries across the Feedstock Landscape. Submitted.
    July, 2020.

@author: yalinli_cabbi
"""

__all__ = []

from lazypkg import LazyPkg
LazyPkg(
    __name__,
    ['chemicals', 'process_settings', 'units', 'facilities', 'system', 'tea'])
예제 #12
0
# -*- coding: utf-8 -*-
"""
Created on Wed May 29 12:11:32 2019

@author: yoelr
"""
__all__ = []

from lazypkg import LazyPkg

LazyPkg(__name__, ['system', 'species', 'process_settings', 'model'])