Skip to main content

My package description

Project description

tessToPy

Overview

tessToPy is a python package for representing a tessellated structure generated by Neper (https://neper.info/). This tessellation representation can be combined with a python representation of the discretized structure and used to write input files for finite element analysis (FEA). The primary function of the code is to regularize a periodic tessellation. The regularization tries to remove short edges from the structure, as short edges could be detremental to the overall quality of a FEA mesh.

A unregularized and regularized tessellation is shown below:

Unregularized structure with edges to be deleted Regularized structure with edges deleted

The effect of regularization on the edge length distribution in a 400 cell tessellation is shown below:

Getting started

This package can be installed with

$ pip install tessToPy

The tessellation is loaded as an object by

tess = tessToPy.PeriodicTesselation(tessellation.tess)

The tessellation is regularized by

tess.regularize(n=len(tess.edges))

and can be written to a condensed .tess file by

tess.write(new_file_name)

The tessellation can also be meshed (with gmsh, must be installed), by calling

tess.mesh2D(elem_size)

where elem_size is the target length of the elements along an edge.

The file original_tessellation_processing.py is compatible with the FoamModeling project, which has not been updated. This can be used to generate LS-DYNA input files for modeling foam structures. Please seen Characterization and modeling of the mechanical behavior of polymer foam by Daniel Morton for further context.

License

See LICENSE.md for license information (MIT license).

Citation

This software was used as part of the PhD thesis Characterization and modeling of the mechanical behavior of polymer foam by Daniel Morton, which can be used as a reference.

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

tessToPy-0.0.12.tar.gz (487.7 kB view details)

Uploaded Source

Built Distribution

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

tessToPy-0.0.12-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file tessToPy-0.0.12.tar.gz.

File metadata

  • Download URL: tessToPy-0.0.12.tar.gz
  • Upload date:
  • Size: 487.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.4

File hashes

Hashes for tessToPy-0.0.12.tar.gz
Algorithm Hash digest
SHA256 87cd61a1ae3efac6ec10ae08ea5458b10bc56eaad8c8ee1b182b2dca61023188
MD5 412b44a7d17f21f84e1b3e9f02456c54
BLAKE2b-256 7715e40bedbd80d68be0a067a9176d3da324ed26d3d788449d8967fead30a716

See more details on using hashes here.

File details

Details for the file tessToPy-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: tessToPy-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 30.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.4

File hashes

Hashes for tessToPy-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 86c7efe3e3c979373bfb28f96622bf59cb79ac1dbad432aebb6edfc222e7a111
MD5 da5fda709fc439d466a10414a49baf03
BLAKE2b-256 ea936a7d4b9c4fc51deba9da7a469fe5be8779643493fab0fb99524c5a70f02f

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