Coder Social home page Coder Social logo

calebbell / ht Goto Github PK

View Code? Open in Web Editor NEW
180.0 16.0 33.0 2.85 MB

Heat transfer component of Chemical Engineering Design Library (ChEDL)

License: MIT License

Python 99.04% Jupyter Notebook 0.96%
heat-transfer heat-exchanger air-cooler tube-bank condensation boiling chemical-engineering mechanical-engineering pressure-drop radiation

ht's People

Contributors

calebbell avatar jeremy-rutman avatar pierrelesouhaitier avatar vikramgovindarajan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ht's Issues

conv_free_enclosed. for vertical plates

Hi - I believe the ht.conv_free_enclosed methods such as conv_free_enclosed.Nu_Nusselt_Rayleigh_Hollands are for horizontal plates. It's not entirely clear from the docs so that should be made clear but in any case I was wondering if there are similar methods for vertical plates?
Thanks
Jeremy

Difference in "heat capacity rate ratio" and "heat capacity ratio"

Hi,

as the title says, both the terms heat capacity rate ratio and heat capacity ratio seem to be used in the documentation. Can someone elaborate on if there is a difference or both is the ratio of (m * cp)? I feel like publications are also not always clear.

On a connected sidenote, sometimes this is specified with ...with respect to stream 1 - does this mean that stream 1 is in the denominator?

NTU Method Issues

First off, incredible work with this package! I'm extremely impressed with how thorough, detailed, and well-validated it is.

I have found two errors in the NTU Method functions:

1.) The P_NTU_method function gives a divide-by-zero error if the flow rate and heat capacity of both fluids are identical in counterflow (R1 = R2 = 1). This can be traced back to the following code in the temperature_effectiveness_basic function:

if subtype == 'counterflow': # Same as TEMA 1 pass P1 = (1.0 - exp(-NTU1*(1 - R1)))/(1.0 - R1*exp(-NTU1*(1-R1)))

  1. The effectiveness_NTU_method function returns an error if any of the temperatures are exactly equal to 0. This can cause issues if you are working in Celsius or Fahrenheit rather than Kelvin.

Fail to run example from tutorial with latest fluids module

Hi,
just tried the following example from the tutorial:

from ht import *

U = 275 # W/m^2/K
A = 10.82 # m^2
Cp_oil = 1900 # J/kg/K
Cp_steam = 1860 # J/kg/K
m_steam = 5.2 # kg/s
m_oil = 0.725 # kg/s
Thi = 130 # °C
Tci = 15 # °C
Cmin = calc_Cmin(mh=m_steam, mc=m_oil, Cph=Cp_steam, Cpc=Cp_oil)
Cmax = calc_Cmax(mh=m_steam, mc=m_oil, Cph=Cp_steam, Cpc=Cp_oil)
Cr = calc_Cr(mh=m_steam, mc=m_oil, Cph=Cp_steam, Cpc=Cp_oil)
NTU = NTU_from_UA(UA=U*A, Cmin=Cmin)
eff = effectiveness_from_NTU(NTU=NTU, Cr=Cr, subtype='crossflow, mixed Cmax')
Q = eff*Cmin*(Thi - Tci)
Tco = Tci + Q/(m_oil*Cp_oil)
Tho = Thi - Q/(m_steam*Cp_steam)

print(Tco,Tho)

I end up with an error:

Traceback (most recent call last):
  File "test_ht.py", line 1, in <module>
    from ht import *
  File "/usr/lib/python3/dist-packages/ht/__init__.py", line 25, in <module>
    from . import hx
  File "/usr/lib/python3/dist-packages/ht/hx.py", line 28, in <module>
    from fluids.numerics import horner, newton, ridder, quad, secant, quad, bisect
ImportError: cannot import name 'quad' from 'fluids.numerics' (/usr/lib/python3/dist-packages/fluids/numerics/__init__.py)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.