Skip to main content

Welcome to pydrying module!

pydring is a Python package intended to simulate the drying process. The simulation programs in this module are based on multiphysical and dynamic modeling of the drying phenomena (heat, mass & momentum transfer, and deformation of the drying product). The resolution of drying equations is based on the numerical method of finite volumes. This module calculates the drying kinetics of any solid product. The modeling of drying kinetics is essential in most transformation processes, such as the food industry (sugar industry, biomass refinery, fodder processing, etc.)

Installation

WaterOptim runs under Python 3.6+. To install it with pip, run the following: pip install pydrying To upgrade it with pip, run the following: pip install --upgrade pydrying

Basic usage

Thermophysical properties of drying material

from numpy import ones,exp
from pydrying.dry import thin_layer, material
# diffusion coeff in the material
def Diff(T,X):
"""
Parameters
----------
T : Temperature [°C]
X : TYPE
    moisture content [dry basis]
Returns
-------
Diffusion coefficient [m2/s]
"""
    return 1e-9*ones(len(T))
# sorption isotherms
def aw(T,X):
"""
Parameters
----------
T : Temperature [°C]
X : TYPE
    moisture content [dry basis]
Returns
-------
water activity of the drying material [decimal]
"""
    return (1.0-exp(-0.6876*(T+45.5555)*X*X))
# thermal conductivity of the drying material
def Lambda(T,X):
"""
Parameters
----------
T : Temperature [°C]
X : TYPE
    moisture content [dry basis]
Returns
-------
thermal conductivity [W/m/K]
"""
    return .02

Geometric properties

material_shape = 0 # flat material, (1: cylinder, 2: sphere)
caracteristic_length = 1e-2 # m

Drying conditions

drying_time = 3600 # s
heat_transfer_coefficient = 25 # W/m2/K

Drying air properties (pressure, temperature and relative humidity) can be set from python calss air.

Definition of drying material

drying_material = material(Diff=Diff,aw=aw,Lambda=Lambda,
                           m=material_shape,
                           L=caracteristic_length,)

Solve the problem of thin layer drying

problem = thin_layer(material=drying_material,air={},
h=heat_transfer_coefficient,
tmax=drying_time)
problem.solve()

Water content plot

	import matplotlib.pyplot as plt
	plt.plot(tl.res.t, tl.res.Xmoy())
	plt.xlabel("drying time in s")
	plt.ylabel("moisture content in dry basis")

Plot of material surface temperature

	plt.plot(tl.res.t, tl.res.T[-1,:])
	plt.xlabel("drying time in s")
	plt.ylabel("material temperature in °C")

Release files for pydrying 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pydrying 1.0.4
File Interpreter ABI Platform
pydrying-1.0.4-py3-none-any.whl Python 3 none any Details

Release files / pydrying-1.0.4-py3-none-any.whl

Download URL pydrying-1.0.4-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
333a35191a20969f9fa45825c7ef45f2a22918999f58c68725269e6f462230fd
BLAKE2b-256 checksum
How to use checksums
0547f4bbd465dfe90cdebcc53b8839f5882fc3ac04e7de90526087c143bcacff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

1.0.4 This release

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page