Skip to main content

triangle-grid-merge

Why this project is useful

  1. It helps to generate finite element triangular grid in tecplot format (.dat).

  2. It's easy to read such a grid from tecplot (.dat) file.

  3. Works for a multizone grids.

  4. Able to merge multizone grids and write them as a single grid.

The main advantage is that with tgm it's easy to read tecplot (.dat) format with multizone triangular grid inside and connect zones basing on the coordinates of the nodes.

Quickstart

To create a grid

from triangular_grid_merge.grid import Grid

In order to initialize the grid with elements use:

grid.init(4, 5, (0, 60), (0, 100))

The code above creates a grid with 4 points by x-axis and 5 point by y-axis. The points are distributed inside the rectangular given by the 2 points - (x1, x2) (y1, y2)

The area is devided according to the number of points by each axis.

To print the grid inside the tgm's grids directory, use

from triangular_grid_merge.tecplot import print_tecplot
print_tecplot(grid, 'name.dat')

If the grid is multizone you can print it as a single zone giving:

print_tecplot(grid, 'name.dat', merge=True)

threezones threezones

To read a grid. use

from triangular_grid_merge.tecplot import read_tecplot
read_tecplot(grid, 'name.dat')

Details

Triangular grid is the one where each face is set by three nodes. It consists of nodes, faces and edges. grid_view

Metadata

Release files for triangular-grid-merge 1.0.0

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

Source distribution (sdist)

Source distribution for triangular-grid-merge 1.0.0
File Size Uploaded Provenance Actions
triangular-grid-merge-1.0.0.tar.gz 7.6 kB Without provenance Details for triangular-grid-merge-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for triangular-grid-merge 1.0.0
File Interpreter ABI Platform Actions
triangular_grid_merge-1.0.0-py3-none-any.whl Python 3 none any Details for triangular_grid_merge-1.0.0-py3-none-any.whl

Total release size: 29.2 kB

Release files / triangular-grid-merge-1.0.0.tar.gz

Download URL triangular-grid-merge-1.0.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ba21de10f282ef9c83a15d393172bcf28b894a971b89680b46251142dc8dfd18
BLAKE2b-256 checksum
How to use checksums
01633edc196d91fea644ba5a3ecbc1d244cb655f605c72f61d3de63c864195cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

Release files / triangular_grid_merge-1.0.0-py3-none-any.whl

Download URL triangular_grid_merge-1.0.0-py3-none-any.whl
Size 21.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd24a0eaa0b74d5a3123acd6ed945d256b792b62d08c35a66af7012ec44e8911
BLAKE2b-256 checksum
How to use checksums
4dcf3a96f9515eefc903b7dd0389833d4d3ec78287b3036f4c332ff3302b6030
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

Security for triangular-grid-merge 1.0.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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