Optimisation of frame geometry: Difference between revisions

From ASCEND
Jump to navigation Jump to search
Restored page from Google Cache, uploaded by John Pye
 
No edit summary
Line 1: Line 1:
<div class="pageexperimental">''This page documents an '''experimental''' feature. You can help out by '''testing it''' and <span class="plainlinks">[http://ascendwiki.cheme.cmu.edu/index.php?title=Optimisation_of_frame_geometry&action=edit recording]</span> your experiences.''</div>
{{experimental}}


As part of a structural modelling task, it was desired to create a space-frame structure with members as close as possible to the same length. An ASCEND model was created with the geometry as a set of equations, and the optimisation performed using the [[CONOPT]] solver. The resulting geometry was then output using PyGtkGlExt and OpenGL as a '''three-dimensional''' model that '''can be rotated''' in a viewer window, using the mouse.
As part of a structural modelling task, it was desired to create a space-frame structure with members as close as possible to the same length. An ASCEND model was created with the geometry as a set of equations, and the optimisation performed using the [[CONOPT]] solver. The resulting geometry was then output using PyGtkGlExt and OpenGL as a '''three-dimensional''' model that '''can be rotated''' in a viewer window, using the mouse.
Line 9: Line 9:
The model file that creates the above output is {{src|models/johnpye/frame.a4c}} combined with the script file {{src|models/johnpye/framevis.py}} for visualisation. This model depends on the [[ExtPy]] extension.
The model file that creates the above output is {{src|models/johnpye/frame.a4c}} combined with the script file {{src|models/johnpye/framevis.py}} for visualisation. This model depends on the [[ExtPy]] extension.


[[Category:Experimental]]
[[Category:Examples]]
[[Category:Examples]]

Revision as of 08:13, 29 March 2011

This page documents an experimental feature. Please tell us if you experience any problems.

As part of a structural modelling task, it was desired to create a space-frame structure with members as close as possible to the same length. An ASCEND model was created with the geometry as a set of equations, and the optimisation performed using the CONOPT solver. The resulting geometry was then output using PyGtkGlExt and OpenGL as a three-dimensional model that can be rotated in a viewer window, using the mouse.

For the following to work you need GtkGLExt and the corresponding Python bindings, PyGtkGLExt, installed. At least for Ubuntu 7.04 and Fedora Core 6, this is easily achieved using the standard package repositories. We haven't tried running this on Windows, although it should be fine: PyGTKGLExt has been ported to Windows.

File:Pyramid.png
screenshot of ASCEND model rendered as 3D wireframe using OpenGL

The model file that creates the above output is models/johnpye/frame.a4c combined with the script file models/johnpye/framevis.py for visualisation. This model depends on the ExtPy extension.