×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Paging VTK experts...

Paging VTK experts...

Paging VTK experts...

(OP)
Firstly, VTK is an extremely poweful and useful set of visualization tools (www.vtk.org) and I have a few ideas for using the VTK Python bindings in some cool ABAQUS applications. Basically from within a Python script I will "import vtk" and then go from there...

The problem is that the docs are pretty thin on examples and I'd like to see if anyone else is having success with it.

Specifically, I can already successfully create Delaunay triangulations of unstructured cloud points, but getting anything useful out is another matter. I'd like to be able to return vertex coords, normals and triangle connectivity. (I intend to display the results in the ABAQUS viewport using the new OpenGL-Python API that was added in V6.6EF - once I get the coords it's no problem...)

So, is anyone able to help or have a discussion? If you want to take it offline you can drop me a line at brep07@gmail.com.

RE: Paging VTK experts...

brep,

I think ABAQUS/CAE has more powerful mesh generation algorithms than VTK.

However, VTK is a nice library, especially because it is free. smile It is very easy to use with Python. There are two books "Visualization Toolkit An Object-Oriented Approach To 3D Graphics" and "VTK User's Guide" which have some examples, mostly in TCL and C++. The examples can be easily converted to Python.

My major interest related to VTK is to use it in a FE Visual C++/MFC application, mostly for results post-processing.

So far, I could not imagine any good outcome from linking VTK and CAE.

Also, I am curious how many people have interest in both ABAQUS and VTK. smile

RE: Paging VTK experts...

(OP)
xerf,

I'm not going to use vtk for meshing per se, as I agree, CAE's capabilities are stronger. On the other hand, there are a lot of nice tools that I am thinking could be used to import stl, remesh (smooth) the facets, perhaps warp them, and then use the node/connectivity info in /CAE.

I have had some success this morning in getting vtk and ABAQUS playing nicely. It is pretty much down to my being at the start of the vtk learning curve. I'd be happy to send a demo script if you're interested in what I've done so far.

RE: Paging VTK experts...

What VTK version do you use ?

RE: Paging VTK experts...

(OP)
5.0.0

I use the python package from Enthought which includes vtk, amongst other things...

RE: Paging VTK experts...

Have CAE ever crashed when using some of the "other things" e.g. plotting modules from scipy ?

RE: Paging VTK experts...

(OP)
Oh sure ;) In the experimental stages, it is quite easy to get types wrong and send unexpected objects to the wrong place. CAE tries to trap errors as much as possible, but when using these back door methods/modules, there can be loopholes!

RE: Paging VTK experts...

Actually, CAE crashes during running simple example lines from scipy plotting tutorial.

Some of the vtk examples work some don't and some stop working if you run the same script repeatedly.

Did you use PYTHONPATH to give CAE's Python access to the packages from Enthought?



 

RE: Paging VTK experts...

(OP)
Yep, my python path is ammended with this: C:\Python24;C:\Python24\Lib\site-packages

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources