<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ascend4.org/index.php?action=history&amp;feed=atom&amp;title=How_to_begin_modelling_with_ASCEND</id>
	<title>How to begin modelling with ASCEND - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ascend4.org/index.php?action=history&amp;feed=atom&amp;title=How_to_begin_modelling_with_ASCEND"/>
	<link rel="alternate" type="text/html" href="https://ascend4.org/index.php?title=How_to_begin_modelling_with_ASCEND&amp;action=history"/>
	<updated>2026-05-03T20:14:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://ascend4.org/index.php?title=How_to_begin_modelling_with_ASCEND&amp;diff=356&amp;oldid=prev</id>
		<title>Jpye at 01:24, 17 May 2010</title>
		<link rel="alternate" type="text/html" href="https://ascend4.org/index.php?title=How_to_begin_modelling_with_ASCEND&amp;diff=356&amp;oldid=prev"/>
		<updated>2010-05-17T01:24:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:24, 17 May 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;div&amp;gt;&#039;&#039;This article is &lt;/del&gt;incomplete &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;or needs expanding. Please help out by adding your comments.&#039;&#039;&amp;lt;/div&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{&lt;/ins&gt;incomplete&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is an attempt at helping beginners learn ASCEND.  Art has started the page that will walk through the process of developing a reusable model for a &amp;#039;&amp;#039;&amp;#039;tank&amp;#039;&amp;#039;&amp;#039;.  I am experimenting with adding equations (in latex) and code and scripts to see how unwieldy it could get (The objective is to keep it as simple as possible and not too intimidating to a beginner, yet highlight important issues on how to model correctly.  We should provide links on this page to the models that can be downloaded and run).  I will be working on cubic equations of state.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is an attempt at helping beginners learn ASCEND.  Art has started the page that will walk through the process of developing a reusable model for a &amp;#039;&amp;#039;&amp;#039;tank&amp;#039;&amp;#039;&amp;#039;.  I am experimenting with adding equations (in latex) and code and scripts to see how unwieldy it could get (The objective is to keep it as simple as possible and not too intimidating to a beginner, yet highlight important issues on how to model correctly.  We should provide links on this page to the models that can be downloaded and run).  I will be working on cubic equations of state.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l81&quot;&gt;Line 81:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 81:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Show how those MODELS set variables and METHODS&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Show how those MODELS set variables and METHODS&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; [[Category:Incomplete]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Tutorials]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Tutorials]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jpye</name></author>
	</entry>
	<entry>
		<id>https://ascend4.org/index.php?title=How_to_begin_modelling_with_ASCEND&amp;diff=52&amp;oldid=prev</id>
		<title>UploadBot: Restored page from Google Cache, uploaded by John Pye</title>
		<link rel="alternate" type="text/html" href="https://ascend4.org/index.php?title=How_to_begin_modelling_with_ASCEND&amp;diff=52&amp;oldid=prev"/>
		<updated>2010-05-13T13:42:11Z</updated>

		<summary type="html">&lt;p&gt;Restored page from Google Cache, uploaded by John Pye&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div&amp;gt;&amp;#039;&amp;#039;This article is incomplete or needs expanding. Please help out by adding your comments.&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an attempt at helping beginners learn ASCEND.  Art has started the page that will walk through the process of developing a reusable model for a &amp;#039;&amp;#039;&amp;#039;tank&amp;#039;&amp;#039;&amp;#039;.  I am experimenting with adding equations (in latex) and code and scripts to see how unwieldy it could get (The objective is to keep it as simple as possible and not too intimidating to a beginner, yet highlight important issues on how to model correctly.  We should provide links on this page to the models that can be downloaded and run).  I will be working on cubic equations of state.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Collect equations you need for the model ==&lt;br /&gt;
&lt;br /&gt;
Note that &amp;lt;math&amp;gt;T_r = \frac{T}{T_c}&amp;lt;/math&amp;gt; where &amp;lt;span class=&amp;quot;texhtml&amp;quot;&amp;gt;&amp;#039;&amp;#039;T&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;c&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; is the critical temperature and &amp;lt;span class=&amp;quot;texhtml&amp;quot;&amp;gt;&amp;#039;&amp;#039;T&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; is the reduced temperature and similarly&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;P_r = \frac{P}{P_c}&amp;lt;/math&amp;gt; where &amp;lt;span class=&amp;quot;texhtml&amp;quot;&amp;gt;&amp;#039;&amp;#039;P&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;c&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; is the critical pressure and &amp;lt;span class=&amp;quot;texhtml&amp;quot;&amp;gt;&amp;#039;&amp;#039;P&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;&amp;lt;/span&amp;gt; is the reduced pressure&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Generic cubic Equations of State ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Z = 1.0 + \beta - \frac{q \beta (Z - \beta)}{(Z + \epsilon \beta)(Z + \sigma\beta)}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setting parameters to get PengRobinson, Redlich Kwong, Soave Redlich Kwong and VdW ====&lt;br /&gt;
&lt;br /&gt;
===== Pengrobinson =====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\alpha = {1.0 + (0.37464+1.54226\omega-0.26992\omega^2)(1.0-T_r^{0.5})}^2&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
q = \frac{\Psi \alpha}{\Omega T_r}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\beta = \frac{\Omega P_r}{T_r}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\Psi, \Omega, \sigma~and~\epsilon &amp;lt;/math&amp;gt; are constants and&lt;br /&gt;
&amp;lt;math&amp;gt;~\omega~&amp;lt;/math&amp;gt; is the Pitzer acentric factor&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Translate those equations into the ASCEND language ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;a4c&amp;quot;&amp;gt;PSI :== 0.42748;&lt;br /&gt;
OMEGA :== 0.07780;&lt;br /&gt;
sigma :== 2.414213562;&lt;br /&gt;
&lt;br /&gt;
eps :== 0.414213562;&lt;br /&gt;
Tr = T/Tc;&lt;br /&gt;
Pr = P/Pc;&lt;br /&gt;
&lt;br /&gt;
alpha = (1.0 + (0.37464+1.54226*omega-0.26992*omega^2)*(1.0-Tr^(0.5)))^2;&lt;br /&gt;
&lt;br /&gt;
q = PSI*alpha/(OMEGA*Tr);&lt;br /&gt;
beta = OMEGA*Pr/Tr;&lt;br /&gt;
&lt;br /&gt;
Z = 1.0 + beta - q*beta*(Z - beta)/((Z + eps*beta)*(Z + sigma*beta));&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Write METHODS that will make it easy to read the MODELS ==&lt;br /&gt;
&lt;br /&gt;
ASCEND comes with several METHODS that are executed automatically.  ClearAll, default_self, values and specify for example.  The objective is to set the system to be square, so you have a solution - that is, the number of unknowns should equal the number of independent equations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Set Pressure, Temperature, calculate Volume ===&lt;br /&gt;
&lt;br /&gt;
=== Set Temperature, Volume, calculate Pressure ===&lt;br /&gt;
&lt;br /&gt;
=== Set Volume, pressure, calculate temperature ===&lt;br /&gt;
&lt;br /&gt;
== Make the MODEL reusable by clearly setting METHODS that are private to those that are not ==&lt;br /&gt;
&lt;br /&gt;
== Example of how a reusable MODEL can be reused ==&lt;br /&gt;
&lt;br /&gt;
=== Calculate fugacity coefficients for a binary system ===&lt;br /&gt;
&lt;br /&gt;
== Thermodynamic Models that come with ASCEND ==&lt;br /&gt;
&lt;br /&gt;
Rackett, UNIFAC, WILSON, Ideal &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How to call and use the MODELS ===&lt;br /&gt;
&lt;br /&gt;
Show how those MODELS set variables and METHODS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 [[Category:Incomplete]]&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>UploadBot</name></author>
	</entry>
</feed>