Location: get-library @ a7f04db437e7 / passive-flux-equation / model.xml

Author:
David Nickerson <nickerso@users.sourceforge.net>
Date:
2015-02-25 23:49:52+13:00
Desc:
adding a few more transporters and their annotations
Permanent Source URI:
https://models.cellml.org/workspace/19f/rawfile/a7f04db437e7e9944cea9151517a4c6a2c3261ac/passive-flux-equation/model.xml

<?xml version="1.0"?>
<model xmlns="http://www.cellml.org/cellml/1.1#" name="model"
	xmlns:cellml="http://www.cellml.org/cellml/1.1#" xmlns:cmeta="http://www.cellml.org/metadata/2.0#"
	cmeta:id="model" xmlns:xlink="http://www.w3.org/1999/xlink">

	<!-- import the units that we want to use -->
	<import xlink:href="../units/units-map.xml">
		<units name="potential" units_ref="potential" />
		<units name="concentration" units_ref="concentration" />
		<units name="soluteFlux" units_ref="soluteFlux" />
		<units name="permeability" units_ref="permeability" />
		<units name="current" units_ref="current" />
		<units name="membraneAreaFraction" units_ref="membraneAreaFraction" />
		<units name="cellVolumeFraction" units_ref="cellVolumeFraction" />
		<units name="hydraulicConductance" units_ref="hydraulicConductance" />
		<units name="gas_constant" units_ref="gas_constant" />
		<units name="faradays_constant" units_ref="faradays_constant" />
		<units name="temperature" units_ref="temperature" />
		<units name="time" units_ref="time" />
	</import>

	<component name="interface" cmeta:id="passiveFluxComponent">
		<variable name="J" cmeta:id="J" units="soluteFlux"
			public_interface="out" />
		<variable name="P" cmeta:id="P" units="permeability"
			public_interface="in" />
		<variable name="z" cmeta:id="z" units="dimensionless"
			public_interface="in" />
		<variable name="E" cmeta:id="E" units="potential"
			public_interface="in" />
		<variable name="F" cmeta:id="F" units="faradays_constant"
			public_interface="in" />
		<variable name="R" cmeta:id="R" units="gas_constant"
			public_interface="in" />
		<variable name="T" cmeta:id="T" units="temperature"
			public_interface="in" />
		<variable name="C1" cmeta:id="C1" units="concentration"
			public_interface="in" />
		<variable name="C2" cmeta:id="C2" units="concentration"
			public_interface="in" />
		<variable name="zeroTolerance" cmeta:id="zeroTolerance"
			initial_value="1.0e-4" units="soluteFlux" public_interface="out" />
		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply>
				<eq />
				<ci>J</ci>
				<piecewise>
					<piece>
						<apply>
							<times />
							<ci>P</ci>
							<ci>z</ci>
							<ci>E</ci>
							<apply>
								<divide />
								<ci>F</ci>
								<apply>
									<times />
									<ci>R</ci>
									<ci>T</ci>
								</apply>
							</apply>
							<apply>
								<divide />
								<apply>
									<minus />
									<ci>C1</ci>
									<apply>
										<times />
										<ci>C2</ci>
										<apply>
											<exp />
											<apply>
												<minus />
												<apply>
													<times />
													<ci>z</ci>
													<ci>E</ci>
													<apply>
														<divide />
														<ci>F</ci>
														<apply>
															<times />
															<ci>R</ci>
															<ci>T</ci>
														</apply>
													</apply>
												</apply>
											</apply>
										</apply>
									</apply>
								</apply>
								<apply>
									<minus />
									<cn cellml:units="dimensionless">1.0</cn>
									<apply>
										<exp />
										<apply>
											<minus />
											<apply>
												<times />
												<ci>z</ci>
												<ci>E</ci>
												<apply>
													<divide />
													<ci>F</ci>
													<apply>
														<times />
														<ci>R</ci>
														<ci>T</ci>
													</apply>
												</apply>
											</apply>
										</apply>
									</apply>
								</apply>
							</apply>
						</apply>
						<apply>
							<gt />
							<apply>
								<abs />
								<apply>
									<times />
									<ci>z</ci>
									<ci>E</ci>
									<apply>
										<divide />
										<ci>F</ci>
										<apply>
											<times />
											<ci>R</ci>
											<ci>T</ci>
										</apply>
									</apply>
								</apply>
							</apply>
							<ci>zeroTolerance</ci>
						</apply>
					</piece>
					<otherwise>
						<apply>
							<times />
							<ci>P</ci>
							<ci>z</ci>
							<apply>
								<divide />
								<ci>F</ci>
								<apply>
									<times />
									<ci>R</ci>
									<ci>T</ci>
								</apply>
							</apply>
							<apply>
								<minus />
								<ci>C1</ci>
								<ci>C2</ci>
							</apply>
						</apply>
					</otherwise>
				</piecewise>
			</apply>
		</math>
	</component>
</model>