{"id":35271806,"url":"https://github.com/bruscalia/styrene","last_synced_at":"2026-04-02T02:11:48.248Z","repository":{"id":171824354,"uuid":"561631279","full_name":"bruscalia/styrene","owner":"bruscalia","description":"A Python package for styrene reactor simulation","archived":false,"fork":false,"pushed_at":"2023-04-01T15:31:07.000Z","size":95925,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-17T23:16:26.323Z","etag":null,"topics":["chemical-engineering","kinetics","reaction-engineering","simulation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bruscalia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-11-04T05:48:20.000Z","updated_at":"2024-01-01T17:54:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6e0a9c4-d3d0-4d92-b146-be7196a3667a","html_url":"https://github.com/bruscalia/styrene","commit_stats":{"total_commits":34,"total_committers":4,"mean_commits":8.5,"dds":"0.11764705882352944","last_synced_commit":"39f10169e6a692e70a9edb4f506dd79c177a2fd7"},"previous_names":["bruscalia/styrene"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bruscalia/styrene","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruscalia%2Fstyrene","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruscalia%2Fstyrene/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruscalia%2Fstyrene/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruscalia%2Fstyrene/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bruscalia","download_url":"https://codeload.github.com/bruscalia/styrene/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruscalia%2Fstyrene/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294418,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chemical-engineering","kinetics","reaction-engineering","simulation"],"created_at":"2025-12-30T12:25:45.348Z","updated_at":"2026-04-02T02:11:48.239Z","avatar_url":"https://github.com/bruscalia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# styrene\nA Python framework for simulating industrial adiabatic styrene reactors using the kinetic model proposed by Lee \u0026 Froment (2008) and program structure by Leite et al (2021) also featured in Leite et al (2023).\n\n## Contents\n[Install](#install) / [Usage](#usage) / [Citation](#citation) / [References](#references) / [Contact](#contact)\n\n## Install\nFirst, make sure you have a Python 3 environment installed.\n\nTo install from github:\n```\npip install -e git+https://github.com/bruscalia/styrene#egg=styrene\n```\nNote: It might be useful to write \"git+https://github.com/bruscalia/styrene#egg=styrene\" if installing directly from a Python interpreter as # can be interpreted as a comment.\n\n## Usage\n\n```python\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom styrene.reactor import MultiBed\n```\n\n```python\ntest_reac = MultiBed()\ntest_reac.add_radial_bed(72950)\ntest_reac.set_inlet(T=886, P=1.25)\ntest_reac.add_radial_bed(82020)\ntest_reac.add_radial_bed(78330)\ntest_reac.add_resets(2, T=898.2)\ntest_reac.add_resets(3, T=897.6)\n```\n\n```python\ntest_reac.solve()\nprofiles = test_reac.get_dataframe()\n```\n\n```python\nfig, ax = plt.subplots(figsize=[7, 4], dpi=100, sharex=True)\n\nax.plot(profiles.index * 1e-3, profiles[\"Fst\"], color=\"darkgreen\", label=\"Styrene\")\nax.plot(profiles.index * 1e-3, profiles[\"Feb\"], color=\"black\", label=\"Ethylbenzene\")\n\nax.set_ylabel(\"$F$ [kmol/h]\")\nax.set_xlabel(\"$W$ [kg x 10³]\")\n\nax.legend()\n\nfig.tight_layout()\nplt.show()\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"data\\composition_profiles_example.png\" alt=\"profiles\"/\u003e\n\u003c/p\u003e\n\n## References\n[Lee, W. J. \u0026 Froment, G. F., 2008. Ethylbenzene Dehydrogenation into Styrene: Kinetic Modeling and Reactor Simulation. Industrial \u0026 Engineering Chemistry Research, February, 47(23), pp. 9183-9194. doi:10.1021/ie071098u](https://doi.org/10.1021/ie071098u)\n\n[Leite, B., Costa, A. O. S. \u0026 Costa Junior, E. F., 2021. Simulation and optimization of axial-flow and radial-flow reactors for dehydrogenation of ethylbenzene into styrene based on a heterogeneous kinetic model. Chem. Eng. Sci., Volume 244, Article 116805. doi:10.1016/j.ces.2021.116805.](https://doi.org/10.1016/j.ces.2021.116805)\n\n[Leite, B., Costa, A. O. S., Costa, E. F., 2023. Multi-objective optimization of adiabatic styrene reactors using Generalized Differential Evolution 3 (GDE3). Chem. Eng. Sci., Volume 265, Article 118196. doi:10.1016/j.ces.2022.118196.](https://doi.org/10.1016/j.ces.2022.118196)\n\n## Contact\ne-mail: bruscalia12@gmail.com\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbruscalia%2Fstyrene","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbruscalia%2Fstyrene","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbruscalia%2Fstyrene/lists"}