https://github.com/devsim/tdr-convert
tdr file converter
https://github.com/devsim/tdr-convert
Last synced: 10 months ago
JSON representation
tdr file converter
- Host: GitHub
- URL: https://github.com/devsim/tdr-convert
- Owner: devsim
- License: apache-2.0
- Created: 2024-01-21T20:33:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-30T21:26:22.000Z (over 2 years ago)
- Last Synced: 2025-03-23T20:23:37.407Z (about 1 year ago)
- Language: Python
- Size: 57.6 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
Awesome Lists containing this project
README
===============================
tdr-convert: tdr file converter
===============================
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.