Skip to main content

Meshio for BACI

pipeline

Relies on meshio: https://github.com/nschloe/meshio

Install

You can install the latest version with pip:

pip install lnmmeshio

Documentation

Does only read the discretization and currently completely ignores all other sections.

Read/write a mesh into/from the Discretization class

import lnmmeshio

# tested formats are Exodus, Gmsh and .dat (only the discretization, all other sections are discarded)
dis = lnmmeshio.read('pathtofile.ext')

# do what ever you want with the discretization (like add options to the elements or sth like that)

# iterate over all structural elements
for ele in dis.elements.structure:
    # do sth with the element
    ele.options["KINEM"] = "nonlinear"
    ele.options["MAT"] = 1

# iterate over all nodes
for node in dis.nodes:
    # do sth with the node
    pass

# iterate over all surface elements with id 0
for ele in dis.get_dsurf_elements(0):
    # do sth with this element
    pass

# iterate over all surface nodeset nodes with id 0
for node in dis.surfacenodesets[0]:
    # do sth with the node
    pass

# write discretization into an arbitrary format (.dat, .vtu, ...)
lnmmeshio.write('pathtofile.ext', dis)

See also https://github.com/nschloe/meshio

Make changes and upgrade

  • Make your changes and test changes.
  • Adapt version number in pyproject.toml
  • Create a feature branch (best reference it with corresponding issue)
  • Create a merge request from feature branch
  • Push changes to Gitlab and wait for the pipeline to pass
  • Once the MR is merged, the new version is available in the package repository

Metadata

Release files for lnmmeshio 5.6.4

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

Source distribution (sdist)

Source distribution for lnmmeshio 5.6.4
File Size Uploaded
lnmmeshio-5.6.4.tar.gz 627.6 kB Details

Built distribution (wheel)

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

Total release size: 671.6 kB

Release files / lnmmeshio-5.6.4.tar.gz

Download URL lnmmeshio-5.6.4.tar.gz
Size 627.6 kB
Tags Source
SHA-256 checksum
How to use checksums
19cdf302b7b3e2bd07d0aa4f3ed4a381c7cdb2e2cf484648431ebcc2afb1655c
BLAKE2b-256 checksum
How to use checksums
b9170325120df2bfd2308bd4527b07c5b434ba503474ff11d87fd26c7b16c515
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release files / lnmmeshio-5.6.4-py3-none-any.whl

Download URL lnmmeshio-5.6.4-py3-none-any.whl
Size 44.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6aabaaf0d3d907c8c689bb5e3a00508d0f9306e15d3ef3800e373a6cba9200ca
BLAKE2b-256 checksum
How to use checksums
1880344ce92774930d2516b04c532809a85ea7336e07eafb8d83a7ae3d2bc078
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

5.6.4 This release

2 release files

5.6.3

2 release files

5.6.2

2 release files

5.6.1

2 release files

5.6.0

2 release files

5.5.0

2 release files

5.4.0

2 release files

5.3.2

2 release files

5.3.1

2 release files

5.3.0

2 release files

5.2.4

2 release files

5.2.3

2 release files

5.2.2

2 release files

5.2.1

2 release files

5.2.0

2 release files

5.1.0

2 release files

5.0.1

2 release files

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