Skip to content

Releases: williamhunter/topy

The "Conda Python 2.7" release

01 May 12:04
1a2429c
Compare
Choose a tag to compare

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.

Added 3d Gmsh writer function

11 Sep 15:57
Compare
Choose a tag to compare

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.

Sosnovik :-)

23 Aug 19:00
Compare
Choose a tag to compare

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

Added 2d Gmsh writer function

17 Jun 15:42
Compare
Choose a tag to compare

See the Tutorial...

Restructured directories

07 Jun 15:46
Compare
Choose a tag to compare

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.

First working release on GitHub

28 Sep 19:44
Compare
Choose a tag to compare

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

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

Minor update

24 Sep 13:39
Compare
Choose a tag to compare
Minor update Pre-release
Pre-release

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