Skip to main content

🧪 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.

Release files for polymercost 0.1.1

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

Source distribution (sdist)

Source distribution for polymercost 0.1.1
File Size Uploaded
polymercost-0.1.1.tar.gz 9.5 kB Details

Built distribution (wheel)

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

Total release size: 18.5 kB

Release files / polymercost-0.1.1.tar.gz

Download URL polymercost-0.1.1.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ef4adff5ba66d3e6b86bf823cd40711a770c5d59f88f0a3d4f1cbff1161a8c77
BLAKE2b-256 checksum
How to use checksums
3c81fc2f8af9a74da4a4bea30e17879e94ab638a737c77d3ea3efe034afbb425
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release files / polymercost-0.1.1-py3-none-any.whl

Download URL polymercost-0.1.1-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91dbeb48036bcc42fff41f21f4aa9167e9475315303b8a9abc854eae5422b9a6
BLAKE2b-256 checksum
How to use checksums
dc9c973ee14099ea3f78f95526ac3b4803504ddbddbe4bb37e7699987867ef0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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