Worked examples: Difference between revisions

From ASCEND
Jump to navigation Jump to search
No edit summary
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This is a list of worked example models that were written in the spirit of experimentation while working on the functionality of ASCEND.
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 [[Category:Tutorials]] and [[Category:Examples]].
See also [[:Category:Tutorials]] and [[:Category:Examples]].


== Steam power station ==


ASCEND can model complete [[Rankine cycle|Rankine power cycles]] including regeneration and reheat. The same models work for a variety of fluids via [[FPROPS]]. See {{src|models/johnpye/fprops/rankine_fprops.a4c}}.


Note that the diagram below was created with Dia; we are working on a [[canvas-based modeller for ASCEND]] but it's still in early stages of development.
[[Image:RankineRegenReheat.png|400px]] [[Image:Rankine-Ts.png|400px]]


== Four bar linkage ==
== Four bar linkage ==
Line 12: Line 17:
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]].
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]].


[[Image:Fourbar.png|thumb|402px]]
[[Image:Fourbar.png|thumb|402px|none]]


== Thermal equilibrium ==
== Thermal equilibrium ==
Line 20: Line 25:
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.
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.


<div class="thumb tnone"><div class="thumbinner" style="width:402px;">[[Image:Thermalequilibrium.png]] <div class="thumbcaption"><div class="magnify">[[File:Thermalequilibrium.png|<img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" />]]</div>Graph of the temperatures of the two masses over time. The transition through the saturation region is visible.</div></div></div>
[[Image:Thermalequilibrium.png|thumb|400px|none|Graph of the temperatures of the two masses over time. The transition through the saturation region is visible.]]


== Simple advection equation ==
== Simple advection equation ==
Line 28: Line 33:
This model is a study of the simple advection equation, following [http://dx.doi.org/10.1177/003754977803100205 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.
This model is a study of the simple advection equation, following [http://dx.doi.org/10.1177/003754977803100205 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.


[[Image:2p-upwind.png]][[Image:3p-upwind.png]]
[[Image:2p-upwind.png|200px]][[Image:3p-upwind.png|200px]]
[[Image:4p-biased.png]][[Image:Central-diff.png]]
[[Image:4p-biased.png|200px]][[Image:Central-diff.png|200px]]
 


== More examples ==
== More examples ==


For some more detailed examples, see the page [[Category:Examples]], which includes:
For some more detailed examples, see the page [[Category:Examples]], which includes:


* [[Vapor-liquid equilibrium]]
* [[Vapor-liquid equilibrium]]
Line 42: Line 45:
* [[Conditional modelling]] (examples of models with IF/ELSE-style behaviour in their equations)
* [[Conditional modelling]] (examples of models with IF/ELSE-style behaviour in their equations)
* [[Optimisation of frame geometry]]
* [[Optimisation of frame geometry]]
* [http://www.che.uah.edu/courseware/toolbox/ascend/ Chemical thermodynamics, mass/energy balance] and more, from [[User:Kchittur|Krishnan Chittur]].
* [http://chetoolbox.uah.edu/courseware/toolbox/ascend/ Chemical thermodynamics, mass/energy balance] and more, from [[User:Kchittur|Krishnan Chittur]].
 
* [[Combined-cycle gas turbine]]
 


[[Category:Documentation]]
[[Category:Documentation]]
[[Category:Examples]]
[[Category:Examples]]

Latest revision as of 01:42, 26 November 2017

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 Category:Tutorials and Category:Examples.

Steam power station

ASCEND can model complete Rankine power cycles including regeneration and reheat. The same models work for a variety of fluids via FPROPS. See models/johnpye/fprops/rankine_fprops.a4c.

Note that the diagram below was created with Dia; we are working on a canvas-based modeller for ASCEND but it's still in early stages of development.

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.

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: