Location: Test model for using data to control a variable value @ 89d3b027e93b / model.xml

Author:
David Nickerson <nickerso@users.sourceforge.net>
Date:
2014-05-23 19:53:50+12:00
Desc:
adding a test model to use in checking the use of a dataset to control the value of a model parameter
Permanent Source URI:
https://models.physiomeproject.org/workspace/1aa/rawfile/89d3b027e93b06d0db530afa199a24483e668b91/model.xml

<?xml version="1.0"?>
<model xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#"
	xmlns:xlink="http://www.w3.org/1999/xlink" name="can_divide_model">
	<component name="model">
		<!-- this is the variable that will have its value set by the dataset -->
		<variable name="dataValue" public_interface="out" units="dimensionless" initial_value="0.0"/>
		<!-- this variable may have its value overridden -->
		<variable name="scaleFactor" public_interface="out" units="dimensionless" initial_value="1.0"/>
		<variable name="x" public_interface="out" units="dimensionless"/>
		<variable name="time" public_interface="out" units="dimensionless"/>
		<variable name="y" public_interface="out" units="dimensionless" initial_value="0.0"/>
		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply><eq/>
				<ci>x</ci>
				<apply><times/>
					<ci>scaleFactor</ci>
					<ci>dataValue</ci>
				</apply>
			</apply>
		</math>
		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply><eq/>
				<apply><diff/>
					<bvar><ci>time</ci></bvar>
					<ci>y</ci>
				</apply>
				<ci>dataValue</ci>
			</apply>
		</math>
	</component>
</model>