Worked examples

From ASCEND
Jump to navigation Jump to search

This is a list of worked example models that were written in the spirit of experimentation while working on the functionality of ASCEND.

See also and .



Four bar linkage

models/johnpye/fourbar.a4c

This example shows a (static) system with simple geometric constraints. It is solved for a range of angles for one member, and the position of the other members is determined. Then a nice plot is built up by repeated running the ASCEND model and accumulating the results using ExtPy.

Thermal equilibrium

models/johnpye/thermalequilibrium2.a4c

This is a simple model of thermal equilibrium between two masses of steam with a simple constant heat transfer coefficient between them. The model uses external freesteam IAPWS-IF97 steam tables and the IDA integrator.

<img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" />
Graph of the temperatures of the two masses over time. The transition through the saturation region is visible.

Simple advection equation

models/johnpye/advection.a4c

This model is a study of the simple advection equation, following a discussion published by Carver and Hinds in Simulation (1978). Just as with the explicit integration method discussed in that paper, we also see instability when using the IDA implicit BDF integrator here. The output in each case was generated by copying the contents of the Integrator tab and pasting into OpenOffice and plotting there.


More examples

For some more detailed examples, see the page , which includes: