Skip to main content

A package that solves the closure problem for the dual-continuum model published by Paten et al.

Project description

solveclosure

Solves the closure problem for the dual-continuum model published by Paten et. al. See the following two articles for more information:

https://doi.org/10.1149/1945-7111/ae335f https://doi.org/10.1149/1945-7111/ae3527

🚀 Installing solveclosure

solveclosure is available on GNU/Linux. It is recommended to install solveclosure into a virtual environement.

Using pip

pip install solveclosure

💻 Using solveclosure

The simplest form of script to run solveclosure:

import solveclosure

img_path = "electrode_image.tif" # the path to your electrode image, electrolyte labelled as 0, active material 1, and CBD 2. 
label_map_path = "label_map.tif" # to path to a label map of active material particles (beginning at 1).

case_dir = "case_dir/" # am empty directory where OpenFOAM cases will be built. 

load_of_cmd = "source /usr/lib/openfoam/openfoam2412/etc/bashrc" # the command specific for your system to load an OpenFOAM terminal.

voxel = 1e-7 # the electrode image voxel size in meters.

cbd_surface_porosity = 1.0 # the surface porosity of CBD. Set to 1 if CBD is not present. 

D_s = 4e-14 # the diffusivity of active material in m2.s-1.


solveclosure.solve_closure_multiparticle(case_dir, img_path, label_map_path, load_of_cmd, voxel, cbd_surface_porosity, D_s)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

solveclosure-0.1.0.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solveclosure-0.1.0-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

Details for the file solveclosure-0.1.0.tar.gz.

File metadata

  • Download URL: solveclosure-0.1.0.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for solveclosure-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d3ee6b760972bd51f3ecbd045a129caceb881cbb41085bf1ab727ebdd2d05845
MD5 77d9c77bbd83d17c53ac4a51c9eb3b53
BLAKE2b-256 e089a2b6065981d999014af607da2c63c390210ee1e70074e0b387f18c40301d

See more details on using hashes here.

File details

Details for the file solveclosure-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: solveclosure-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 35.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for solveclosure-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 960234e30afd303bbe7f4e51c1ccf5a6a81ed24f9165a3565620f5a51eb31ca7
MD5 8e964782a6a7f9b03ace356613d23193
BLAKE2b-256 0d950bd2cbbccacfedcf3243fca38bfa77a9c4a246bbef69d7a02d9801ec7619

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page