<?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=DATA</id>
	<title>DATA - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ascend4.org/index.php?action=history&amp;feed=atom&amp;title=DATA"/>
	<link rel="alternate" type="text/html" href="https://ascend4.org/index.php?title=DATA&amp;action=history"/>
	<updated>2026-05-03T19:17:42Z</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=DATA&amp;diff=164&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=DATA&amp;diff=164&amp;oldid=prev"/>
		<updated>2010-05-13T14:01:04Z</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;#039;&amp;#039;&amp;#039;DATA&amp;#039;&amp;#039;&amp;#039; instances are used to pass &amp;#039;additional parameters&amp;#039; to [[External_relation|external relations]]. This can be used for example to define constants that are required for calculation of the external relation, but which do not vary over the duration of a simulation.&lt;br /&gt;
&lt;br /&gt;
DATA instances are used for example in [[FPROPS]] to specify the fluid being used:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;a4c&amp;quot;&amp;gt;MODEL ammoniadata;&lt;br /&gt;
	component IS_A symbol_constant;&lt;br /&gt;
	component :== &amp;#039;ammonia&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
END ammoniadata;&lt;br /&gt;
&lt;br /&gt;
MODEL example;&lt;br /&gt;
&lt;br /&gt;
	(* variables that will be calculated (or specified, in some cases *)&lt;br /&gt;
	p IS_A pressure;&lt;br /&gt;
&lt;br /&gt;
	T IS_A temperature;&lt;br /&gt;
	rho IS_A mass_density;&lt;br /&gt;
	h IS_A specific_enthalpy;&lt;br /&gt;
&lt;br /&gt;
	(* this is the &amp;#039;DATA&amp;#039; instance that will be passed to the external relation *)&lt;br /&gt;
	propsdata IS_A ammoniadata;&lt;br /&gt;
&lt;br /&gt;
	(* declare the external relation, together with the variables and DATA that it uses *)&lt;br /&gt;
	props1: helmholtz_p(&lt;br /&gt;
&lt;br /&gt;
		T, rho : INPUT;&lt;br /&gt;
		p : OUTPUT;&lt;br /&gt;
&lt;br /&gt;
		propsdata : DATA&lt;br /&gt;
	);&lt;br /&gt;
END example;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also [[External_libraries#DATA_instance]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 [[Category:Syntax]]&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>UploadBot</name></author>
	</entry>
</feed>