pydrying


Namepydrying JSON
Version 1.0.4 PyPI version JSON
download
home_pagehttps://pydrying.readthedocs.io/en/latest/
SummaryDrying simulation of solid products
upload_time2022-12-08 04:15:21
maintainer
docs_urlNone
authorHedi ROMDHANA
requires_python>=3.4
licenseGPLv3
keywords drying simulation solid finte volume
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://pip.pypa.io/en/stable/), run the following:
`pip install pydrying`
To upgrade it with [pip](https://pip.pypa.io/en/stable/), 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")

            

Raw data

            {
    "_id": null,
    "home_page": "https://pydrying.readthedocs.io/en/latest/",
    "name": "pydrying",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.4",
    "maintainer_email": "",
    "keywords": "drying simulation solid finte volume",
    "author": "Hedi ROMDHANA",
    "author_email": "hedi.romdhana@agroparistech.fr",
    "download_url": "",
    "platform": null,
    "description": "# Welcome to `pydrying` module!\n\n`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.)\n\n## Installation\nWaterOptim runs under Python 3.6+. To install it with [pip](https://pip.pypa.io/en/stable/), run the following:\n`pip install pydrying`\nTo upgrade it with [pip](https://pip.pypa.io/en/stable/), run the following:\n`pip install --upgrade pydrying`\n## Basic usage\n### Thermophysical properties of drying material\n\n    from numpy import ones,exp\n\tfrom pydrying.dry import thin_layer, material\n    # diffusion coeff in the material\n\tdef Diff(T,X):\n    \"\"\"\n    Parameters\n    ----------\n    T : Temperature [\u00b0C]\n    X : TYPE\n        moisture content [dry basis]\n    Returns\n    -------\n    Diffusion coefficient [m2/s]\n    \"\"\"\n\t    return 1e-9*ones(len(T))\n\t# sorption isotherms\n\tdef aw(T,X):\n    \"\"\"\n    Parameters\n    ----------\n    T : Temperature [\u00b0C]\n    X : TYPE\n        moisture content [dry basis]\n    Returns\n    -------\n    water activity of the drying material [decimal]\n    \"\"\"\n\t    return (1.0-exp(-0.6876*(T+45.5555)*X*X))\n\t# thermal conductivity of the drying material\n\tdef Lambda(T,X):\n    \"\"\"\n    Parameters\n    ----------\n    T : Temperature [\u00b0C]\n    X : TYPE\n        moisture content [dry basis]\n    Returns\n    -------\n    thermal conductivity [W/m/K]\n    \"\"\"\n\t    return .02\n### Geometric properties\n\n\tmaterial_shape = 0 # flat material, (1: cylinder, 2: sphere)\n\tcaracteristic_length = 1e-2 # m\n\n### Drying conditions\n\n\tdrying_time = 3600 # s\n\theat_transfer_coefficient = 25 # W/m2/K\n\nDrying air properties (pressure, temperature and relative humidity) can be set from python calss `air`.\n\n### Definition of drying material\n\n\tdrying_material = material(Diff=Diff,aw=aw,Lambda=Lambda,\n\t                           m=material_shape,\n\t                           L=caracteristic_length,)\n\n### Solve the problem of thin layer drying\n\n\tproblem = thin_layer(material=drying_material,air={},\n    h=heat_transfer_coefficient,\n    tmax=drying_time)\n\tproblem.solve()\n\n### Water content plot\n\n\t\timport matplotlib.pyplot as plt\n\t\tplt.plot(tl.res.t, tl.res.Xmoy())\n\t\tplt.xlabel(\"drying time in s\")\n\t\tplt.ylabel(\"moisture content in dry basis\")\n\n### Plot of material surface temperature\n\n\t\tplt.plot(tl.res.t, tl.res.T[-1,:])\n\t\tplt.xlabel(\"drying time in s\")\n\t\tplt.ylabel(\"material temperature in \u00b0C\")\n",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "Drying simulation of solid products",
    "version": "1.0.4",
    "split_keywords": [
        "drying",
        "simulation",
        "solid",
        "finte",
        "volume"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "7f978776b611ddd362c71c79c8f344c7",
                "sha256": "333a35191a20969f9fa45825c7ef45f2a22918999f58c68725269e6f462230fd"
            },
            "downloads": -1,
            "filename": "pydrying-1.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7f978776b611ddd362c71c79c8f344c7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.4",
            "size": 9378,
            "upload_time": "2022-12-08T04:15:21",
            "upload_time_iso_8601": "2022-12-08T04:15:21.560811Z",
            "url": "https://files.pythonhosted.org/packages/05/47/f4bbd465dfe90cdebcc53b8839f5882fc3ac04e7de90526087c143bcacff/pydrying-1.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-08 04:15:21",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "pydrying"
}
        
Elapsed time: 0.04952s