Skip to content

1. Getting Started

Craig edited this page Jan 19, 2020 · 10 revisions

Installing with pip

You can use pip to install the most recent PyNite package available on PyPI. The PyPI package is updated less frequently than the version available on GitHub, but it will usually have fewer bugs, as it goes through testing and debugging before being uploaded to PyPI. the PyPI package may not yet have all the features described on this wiki. PyNite can be installed from the command line using pip as follows:

$ pip install PyNiteFEA

Installing without pip

Alternatively, the PyNite folder on the Code page contains all the files necessary to run PyNite. Just download or clone it into your project directory or into your python path and you're set. Using this method will allow you to stay current with the latest changes to PyNite (for better or worse) between PyPI updates.

Installing Dependencies

You also need to install numpy and matplotlib for PyNite to work. If you want to use the visualization tools, you'll need to install vtk (Visualization Toolkit) and be running a 64 bit version of Python.

Importing PyNite

Once you've installed PyNite, import PyNite like you would any other Python library. At this point of development, the FEModel3D class contains everything you need to import.

Example:

from PyNite import FEModel3D()

Creating a Model

Use the FEModel3D class to create finite element models.

Example:

myModel = FEModel3D()
Clone this wiki locally