Topy Versions Save

Topology Optimization using Python

0.4.1

4 years ago

Summary

Mainly for Windows users so that you can install Pysparse via 'conda-forge'

Installation instructions (for Windows, Linux should be similar - I've not tested)

Requirement: Install Python 2.7 in a virtual environment, I suggest (require, actually) using conda (download the Anaconda Python distribution or Miniconda).

Set up a Python 2.7 environment

Do the following in a terminal (on Windows in an 'Anaconda Prompt' terminal). I typed below from memory so might not be 100% correct:

  1. conda create --name py27 python=2.7
  2. Activate the environment: conda activate py27
  3. Install NumPy: conda install -c anaconda numpy
  4. Install SciPy, matplotlib and SymPy, PyVTK via conda, similar to above, e.g., for PyVTK do conda install -c conda-forge pyvtk
  5. Important: Install Pysparse using conda-forge: conda install -c conda-forge pysparse (for more info refer to https://anaconda.org/conda-forge/pysparse)

You can now install ToPy in the the py27 environment by cd'ing into the topy directory and typing python setup.py install

You should now be set if you didn't get any errors.

Try running an example in the topy\examples\mbb_beam folder by typing (for example, on Windows) 'python .\optimise.py .\beam_2d_reci_10_iters.tpd'; you should see ToPy running (creating stiffness matrices first), you may have to type the command again. You should then see 10 iterations with accompanying images in the iterations subfolder.

v0.4.0

6 years ago

3d Gmsh ASCII

You can now create and visualize (using Gmsh) an initial domain in 3d, just like you can for 2d. See the Tutorial section which will have a 3d example in the next couple of weeks (or years), similar to the 2d one that illustrates the use of Gmsh.

Significance of 3d Gmsh ASCII

It makes it a lot easier to find node numbers and elements because you can see the initial mesh in 3d and you can therefore see the node and element numbers.

Note

You cannot (yet) use Gmsh to define problems, at this stage Gmsh is used as an aid to find node and element numbers. You still need to define a TPD file. Gmsh is therefore used as a visual aid to define ToPy's TPD files.

v0.3.2

6 years ago

Mostly Ivan's additions:

  1. New way of defining problems (via Config)
  2. topy_logging
  3. Faster!
  4. Checked if it ToPy works with Windows 10 64-bit and updated INSTALL.md

v0.2.3

7 years ago

See the Tutorial...

v0.2.2

7 years ago

Restructured source code directories, topy subdir now contains only relevant code. This is also in preparation for adding functionality to visualisation.py. No changes to the code as such.

v0.2.1

8 years ago

I thought v0.2.0 was it, but it turns out I tested the wrong code base on my local machine :-1: My bad.

This release (v0.2.1) should now work fine and closes #6.

v0.2.0

8 years ago

Moved from Google Code; this release contains a few minor changes, also tested it on Windows 7 and everything still works. The source code itself contains no changes as such, just moved the files around a bit.

UPDATE: Won't install correctly, see issue #6.


William Hunter