Skip to main content

py_bonemat_abaqus

Version:

Version 1.0.9

Authors:

Dr Elise Pegg (University of Bath), Prof Richie Gill (University of Bath)

Email:

e.c.pegg@bath.ac.uk

Introduction

This python package provides tools to add material properties of bone to an ABAQUS finite element model input file, where the modulus of each element is defined based upon its corresponding CT data using the Hounsfield Unit (HU) and input parameters.

The package aims to be equivalent to Bonemat software developed by researchers in Bologna, Italy, but tailored for ABAQUS finite element users. The original Bonemat can be found at www.bonemat.org, and further details can be found in published papers [1], [2], [3], [4]. For more information about the verification tests performed on this Python package, refer to the following journal article [5].

Notes:

  • When this package is used to add materials to an ABAQUS input file, any model parameters (such as loading, sets, or step definitions) are retained.

  • The present version of this package will only work with:
    • linear and quadratic tetrahdral elements

    • linear wedge elements

    • linear hexahedral elements

  • To run the package, you need to have three files: a parameters file (.txt), an ABAQUS input file (.inp), and a CT scan (either as a series of dicom images in a folder, or as a .vtk file). Example files are provided in the example folder.

  • More information on this package can be found at the start of the py_bonemat_abaqus.py code

Publication

If you decide to use this python package for your research, when publishing we kindly request that you cite the following paper [5].

Installation

The simplest and recommended way to install py_bonemat_abaqus is with pip. You may install the latest stable release from PyPI with pip using the following command:

>>> pip install py_bonemat_abaqus

If you do not have pip, you may use easy_install:

>>> easy_install py_bonemat_abaqus

Alternatively, you may download the source package from the PyPI page, extract it and install using:

>>> python setup.py install

Dependencies

  • Numpy - version 1.6 or higher

  • PyDicom - version 0.9.7 or higher

Usage

The package can be run either from the terminal, or imported into a python script.

To run from a terminal use the following syntax:

>>> py_bonemat_abaqus -p <parameters file> -ct <ct file/dir> -m <abaqus input file>

To run from within a python script, at the top of the file import the ‘run’ script from the package, and then execute with:

run(<parameters file>, < ct scan dir or vtk>, <abaqus input file>)

For example, if a python script containing the following two lines were saved in the examples folder of the source code, it would calculate the material properties of ‘example_abaqus_mesh.inp’:

from py_bonemat_abaqus.run import run

run('example_parameters.txt','example_ct_data.vtk','example_abaqus_mesh.inp')

References

Metadata

Release files for py_bonemat_abaqus 1.0.9

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

Source distribution (sdist)

Source distribution for py_bonemat_abaqus 1.0.9
File Size Uploaded Provenance
py_bonemat_abaqus-1.0.9.zip 56.9 kB Without provenance Details

Release files / py_bonemat_abaqus-1.0.9.zip

Download URL py_bonemat_abaqus-1.0.9.zip
Size 56.9 kB
Tags Source
SHA-256 checksum
How to use checksums
521902e3d2cbac0b600ed37f909ac2498ca8360ff2a0c6203b27c3a6b2b67df9
BLAKE2b-256 checksum
How to use checksums
ec1f7e8943dcfd807468e5dfc8ab48bdd5fda48083fefb1aac21a3f72f34a5c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for py_bonemat_abaqus 1.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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