Code Monkey home page Code Monkey logo

ht's Introduction

Heat Transfer (ht)

Version_status Documentation Build_status license Supported_versions Zendo

ht is open-source software for engineers and technicians working in the fields of chemical or mechanical engineering. It includes modules for various heat transfer functions.

Among the tasks this library can be used for are:

  • Sizing a Shell & Tube heat exchanger using any of the Zukauskas, ESDU 73031, or Bell methods
  • Calculating pressure drop in a Hairpin heat exchanger
  • Calculating heat loss of objects, including insulated objects
  • Calculating heat loss from buried pipe
  • Performing radiative heat transfer calculations
  • Conderser and Reboiler rating
  • Detailed heat exchanger evaluation; finding fouling factors
  • Heat transfer in packed beds
  • Sizing a Plate and Frame heat exchanger
  • Modeling an Air Cooler
  • Supercritical CO2 or water heat transfer

The ht library depends on the SciPy library to provide numerical constants, interpolation, integration, and numerical solving functionality. ht runs on all operating systems which support Python, is quick to install, and is free of charge. ht is designed to be easy to use while still providing powerful functionality. If you need to perform some heat transfer calculations, give ht a try.

Get the latest version of ht from https://pypi.python.org/pypi/ht/

If you have an installation of Python with pip, simple install it with:

$ pip install ht

Alternatively, if you are using conda as your package management, you can simply install ht in your environment from conda-forge channel with:

$ conda install -c conda-forge ht

To get the git version, run:

$ git clone git://github.com/CalebBell/ht.git

ht's documentation is available on the web:

https://ht.readthedocs.io/en/latest/index.html

The latest development version of ht's sources can be obtained at

https://github.com/CalebBell/ht

To report bugs, please use the ht's Bug Tracker at:

https://github.com/CalebBell/ht/issues

ht is MIT licensed. See LICENSE.txt for information on the terms & conditions for usage of this software, and a DISCLAIMER OF ALL WARRANTIES.

Although not required by the ht license, if it is convenient for you, please cite ht if used in your work. Please also consider contributing any changes you make back, such that they may be incorporated into the main library and all of us will benefit from them.

To cite ht in publications use:

Caleb Bell and Contributors (2016-2023). ht: Heat transfer component of Chemical Engineering Design Library (ChEDL)
https://github.com/CalebBell/ht.

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

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)

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

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.