Python tools for polymer compounding cost and properties estimation.
Project description
🧪 polymercost
Python tools for polymer compounding: Calculate Cost, Specific Gravity (SPG), and estimate key material properties like Durometer, Modulus, and Tensile strength for compounded formulas.
💾 Installation
You can install polymercost using pip:
pip install polymercost
🚀 Usage
Here's a quick example of how to use the core functions:
Python
from polymercost import spg_costs, flex_clear_dop
Define the compound formula: a list of tuples (Parts per Hundred Resin (phr), Specific Gravity (spg), Cost per pound ($))
Python
formula = [(100, 1.4, 0.475), (20, 2.71, 0.0625)]
Calculate SPG, Cost by Weight, and Cost by Volume
spg, cost_wt, cost_vol = spg_costs(formula)
print(f"Calculated Specific Gravity (SG): {spg:.3f}")
print(f"Cost per Weight ($/lb): {cost_wt:.4f}")
print(f"Cost per Volume ($/in³): {cost_vol:.4f}")
Example: Estimate properties for a clear flexible PVC compound with 50 phr DOP plasticizer
duro, mod, tens, elong, clash, brittle = flex_clear_dop(50)
print(f"\nEstimated Properties (50 phr DOP):")
print(f" Durometer (Shore A): {duro}")
print(f" 100% Modulus (psi): {mod}")
print(f" Tensile Strength (psi): {tens}")
✨ Features
spg_costs: The core function for calculating Specific Gravity, Cost/Weight, and Cost/Volume based on a compounded formula.
Property Estimators: Functions (like flex_clear_dop) to estimate properties for common polymer systems (e.g., Durometer, Tensile Strength, Elongation). These are for example only as some are made on very sparse datasets. Ideally you would derive your own formulas here from your own lab data. These are included and based off limited data.
📝 License
polymercost is released under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polymercost-0.1.1.tar.gz.
File metadata
- Download URL: polymercost-0.1.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef4adff5ba66d3e6b86bf823cd40711a770c5d59f88f0a3d4f1cbff1161a8c77
|
|
| MD5 |
8a9595ce19aee230fde4d116667a1082
|
|
| BLAKE2b-256 |
3c81fc2f8af9a74da4a4bea30e17879e94ab638a737c77d3ea3efe034afbb425
|
File details
Details for the file polymercost-0.1.1-py3-none-any.whl.
File metadata
- Download URL: polymercost-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91dbeb48036bcc42fff41f21f4aa9167e9475315303b8a9abc854eae5422b9a6
|
|
| MD5 |
47279fab0aad442968346780ce4a0ac9
|
|
| BLAKE2b-256 |
dc9c973ee14099ea3f78f95526ac3b4803504ddbddbe4bb37e7699987867ef0c
|