1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
|
# -*- coding: utf-8 -*-
"""Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2016, 2017, 2018, 2019, 2020, 2021 Caleb Bell
<Caleb.Andrew.Bell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""
import os
global vectorized, numba, units, numba_vectorized
from . import numerics
from . import constants
if not numerics.is_micropython:
from . import atmosphere
from . import compressible
from . import core
from . import friction
from . import filters
from . import fittings
from . import flow_meter
from . import geometry
from . import mixing
from . import open_flow
from . import packed_bed
from . import piping
from . import pump
from . import safety_valve
from . import packed_tower
from . import two_phase_voidage
from . import two_phase
from . import drag
from . import saltation
from . import separator
from . import particle_size_distribution
from . import jet_pump
from . import control_valve
from .atmosphere import *
from .compressible import *
from .control_valve import *
from .core import *
from .filters import *
from .fittings import *
from .flow_meter import *
from .friction import *
from .geometry import *
from .mixing import *
from .open_flow import *
from .particle_size_distribution import *
from .packed_bed import *
from .piping import *
from .pump import *
from .safety_valve import *
from .packed_tower import *
from .two_phase import *
from .two_phase_voidage import *
from .drag import *
from .saltation import *
from .separator import *
from .jet_pump import *
__all__ = ['atmosphere', 'compressible', 'control_valve', 'core', 'filters', 'fittings',
'friction', 'geometry', 'mixing', 'open_flow', 'packed_bed', 'piping',
'pump', 'safety_valve', 'packed_tower', 'two_phase', 'two_phase_voidage',
'drag', 'saltation', 'separator', 'flow_meter', 'particle_size_distribution',
'jet_pump']
__all__.extend(atmosphere.__all__)
__all__.extend(compressible.__all__)
__all__.extend(control_valve.__all__)
__all__.extend(core.__all__)
__all__.extend(filters.__all__)
__all__.extend(fittings.__all__)
__all__.extend(friction.__all__)
__all__.extend(geometry.__all__)
__all__.extend(mixing.__all__)
__all__.extend(open_flow.__all__)
__all__.extend(flow_meter.__all__)
__all__.extend(packed_bed.__all__)
__all__.extend(piping.__all__)
__all__.extend(pump.__all__)
__all__.extend(safety_valve.__all__)
__all__.extend(packed_tower.__all__)
__all__.extend(two_phase.__all__)
__all__.extend(two_phase_voidage.__all__)
__all__.extend(drag.__all__)
__all__.extend(saltation.__all__)
__all__.extend(separator.__all__)
__all__.extend(particle_size_distribution.__all__)
__all__.extend(jet_pump.__all__)
submodules = [atmosphere, compressible, core, friction, filters, fittings,
flow_meter, geometry, mixing, open_flow, packed_bed, piping, pump,
safety_valve, packed_tower, two_phase_voidage, two_phase, drag,
saltation, separator, particle_size_distribution, jet_pump,
control_valve]
if numerics.PY37:
def __getattr__(name):
global vectorized, numba, units, numba_vectorized
if name == 'vectorized':
import fluids.vectorized as vectorized
return vectorized
if name == 'numba':
import fluids.numba as numba
return numba
if name == 'units':
import fluids.units as units
return units
if name == 'numba_vectorized':
import fluids.numba_vectorized as numba_vectorized
return numba_vectorized
raise AttributeError("module %s has no attribute %s" %(__name__, name))
else:
from . import vectorized
def all_submodules():
import fluids.optional
import fluids.optional.irradiance
import fluids.optional.spa
import fluids.nrlmsise00.nrlmsise_00_data
import fluids.nrlmsise00.nrlmsise_00
import fluids.nrlmsise00.nrlmsise_00_header
return submodules + [fluids.optional, fluids.optional.irradiance, fluids.optional.spa,
fluids.nrlmsise00.nrlmsise_00_data, fluids.nrlmsise00.nrlmsise_00, fluids.nrlmsise00.nrlmsise_00_header]
def load_types():
from fluids.typing_utils import type_module
for m in submodules:
type_module(m)
__version__ = '1.0.22'
try:
fluids_dir = os.path.dirname(__file__)
fluids_data_dir = os.path.join(fluids_dir, 'data')
except:
pass
|