Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Loads ANSYS cdb files

Project Description

Warning

ANSYScdb is no longer being maintained. The code has been moved and is now being maintained as the python pyansys module found at pyansys.

Please download that instead. This module will be removed.

Python/Cython module to convert ANSYS CDB ASCII block files to numpy and vtk unstructured grid objects.

Installation

From PyPI https://pypi.python.org/pypi/ANSYScdb

pip install ANSYScdb

From source

python setup.py install

License

ANSYScdb is licensed under the MIT license. The full statement is provided in the file named LICENSE.

Dependencies

Required: numpy, cython. Optional: vtk

Minimum requirements are numpy and cython to parse an ANSYS cdb. To convert the raw data to a VTK unstructured grid, vtk 5.0 or greater must be installed with Python bindings.

Tests

Test installation with the following from Python

from ANSYScdb import Tests

# Load a hexahedral beam from a cdb
Tests.Load.HexBeam() # returns a cdb object

# Load and display the same beam
Tests.Display.HexBeam() # returns a cdb object

Example Code

Assumes you have downloaded the example CDB files. Otherwise, replace ‘Beam.cdb’ with your own blocked *.cdb file.

#Load module
from ANSYScdb import CDB_Reader

#Load ANSYS cdb file
cdb = CDB_Reader.Read('HexBeam.cdb')

# Parse the raw data into a VTK unstructured grid
cdb.ParseVTK() # Should the cython reader fail, use: cdb.ParseVTK(use_cython=False)

# Plot the resulting unstructured grid
cdb.Plot()
Release History

Release History

This version
History Node

0.14.3

History Node

0.14.1

History Node

0.14

History Node

0.13.2

History Node

0.13.1

History Node

0.13

History Node

0.12.1

History Node

0.12

History Node

0.11.3

History Node

0.11.2

History Node

0.11

History Node

0.10.4

History Node

0.10.3

History Node

0.10.1

History Node

0.10

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ANSYScdb-0.14.3-cp27-cp27m-win_amd64.whl (402.3 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Jun 26, 2017
ANSYScdb-0.14.3-cp35-cp35m-win_amd64.whl (312.1 kB) Copy SHA256 Checksum SHA256 3.5 Wheel Jun 26, 2017
ANSYScdb-0.14.3-cp36-cp36m-win_amd64.whl (317.2 kB) Copy SHA256 Checksum SHA256 3.6 Wheel Jun 26, 2017
ANSYScdb-0.14.3.zip (481.0 kB) Copy SHA256 Checksum SHA256 Source Jun 26, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting