<?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=Included</id>
	<title>Included - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ascend4.org/index.php?action=history&amp;feed=atom&amp;title=Included"/>
	<link rel="alternate" type="text/html" href="https://ascend4.org/index.php?title=Included&amp;action=history"/>
	<updated>2026-06-13T03:57:54Z</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=Included&amp;diff=1626&amp;oldid=prev</id>
		<title>Jpye: Created page with &#039;{{DISPLAYTITLE:included}} The &#039;&#039;included&#039;&#039; keyword can be used within METHODs to turn on and off relations in your model. For example,  &lt;source lang=a4c&gt; MODEL mymodel;     f…&#039;</title>
		<link rel="alternate" type="text/html" href="https://ascend4.org/index.php?title=Included&amp;diff=1626&amp;oldid=prev"/>
		<updated>2011-01-06T02:16:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{DISPLAYTITLE:included}} The &amp;#039;&amp;#039;included&amp;#039;&amp;#039; keyword can be used within &lt;a href=&quot;/METHOD&quot; class=&quot;mw-redirect&quot; title=&quot;METHOD&quot;&gt;METHODs&lt;/a&gt; to turn on and off relations in your model. For example,  &amp;lt;source lang=a4c&amp;gt; MODEL mymodel;     f…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:included}}&lt;br /&gt;
The &amp;#039;&amp;#039;included&amp;#039;&amp;#039; keyword can be used within [[METHOD]]s to turn on and off relations in your model. For example,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=a4c&amp;gt;&lt;br /&gt;
MODEL mymodel;&lt;br /&gt;
    f, Re, eD IS_A factor;&lt;br /&gt;
    lam_expr: f = 64 / Re;&lt;br /&gt;
    turb_expr: 1/sqrt(f) = -1.8*(6.9/Re + (eD/3.7)^1.11);&lt;br /&gt;
METHOD set_turbulent;&lt;br /&gt;
    turb_expr.included := TRUE;&lt;br /&gt;
    lam_expr.included := FALSE;&lt;br /&gt;
END set_turbulent;&lt;br /&gt;
METHOD set_laminar;&lt;br /&gt;
    turb_expr.included := FALSE;&lt;br /&gt;
    lam_expr.included := TRUE;&lt;br /&gt;
END set_laminar;&lt;br /&gt;
END mymodel;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above model hasn&amp;#039;t been carefully tested, it&amp;#039;s just been written to demonstrate the syntax that allows manually switching relations on and off. This can be very handy when trying to solve difficult models; the model can be configured in a simple form to get variable values close to the true solution, then the model switched to more accurate form for final, accurate, solution.&lt;br /&gt;
&lt;br /&gt;
[[Category:Syntax]]&lt;/div&gt;</summary>
		<author><name>Jpye</name></author>
	</entry>
</feed>