Tutorial on ParaView: Difference between revisions

From bone.wiki
Jump to navigation Jump to search
New page: ==Purpose== This is a tutorial that will demonstrate how to use ParaView to examine AIM files, and how to use vtkski and python scripting to construct finite element models with complicat...
 
No edit summary
Line 17: Line 17:
* The API documentation for VTK is at [[http://www.vtk.org/doc/release/5.6/html/index.html]] .  This is where you go to find out exactly what classes are available in VTK and exactly how to use them.
* The API documentation for VTK is at [[http://www.vtk.org/doc/release/5.6/html/index.html]] .  This is where you go to find out exactly what classes are available in VTK and exactly how to use them.
* The API documentation for vtkski is at [[http://mike.kin.ucalgary.ca/vtkski/index.html]] .
* The API documentation for vtkski is at [[http://mike.kin.ucalgary.ca/vtkski/index.html]] .
==Model Overview==
We want to construct a finite element model of an AIM file that contains a scan of a bone with a screw in it.  Physical tests were done in which the bone was constrained with a ring and the screw was pulled out.  We want to model this with finite elements.
==Examining the AIM file with ParaView==

Revision as of 18:26, 21 June 2010

Purpose

This is a tutorial that will demonstrate how to use ParaView to examine AIM files, and how to use vtkski and python scripting to construct finite element models with complicated coundary conditions.

This tutorial was done on OS-X, but should be essentially similar for Windows or Linux, with some minor differences.

Prerequisites

You'll need ParaView built with the bonelab extensions. You should be able to find in on the server mike . On OS-X, click on this link: afp://mike.kin.ucalgary.ca/Data0/Software/ParaView_with_extensions/ . On Windows, enter \\mike\Data0\Software\ParaView_with_extensions in an Explorer address bar. In either case, you'll need to be on the university network.

You'll also need python. Windows users can get it from [[1]] ; everyone else has it already.

Background Material

  • If you're not familiar with Python, you might want to go through the tutorial [[2]] .
  • There are a couple of books on VTK floating about the lab, "The Visualization Toolkit" and "VTK User's Guide".
  • The API documentation for VTK is at [[3]] . This is where you go to find out exactly what classes are available in VTK and exactly how to use them.
  • The API documentation for vtkski is at [[4]] .

Model Overview

We want to construct a finite element model of an AIM file that contains a scan of a bone with a screw in it. Physical tests were done in which the bone was constrained with a ring and the screw was pulled out. We want to model this with finite elements.

Examining the AIM file with ParaView