Skip to main content

splash

Tékigô

About

Tékigô is a python helper tool for static mesh adaptation. It eases the creation of metrics, and store them in a file. The online documentation is available on the internal Cerfacs forge (Credentials needed). Soon the package will be updated on pypi with documentation on readthedocs.

There is a built-in adaptation step done with HIP mesh handler developed at CERFACS. It is suited for unstructured grids and particularly useful for CFD.

Note : for now, Tekigo handle AVBP mesh and solution format. However contact us for extendion to others format, it should not be a big deal...


Installation

Install Tekigo from PyPi :

pip install tekigo

You can also install it from the sources:

git clone git@gitlab.com:cerfacs/tekigo.git

followed in the tekigo/ parent directory by:

pip install .

If possible add pyavbpto your environement. This is not compulsory, but needed to create the xmffile from you ionitial mesh and solution. Learn more about COOP virtual environements in this blog post on COOP venvs

Basic usage:

Tekigo is used via python scripts, to do the following steps

  1. create a TekigoSolution, i.e. a mesh + solution with some additional fields (coordinates , volume at node).
  2. Load from this TekigoSolution some Quantities of Interests.
  3. Build a metric from these Quantities of Interests, using numpyformalism -and if neededsome tekigo utilities-.
  4. Evaluate the metric, i.e. forecast the future mesh : how many cells are we going to get?, what the fields will look like in the end?
  5. If asked, perform a HIP/MMG adaptation

The script reads:

import numpy as np
from tekigo import (TekigoSolution, adaptation_pyhip)

tekigo_sol = TekigoSolution(
    mesh='../../GILGAMESH/trapvtx/trappedvtx.mesh.h5',
    solution='combu.init.h5',
    out_dir='./Results')


x_coor = tekigo_sol.load_qoi('/Mesh/coord_x')
metric_field = np.where(x_coor<0.1,1,0.7)

tekigo_sol.evaluate_metric(metric_field)

adaptation_pyhip(tekigo_sol, edge_low=1.e-3)

See tutorials for more in-depth description of scripts. No magic exxecution for the moment, create your python script and run it with

python my_tekigo_script.py

Performances

Tekigo's adaptation_pyhip() through HIP/MMG, is sequential : do not aim for final meshes above 150M Tetrahedrons.. Around 200 MCells, you will reach the limits of a sequential mesh adapter. For larger cases, just use tekigo without the adaptation_pyhip() step, pass the solution to TreeAdapt. For the record, TreeAdapt needs the final edge lenght (field target_edge), not the metric(field metric).

Acknowledgements

Tekigo is the result of many discussions and developments of different contributors within the COOP team of CERFACS.

Tekigo is a service created in the COEC Center Of Excellence, funded by the European community.

logo

Metadata

Release files for tekigo 2.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 tekigo 2.0.0
File Size Uploaded Provenance Actions
tekigo-2.0.0.tar.gz 43.4 kB Without provenance Details for tekigo-2.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 90.8 kB

Release files / tekigo-2.0.0.tar.gz

Download URL tekigo-2.0.0.tar.gz
Size 43.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f9e24fa56163ac30bf6d8fe28ae7c28ba91017ae92b180904574fe324c16ddd4
BLAKE2b-256 checksum
How to use checksums
2f0f29bbeb2397564880ae63e689afa7dced31263a7572a1e9851f87c7e0e8b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Release files / tekigo-2.0.0-py3-none-any.whl

Download URL tekigo-2.0.0-py3-none-any.whl
Size 47.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
731004645900f2183d5eb1c02a3f5f5ba778938a484a8e1c389c3b615887f6ab
BLAKE2b-256 checksum
How to use checksums
b4bdcea00507f12c144eac3a96bf8968d00377a085b34dc1dcabfc37a22cf386
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Security for tekigo 2.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.

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