Skip to main content

tdr-convert: tdr file converter

Project description

Introduction

This utility provides TDR file format conversion to devsim, Gmsh, or Tecplot file format

pip install tdr-convert
tdr_convert --tdr file.tdr --devsim file.msh --drop_interfaces_at_contact --scale 1e-4

tdr_convert --help

usage: tdr_convert [-h] --tdr TDR [--load_datasets] [--tecplot TECPLOT] [--devsim DEVSIM] [--gmsh GMSH] [--gmsh_import GMSH_IMPORT]
                   [--device_name DEVICE_NAME] [--scale SCALE] [--drop_interfaces_at_contact] [--tetgen TETGEN] [--exodus EXODUS]
                   [--vtk VTK] [--old]

Create mesh from tdr file

options:
  -h, --help            show this help message and exit
  --tdr TDR             the tdr file to input
  --load_datasets       write data sets
  --tecplot TECPLOT     the tecplot file to output
  --devsim DEVSIM       the devsim file to output
  --gmsh GMSH           the gmsh file to output
  --gmsh_import GMSH_IMPORT
                        the file to write the devsim commands to recreate a new gmsh device
  --device_name DEVICE_NAME
                        the device name
  --scale SCALE         coordinate scaling factor
  --drop_interfaces_at_contact
                        drop interfaces from nodes at contact
  --tetgen TETGEN       the base name for tetgen files to output
  --exodus EXODUS       name of the exodus output file
  --vtk VTK             basename for vtk output file
  --old                 use old method for getting data using devsim

Mesh Requirements

Requires triangular device simulation mesh in 2D. A tetrahedral mesh is required in 3D. Mixed elements are not supported.

Known Issues

The exodus exporter loses data at interfaces when a variable has different values in different regions.

Vector data will name its fields with a suffix for the index. E_0, E_1, E_2

Program does not currently support multiple time steps.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

tdr_convert-0.1.2-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file tdr_convert-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: tdr_convert-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for tdr_convert-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ceb54ca0f70c4bf369a2d75cdfd500ef8fa3dba58fba6e5ec2368077682c43d7
MD5 4590021ed9bce0a2dc0f97e05dc30357
BLAKE2b-256 715511dc3eca9df30f7a849ed5746a5515b9a3b81058156c1715d070085cf911

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page