Location: Guyton, Electrolytes, 2008 @ 8cdbb38d4684 / electrolytes.cellml

Author:
jonna <devnull@localhost>
Date:
2009-07-16 14:53:12+12:00
Desc:
Added General Files. Changed links of dependencies so can open from web-browser. Added RDF metadata for citation and keywords, removed publication link from documentation.
Permanent Source URI:
https://models.physiomeproject.org/workspace/guyton_electrolytes_2008/rawfile/8cdbb38d46840e2bb23d7997decd944d3e7c301c/electrolytes.cellml

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

	<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
		<rdf:Description rdf:about="#electrolytes_model">
			<rdf:value>
			Extracellular and intracellular fluid electrolytes and volumes.
			</rdf:value>
		</rdf:Description>
	</rdf:RDF>

<!-- =============================================	Import the required units from the Units file	==================================================== -->
	<import xlink:href="units.cellml">
		<units name="minute" units_ref="minute"/>
		<units name="per_minute" units_ref="per_minute"/>
		<units name="beats_per_minute" units_ref="beats_per_minute"/>
		<units name="beats_per_minute_per_mmHg" units_ref="beats_per_minute_per_mmHg"/>
		<units name="minute_per_L" units_ref="minute_per_L"/>
		<units name="mmHg" units_ref="mmHg"/>
		<units name="per_mmHg" units_ref="per_mmHg"/>
		<units name="mmHg_per_mL" units_ref="mmHg_per_mL"/>
		<units name="mmHg_L" units_ref="mmHg_L"/>
		<units name="per_mmHg2" units_ref="per_mmHg2"/>
		<units name="mmHg3" units_ref="mmHg3"/>
		<units name="monovalent_mEq" units_ref="monovalent_mEq"/>
		<units name="monovalent_mEq_per_minute" units_ref="monovalent_mEq_per_minute"/>
		<units name="monovalent_mEq_per_litre" units_ref="monovalent_mEq_per_litre"/>
		<units name="mOsm" units_ref="mOsm"/>
		<units name="mOsm_per_litre" units_ref="mOsm_per_litre"/>
		<units name="mOsm_per_minute" units_ref="mOsm_per_minute"/>
		<units name="monovalent_mEq_per_litre_per_minute" units_ref="monovalent_mEq_per_litre_per_minute"/>
		<units name="litre2_per_monovalent_mEq_per_minute" units_ref="litre2_per_monovalent_mEq_per_minute"/>
		<units name="L_per_minute" units_ref="L_per_minute"/>
		<units name="per_mmHg_per_minute" units_ref="per_mmHg_per_minute"/>
		<units name="mL" units_ref="mL"/>
		<units name="gram_per_L" units_ref="gram_per_L"/>
		<units name="L_mmHg_per_gram" units_ref="L_mmHg_per_gram"/>
		<units name="L2_mmHg_per_gram2" units_ref="L2_mmHg_per_gram2"/>
		<units name="mmHg_minute_per_L" units_ref="mmHg_minute_per_L"/>
		<units name="mmHg_L_per_minute" units_ref="mmHg_L_per_minute"/>
		<units name="gram_per_minute" units_ref="gram_per_minute"/>
		<units name="mL_per_L" units_ref="mL_per_L"/>
		<units name="mL_per_L_per_mmHg" units_ref="mL_per_L_per_mmHg"/>
		<units name="mL_per_L_per_minute" units_ref="mL_per_L_per_minute"/>
		<units name="mL_per_minute_per_mmHg" units_ref="mL_per_minute_per_mmHg"/>
		<units name="L_mL_per_minute_per_mmHg" units_ref="L_mL_per_minute_per_mmHg"/>
		<units name="L_per_mL" units_ref="L_per_mL"/>
		<units name="L_per_mmHg" units_ref="L_per_mmHg"/>
		<units name="mL_per_minute" units_ref="mL_per_minute"/>
		<units name="L_per_minute_per_mmHg" units_ref="L_per_minute_per_mmHg"/>
		<units name="L_per_minute_per_mmHg2" units_ref="L_per_minute_per_mmHg2"/>
	</import>

<!-- =====================================	Import all Parameters and State Variables from the Parameter file	============================================== -->
	<import xlink:href="parameters.cellml">
		<component component_ref="parameter_values" name="parameter_values"/>
		<component component_ref="state_variables" name="state_variables"/>
	</import>


<!-- ========================================	ELECTROLYTES TOP-LEVEL COMPONENT	============================================= -->
	<component 	name="electrolytes" 
				cmeta:id="electrolytes">
		<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
			<rdf:Description rdf:about="#electrolytes">
				<rdf:value>
				Encapsulation grouping component containing all the components in the Electrolytes Model. The inputs and 
				outputs of the Electrolytes Model must be passed by this component.
				</rdf:value>
			</rdf:Description>
		</rdf:RDF>

		<variable name="time"	units="minute"	private_interface="out" public_interface="in"/>

<!-- Inputs from components in other models -->
		<variable name="AMK"	units="dimensionless" private_interface="out" public_interface="in"/>
		<variable name="TVD"	units="L_per_minute" private_interface="out" public_interface="in"/>
		<variable name="NOD"	units="monovalent_mEq_per_minute" private_interface="out" public_interface="in"/>
		<variable name="STH"	units="dimensionless" private_interface="out" public_interface="in"/>
		<variable name="KOD"	units="monovalent_mEq_per_minute" private_interface="out" public_interface="in"/>
		<variable name="VUD"	units="L_per_minute" private_interface="out" public_interface="in"/>

<!-- Outputs to components in other models -->
		<variable name="CKE" 	units="monovalent_mEq_per_litre" private_interface="in" public_interface="out"/>
		<variable name="VEC" 	units="litre" private_interface="in" public_interface="out"/>
		<variable name="CNA" 	units="monovalent_mEq_per_litre" private_interface="in" public_interface="out"/>
		<variable name="VTW" 	units="litre" private_interface="in" public_interface="out"/>
	</component>

<!-- OUTPUT CONNECTIONS -->
<!--	<connection>
		<map_components component_1="electrolytes" component_2="extracellular_K_concentration"/>
		<map_variables variable_1="CKE" variable_2="CKE"/>
	</connection> -->
	<connection>
		<map_components component_1="electrolytes" component_2="extracellular_fluid_volume"/>
		<map_variables variable_1="VEC" variable_2="VEC"/>
	</connection>
<!--	<connection>
		<map_components component_1="electrolytes" component_2="extracellular_Na_concentration"/>
		<map_variables variable_1="CNA" variable_2="CNA"/>
	</connection> -->
<!--	<connection>
		<map_components component_1="electrolytes" component_2="total_body_water"/>
		<map_variables variable_1="VTW" variable_2="VTW"/>
	</connection> -->

<!-- ========================================	EXTRACELLULAR SODIUM CONCENTRATION		============================================= -->
	<component 	name="extracellular_Na_concentration" 
				cmeta:id="extracellular_Na_concentration">
		<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
			<rdf:Description rdf:about="#extracellular_Na_concentration">
				<rdf:value>
				EL1, EL2, and EL3:  
				The rate of intake of sodium (NAINT) is equal to the normal rate of sodium intake (NID) 
				times a salt appetite multiplier factor (STH).  The rate of change of sodium in the 
				extracellular fluid (NED) is equal to the rate of intake of sodium (NAINT), minus the 
				rate of excretion of sodium in the urine (NOD), plus sodium entering the body in 
				transfused plasma (TRPL).

				EL4:  
				The instantaneous quantity of sodium in the extracellular fluid (NAE) is calculated 
				by integrating with respect to time the rate of change of sodium in the 
				extracellular fluid (NED).

				EL5:  
				The concentration of sodium in the extracellular fluid (CNA) is equal to the quantity 
				of sodium in the extracellular fluid (NAE) divided by the extracellular fluid volume (VEC).
				</rdf:value>
			</rdf:Description>
			<rdf:Description rdf:about="#EL1_to_EL3">
				<rdf:value>
				EL1, EL2, and EL3:  
				The rate of intake of sodium (NAINT) is equal to the normal rate of sodium intake (NID) 
				times a salt appetite multiplier factor (STH).  The rate of change of sodium in the 
				extracellular fluid (NED) is equal to the rate of intake of sodium (NAINT), minus the 
				rate of excretion of sodium in the urine (NOD), plus sodium entering the body in 
				transfused plasma (TRPL).
				</rdf:value>
			</rdf:Description>
			<rdf:Description rdf:about="#EL4">
				<rdf:value>
				EL4:  
				The instantaneous quantity of sodium in the extracellular fluid (NAE) is calculated 
				by integrating with respect to time the rate of change of sodium in the 
				extracellular fluid (NED).
				</rdf:value>
			</rdf:Description>
			<rdf:Description rdf:about="#EL5">
				<rdf:value>
				EL5:  
				The concentration of sodium in the extracellular fluid (CNA) is equal to the quantity 
				of sodium in the extracellular fluid (NAE) divided by the extracellular fluid volume (VEC).
				</rdf:value>
			</rdf:Description>
		</rdf:RDF>
		
<!-- Inputs from other components -->
		<variable name="STH"	units="dimensionless" private_interface="none" public_interface="in"/>
		<variable name="NOD"	units="monovalent_mEq_per_minute" private_interface="none" public_interface="in"/>
		<variable name="VEC"	units="litre" private_interface="none" public_interface="in"/>
		<variable name="NAE_init"	units="monovalent_mEq" private_interface="none" public_interface="in"/>
		<variable name="time"	units="minute" private_interface="none" public_interface="in"/>

<!-- Outputs to other components -->
		<variable name="CNA" 	units="monovalent_mEq_per_litre" private_interface="none" public_interface="out"/>

<!-- Parameters from parameter_file -->
		<variable name="NID"	units="monovalent_mEq_per_minute" private_interface="none" public_interface="in"/>
		<variable name="TRPL"	units="L_per_minute" private_interface="none" public_interface="in"/>

<!-- Internal variables -->
		<variable name="NED"	units="monovalent_mEq_per_minute" private_interface="none" public_interface="none"/>
		<variable name="NAE"	initial_value="NAE_init"	units="monovalent_mEq" private_interface="none" public_interface="none"/>

		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply id="EL1_to_EL3">
				<eq/>
				<ci>NED</ci>
				<apply>
					<plus/>
					<apply>
						<minus/>
						<apply>
							<times/>
							<ci>NID</ci>
							<ci>STH</ci>
						</apply>
						<ci>NOD</ci>
					</apply>
					<apply>
						<times/>
						<ci>TRPL</ci>
						<cn cellml:units="monovalent_mEq_per_litre">142</cn>
					</apply>
				</apply>
			</apply>
			<apply id="EL4">
				<eq/>
				<apply>
					<diff/>
					<bvar>
						<ci>time</ci>
					</bvar>
					<ci>NAE</ci>
				</apply>
				<ci>NED</ci>
			</apply>
			<apply id="EL5">
				<eq/>
				<ci>CNA</ci>
				<apply>
					<divide/>
					<ci>NAE</ci>
					<ci>VEC</ci>
				</apply>
			</apply>
		</math>
	</component>

<!-- STATE VARIABLES INITIAL VALUE -->
	<connection>
		<map_components component_1="extracellular_Na_concentration" component_2="state_variables"/>
		<map_variables variable_1="NAE_init" variable_2="NAE_init"/>
	</connection>

<!-- INPUT CONNECTIONS -->
	<connection>
		<map_components component_1="extracellular_Na_concentration" component_2="electrolytes"/>
		<map_variables variable_1="CNA" variable_2="CNA"/>
		<map_variables variable_1="STH" variable_2="STH"/>
		<map_variables variable_1="NOD" variable_2="NOD"/>
		<map_variables variable_1="time" variable_2="time"/>
	</connection>
	<connection>
		<map_components component_1="extracellular_Na_concentration" component_2="extracellular_fluid_volume"/>
		<map_variables variable_1="VEC" variable_2="VEC"/>
	</connection>

<!-- PARAMETER CONNECTIONS -->
	<connection>
		<map_components component_1="extracellular_Na_concentration" component_2="parameter_values"/>
		<map_variables variable_1="TRPL" variable_2="TRPL"/>
		<map_variables variable_1="NID" variable_2="NID"/>
	</connection>

<!-- ==================================	ALDOSTERONE EFFECT ON CELLULAR POTASSIUM DISTRIBUTION	===================================== -->
	<component 	name="aldosterone_effect_on_cellular_K_distribution" 
				cmeta:id="aldosterone_effect_on_cellular_K_distribution">
		<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
			<rdf:Description rdf:about="#aldosterone_effect_on_cellular_K_distribution">
				<rdf:value>
				EL9, EL10, and EL11:  
				Calculation of an aldosterone multiplier factor for the effect of aldosterone (AMK) 
				on the distribution of potassium across the cell membranes.  The variable (ALCLK) is 
				a sensitivity control for adjusting the effect of the aldosterone on the cellular 
				membrane distribution relationship of potassium on the two sides of the cell membranes.
				</rdf:value>
			</rdf:Description>
			<rdf:Description rdf:about="#EL9_to_EL11">
				<rdf:value>
				EL9, EL10, and EL11:  
				Calculation of an aldosterone multiplier factor for the effect of aldosterone (AMK) 
				on the distribution of potassium across the cell membranes.  The variable (ALCLK) is 
				a sensitivity control for adjusting the effect of the aldosterone on the cellular 
				membrane distribution relationship of potassium on the two sides of the cell membranes.
				</rdf:value>
			</rdf:Description>
		</rdf:RDF>
		
<!-- Inputs from other components -->
		<variable name="AMK"	units="dimensionless" private_interface="none" public_interface="in"/>

<!-- Outputs to other components -->
		<variable name="AMK1" 	units="dimensionless" private_interface="none" public_interface="out"/>

<!-- Parameters from parameter_file -->
		<variable name="ALCLK"	units="dimensionless" private_interface="none" public_interface="in"/>

		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply id="EL9_to_EL11">
				<eq/>
				<ci>AMK1</ci>
				<apply>
					<plus/>
					<apply>
						<times/>
						<apply>
							<minus/>
							<ci>AMK</ci>
							<cn cellml:units="dimensionless">1</cn>
						</apply>
						<ci>ALCLK</ci>
					</apply>
					<cn cellml:units="dimensionless">1</cn>
				</apply>
			</apply>
		</math>
	</component>

<!-- INPUT CONNECTIONS -->
	<connection>
		<map_components component_1="aldosterone_effect_on_cellular_K_distribution" component_2="electrolytes"/>
		<map_variables variable_1="AMK" variable_2="AMK"/>
	</connection>

<!-- PARAMETER CONNECTIONS -->
	<connection>
		<map_components component_1="aldosterone_effect_on_cellular_K_distribution" component_2="parameter_values"/>
		<map_variables variable_1="ALCLK" variable_2="ALCLK"/>
	</connection>

<!-- ========================================	EXTRACELLULAR POTASSIUM CONCENTRATION	============================================= -->
	<component 	name="extracellular_K_concentration" 
				cmeta:id="extracellular_K_concentration">
		<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
			<rdf:Description rdf:about="#extracellular_K_concentration">
				<rdf:value>
				EL6:  
				The rate of change of the total quantity of potassium in all of the body fluids (KTOTD) 
				is equal to the rate of intake of potassium (KID) minus the rate of excretion of
				potassium in the urine (KOD).

				EL7:  
				The total quantity of potassium in all the body fluids at any given time (KTOT) 
				is calculated by integrating with respect to time the rate of change of the potassium 
				in all of the body fluids (KTOTD).

				EL7A:  
				Calculation of the freely mobile potassium in the body (approximately 616) by 
				subtracting the relatively fixed potassium in all the cells of the body 
				(approximately 3000) from the total potassium of the body (KTOT).

				EL7B:  
				Calculation of the total potassium in the extracellular fluid of the body (KE) by 
				dividing the total freely mobile calcium from Block EL7A by a constant factor of 
				9.3333 (which is a distribution relationship of the freely mobile potassium between 
				the intracellular and extracellular fluid), and divided by a factor from Block EL11 
				that determines the activity of aldosterone on the distribution relationship of 
				potassium across the cell membranes.

				EL8:  
				The concentration of potassium in the extracellular fluid (CKE) is equal to the 
				quantity of potassium in the extracellular fluid (KE) divided by the volume of 
				extracellular fluid (VEC).
				</rdf:value>
			</rdf:Description>
			<rdf:Description rdf:about="#EL6">
				<rdf:value>
				EL6:  
				The rate of change of the total quantity of potassium in all of the body fluids (KTOTD) 
				is equal to the rate of intake of potassium (KID) minus the rate of excretion of
				potassium in the urine (KOD).
				</rdf:value>
			</rdf:Description>
			<rdf:Description rdf:about="#EL7">
				<rdf:value>
				EL7:  
				The total quantity of potassium in all the body fluids at any given time (KTOT) 
				is calculated by integrating with respect to time the rate of change of the potassium 
				in all of the body fluids (KTOTD).
				</rdf:value>
			</rdf:Description>
			<rdf:Description rdf:about="#EL7A_and_EL7B">
				<rdf:value>
				EL7A:  
				Calculation of the freely mobile potassium in the body (approximately 616) by 
				subtracting the relatively fixed potassium in all the cells of the body 
				(approximately 3000) from the total potassium of the body (KTOT).

				EL7B:  
				Calculation of the total potassium in the extracellular fluid of the body (KE) by 
				dividing the total freely mobile calcium from Block EL7A by a constant factor of 
				9.3333 (which is a distribution relationship of the freely mobile potassium between 
				the intracellular and extracellular fluid), and divided by a factor from Block EL11 
				that determines the activity of aldosterone on the distribution relationship of 
				potassium across the cell membranes.
				</rdf:value>
			</rdf:Description>
			<rdf:Description rdf:about="#EL8">
				<rdf:value>
				EL8:  
				The concentration of potassium in the extracellular fluid (CKE) is equal to the 
				quantity of potassium in the extracellular fluid (KE) divided by the volume of 
				extracellular fluid (VEC).
				</rdf:value>
			</rdf:Description>
		</rdf:RDF>
		
<!-- Inputs from other components -->
		<variable name="KOD"	units="monovalent_mEq_per_minute" private_interface="none" public_interface="in"/>
		<variable name="AMK1"	units="dimensionless" private_interface="none" public_interface="in"/>
		<variable name="VEC"	units="litre" private_interface="none" public_interface="in"/>
		<variable name="KTOT_init"	units="monovalent_mEq" private_interface="none" public_interface="in"/>
		<variable name="time"	units="minute" private_interface="none" public_interface="in"/>

<!-- Outputs to other components -->
		<variable	cmeta:id="extracellular_K_concentration_CKE"
					name="CKE" 	units="monovalent_mEq_per_litre" private_interface="none" public_interface="out"/>
		<variable name="KE" 	units="monovalent_mEq" private_interface="none" public_interface="out"/>
		<variable name="KTOT" 	initial_value="KTOT_init"	units="monovalent_mEq" private_interface="none" public_interface="out"/>

<!-- Parameters from parameter_file -->
		<variable name="KID"	units="monovalent_mEq_per_minute" private_interface="none" public_interface="in"/>

<!-- Internal variables -->
		<variable name="KTOTD"	units="monovalent_mEq_per_minute" private_interface="none" public_interface="none"/>

		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply id="EL6">
				<eq/>
				<ci>KTOTD</ci>
				<apply>
					<minus/>
					<ci>KID</ci>
					<ci>KOD</ci>
				</apply>
			</apply>
			<apply id="EL7">
				<eq/>
				<apply>
					<diff/>
					<bvar>
						<ci>time</ci>
					</bvar>
					<ci>KTOT</ci>
				</apply>
				<ci>KTOTD</ci>
			</apply>
			<apply id="EL7A_and_EL7B">
				<eq/>
				<ci>KE</ci>
				<apply>
					<divide/>
					<apply>
						<minus/>
						<ci>KTOT</ci>
						<cn cellml:units="monovalent_mEq">3000</cn>
					</apply>
					<apply>
						<times/>
						<ci>AMK1</ci>
						<cn cellml:units="dimensionless">9.3333</cn>
					</apply>
				</apply>
			</apply>
			<apply id="EL8">
				<eq/>
				<ci>CKE</ci>
				<apply>
					<divide/>
					<ci>KE</ci>
					<ci>VEC</ci>
				</apply>
			</apply>
		</math>
	</component>

<!-- STATE VARIABLES INITIAL VALUE -->
	<connection>
		<map_components component_1="extracellular_K_concentration" component_2="state_variables"/>
		<map_variables variable_1="KTOT_init" variable_2="KTOT_init"/>
	</connection>

<!-- INPUT CONNECTIONS -->
	<connection>
		<map_components component_1="extracellular_K_concentration" component_2="electrolytes"/>
		<map_variables variable_1="CKE" variable_2="CKE"/>
		<map_variables variable_1="KOD" variable_2="KOD"/>
		<map_variables variable_1="time" variable_2="time"/>
	</connection>
	<connection>
		<map_components component_1="extracellular_K_concentration" component_2="aldosterone_effect_on_cellular_K_distribution"/>
		<map_variables variable_1="AMK1" variable_2="AMK1"/>
	</connection>
	<connection>
		<map_components component_1="extracellular_K_concentration" component_2="extracellular_fluid_volume"/>
		<map_variables variable_1="VEC" variable_2="VEC"/>
	</connection>

<!-- PARAMETER CONNECTIONS -->
	<connection>
		<map_components component_1="extracellular_K_concentration" component_2="parameter_values"/>
		<map_variables variable_1="KID" variable_2="KID"/>
	</connection>

<!-- ========================================	INTRACELLULAR POTASSIUM CONCENTRATION	============================================= -->
	<component 	name="intracellular_K_concentration" 
				cmeta:id="intracellular_K_concentration">
		<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
			<rdf:Description rdf:about="#intracellular_K_concentration">
				<rdf:value>
				EL12:  
				Calculation of the total potassium inside all the cells of the body (KI) by 
				subtracting the potassium in the extracellular fluids (KE) from the total potassium 
				in the body (KTOT).

				EL13:  
				Calculation of the concentration of potassium inside the cells of the body (CKI) 
				by dividing the total potassium inside all the cells (KI) by the volume of fluid 
				inside all the cells (VIC).
				</rdf:value>
			</rdf:Description>
			<rdf:Description rdf:about="#EL12">
				<rdf:value>
				EL12:  
				Calculation of the total potassium inside all the cells of the body (KI) by 
				subtracting the potassium in the extracellular fluids (KE) from the total potassium 
				in the body (KTOT).
				</rdf:value>
			</rdf:Description>
			<rdf:Description rdf:about="#EL13">
				<rdf:value>
				EL13:  
				Calculation of the concentration of potassium inside the cells of the body (CKI) 
				by dividing the total potassium inside all the cells (KI) by the volume of fluid 
				inside all the cells (VIC).
				</rdf:value>
			</rdf:Description>
		</rdf:RDF>
		
<!-- Inputs from other components -->
		<variable name="KTOT"	units="monovalent_mEq" private_interface="none" public_interface="in"/>
		<variable name="KE"	units="monovalent_mEq" private_interface="none" public_interface="in"/>
		<variable name="VIC"	units="litre" private_interface="none" public_interface="in"/>

<!-- Outputs to other components -->
		<variable name="CKI" 	units="monovalent_mEq_per_litre" private_interface="none" public_interface="out"/>

<!-- Internal variables -->
		<variable name="KI"	units="monovalent_mEq" private_interface="none" public_interface="none"/>

		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply id="EL12">
				<eq/>
				<ci>KI</ci>
				<apply>
					<minus/>
					<ci>KTOT</ci>
					<ci>KE</ci>
				</apply>
			</apply>
			<apply id="EL13">
				<eq/>
				<ci>CKI</ci>
				<apply>
					<divide/>
					<ci>KI</ci>
					<ci>VIC</ci>
				</apply>
			</apply>
		</math>
	</component>

<!-- INPUT CONNECTIONS -->
	<connection>
		<map_components component_1="intracellular_K_concentration" component_2="extracellular_K_concentration"/>
		<map_variables variable_1="KTOT" variable_2="KTOT"/>
		<map_variables variable_1="KE" variable_2="KE"/>
	</connection>
	<connection>
		<map_components component_1="intracellular_K_concentration" component_2="intracellular_fluid_volume"/>
		<map_variables variable_1="VIC" variable_2="VIC"/>
		<map_variables variable_1="CKI" variable_2="CKI"/>
	</connection>

<!-- ========================================	INTRACELLULAR FLUID VOLUME	============================================= -->
	<component 	name="intracellular_fluid_volume" 
				cmeta:id="intracellular_fluid_volume">
		<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
			<rdf:Description rdf:about="#intracellular_fluid_volume">
				<rdf:value>
				EL14 and EL15:  
				Calculation of the rate of change of volume inside all the cells of the body (VID) 
				caused in Block EL14 by differences in osmotic effect of sodium concentration (CNA) 
				outside the cells and potassium concentration (CKI) inside the cells.  The rate of 
				transfer of this fluid (VID) is determined by a proportionality factor (VIDML).

				EL16:  
				Calculation of the changing level of intracellular fluid volume in the entire body (VIC) 
				by integrating the rate of change of this fluid volume (VID).
				</rdf:value>
			</rdf:Description>
			<rdf:Description rdf:about="#EL14">
				<rdf:value>
				EL14 and EL15:  
				Calculation of the rate of change of volume inside all the cells of the body (VID) 
				caused in Block EL14 by differences in osmotic effect of sodium concentration (CNA) 
				outside the cells and potassium concentration (CKI) inside the cells.  The rate of 
				transfer of this fluid (VID) is determined by a proportionality factor (VIDML).
				</rdf:value>
			</rdf:Description>
			<rdf:Description rdf:about="#EL15">
				<rdf:value>
				EL14 and EL15:  
				Calculation of the rate of change of volume inside all the cells of the body (VID) 
				caused in Block EL14 by differences in osmotic effect of sodium concentration (CNA) 
				outside the cells and potassium concentration (CKI) inside the cells.  The rate of 
				transfer of this fluid (VID) is determined by a proportionality factor (VIDML).
				</rdf:value>
			</rdf:Description>
			<rdf:Description rdf:about="#EL16">
				<rdf:value>
				EL16:  
				Calculation of the changing level of intracellular fluid volume in the entire body (VIC) 
				by integrating the rate of change of this fluid volume (VID).
				</rdf:value>
			</rdf:Description>
		</rdf:RDF>
		
<!-- Inputs from other components -->
		<variable name="CNA"	units="monovalent_mEq_per_litre" private_interface="none" public_interface="in"/>
		<variable name="CKI"	units="monovalent_mEq_per_litre" private_interface="none" public_interface="in"/>
		<variable name="VIC_init"	units="litre" private_interface="none" public_interface="in"/>
		<variable name="time"	units="minute" private_interface="none" public_interface="in"/>

<!-- Outputs to other components -->
		<variable name="VIC" 	initial_value="VIC_init"	units="litre" private_interface="none" public_interface="out"/>
		<variable	cmeta:id="intracellular_fluid_volume_VID"
					name="VID" 	units="L_per_minute" private_interface="none" public_interface="out"/>

<!-- Parameters from parameter_file -->
		<variable name="VIDML"	units="litre2_per_monovalent_mEq_per_minute" private_interface="none" public_interface="in"/>

<!-- Internal variables -->
		<variable name="CCD"	units="monovalent_mEq_per_litre" private_interface="none" public_interface="none"/>

		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply id="EL14">
				<eq/>
				<ci>CCD</ci>
				<apply>
					<minus/>
					<ci>CKI</ci>
					<ci>CNA</ci>
				</apply>
			</apply>
			<apply id="EL15">
				<eq/>
				<ci>VID</ci>
				<apply>
					<times/>
					<ci>CCD</ci>
					<ci>VIDML</ci>
				</apply>
			</apply>
			<apply id="EL16">
				<eq/>
				<apply>
					<diff/>
					<bvar>
						<ci>time</ci>
					</bvar>
					<ci>VIC</ci>
				</apply>
				<ci>VID</ci>
			</apply>
		</math>
	</component>

<!-- STATE VARIABLES INITIAL VALUE -->
	<connection>
		<map_components component_1="intracellular_fluid_volume" component_2="state_variables"/>
		<map_variables variable_1="VIC_init" variable_2="VIC_init"/>
	</connection>

<!-- INPUT CONNECTIONS -->
	<connection>
		<map_components component_1="intracellular_fluid_volume" component_2="extracellular_Na_concentration"/>
		<map_variables variable_1="CNA" variable_2="CNA"/>
	</connection>
	<connection>
		<map_components component_1="intracellular_fluid_volume" component_2="electrolytes"/>
		<map_variables variable_1="time" variable_2="time"/>
	</connection>

<!-- PARAMETER CONNECTIONS -->
	<connection>
		<map_components component_1="intracellular_fluid_volume" component_2="parameter_values"/>
		<map_variables variable_1="VIDML" variable_2="VIDML"/>
	</connection>

<!-- ========================================	TOTAL BODY WATER	============================================= -->
	<component 	name="total_body_water" 
				cmeta:id="total_body_water">
		<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
			<rdf:Description rdf:about="#total_body_water">
				<rdf:value>
				EL17:  
				The rate of change of total volume of water in the body (DVTW) is equal to the 
				rate of intake of water (TVD) minus the rate of output of water in the urine (VUD).

				EL18:  
				The total volume of water in the body at any given instant (VTW) is determined 
				by integrating with respect times the rate of change of total water volume (DVTW).
				</rdf:value>
			</rdf:Description>
			<rdf:Description rdf:about="#EL17_and_EL18">
				<rdf:value>
				EL17:  
				The rate of change of total volume of water in the body (DVTW) is equal to the 
				rate of intake of water (TVD) minus the rate of output of water in the urine (VUD).

				EL18:  
				The total volume of water in the body at any given instant (VTW) is determined 
				by integrating with respect times the rate of change of total water volume (DVTW).
				</rdf:value>
			</rdf:Description>
		</rdf:RDF>
		
<!-- Inputs from other components -->
		<variable name="TVD"	units="L_per_minute" private_interface="none" public_interface="in"/>
		<variable name="VUD"	units="L_per_minute" private_interface="none" public_interface="in"/>
		<variable name="VTW_init"	units="litre" private_interface="none" public_interface="in"/>
		<variable name="time"	units="minute" private_interface="none" public_interface="in"/>

<!-- Outputs to other components -->
		<variable name="VTW" 	initial_value="VTW_init"	units="litre" private_interface="none" public_interface="out"/>

		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply id="EL17_and_EL18">
				<eq/>
				<apply>
					<diff/>
					<bvar>
						<ci>time</ci>
					</bvar>
					<ci>VTW</ci>
				</apply>
				<apply>
					<minus/>
					<ci>TVD</ci>
					<ci>VUD</ci>
				</apply>
			</apply>
		</math>
	</component>

<!-- STATE VARIABLES INITIAL VALUE -->
	<connection>
		<map_components component_1="total_body_water" component_2="state_variables"/>
		<map_variables variable_1="VTW_init" variable_2="VTW_init"/>
	</connection>

<!-- INPUT CONNECTIONS -->
	<connection>
		<map_components component_1="total_body_water" component_2="electrolytes"/>
		<map_variables variable_1="VTW" variable_2="VTW"/>
		<map_variables variable_1="TVD" variable_2="TVD"/>
		<map_variables variable_1="VUD" variable_2="VUD"/>
		<map_variables variable_1="time" variable_2="time"/>
	</connection>

<!-- ========================================	EXTRACELLULAR FLUID VOLUME	============================================= -->
	<component 	name="extracellular_fluid_volume" 
				cmeta:id="extracellular_fluid_volume">
		<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
			<rdf:Description rdf:about="#extracellular_fluid_volume">
				<rdf:value>
				EL19:  
				The extracellular fluid volume (VEC) is equal to the total volume of water in the 
				body (VTW) minus the total volume of water inside all of the cells of the body (VIC).
				</rdf:value>
			</rdf:Description>
			<rdf:Description rdf:about="#EL19">
				<rdf:value>
				EL19:  
				The extracellular fluid volume (VEC) is equal to the total volume of water in the 
				body (VTW) minus the total volume of water inside all of the cells of the body (VIC).
				</rdf:value>
			</rdf:Description>
		</rdf:RDF>
		
<!-- Inputs from other components -->
		<variable name="VIC"	units="litre" private_interface="none" public_interface="in"/>
		<variable name="VTW"	units="litre" private_interface="none" public_interface="in"/>

<!-- Outputs to other components -->
		<variable	cmeta:id="extracellular_fluid_volume_VEC"
					name="VEC" 	units="litre" private_interface="none" public_interface="out"/>

		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply id="EL19">
				<eq/>
				<ci>VEC</ci>
				<apply>
					<minus/>
					<ci>VTW</ci>
					<ci>VIC</ci>
				</apply>
			</apply>
		</math>
	</component>

<!-- INPUT CONNECTIONS -->
	<connection>
		<map_components component_1="extracellular_fluid_volume" component_2="intracellular_fluid_volume"/>
		<map_variables variable_1="VIC" variable_2="VIC"/>
	</connection>
	<connection>
		<map_components component_1="extracellular_fluid_volume" component_2="total_body_water"/>
		<map_variables variable_1="VTW" variable_2="VTW"/>
	</connection>

	
<!-- ============================================================		GROUPING		=============================================================== -->

   <group>
		<relationship_ref relationship="containment"/>
		<component_ref component="electrolytes">
			<component_ref component="extracellular_Na_concentration"/>
			<component_ref component="aldosterone_effect_on_cellular_K_distribution"/>
			<component_ref component="extracellular_K_concentration"/>
			<component_ref component="intracellular_K_concentration"/>
			<component_ref component="intracellular_fluid_volume"/>
			<component_ref component="total_body_water"/>
			<component_ref component="extracellular_fluid_volume"/>
		</component_ref>
   </group>
      
   <group>
      <relationship_ref relationship="encapsulation"/>
		<component_ref component="electrolytes">
			<component_ref component="parameter_values"/>
			<component_ref component="state_variables"/>
			<component_ref component="extracellular_Na_concentration"/>
			<component_ref component="aldosterone_effect_on_cellular_K_distribution"/>
			<component_ref component="extracellular_K_concentration"/>
			<component_ref component="intracellular_K_concentration"/>
			<component_ref component="intracellular_fluid_volume"/>
			<component_ref component="total_body_water"/>
			<component_ref component="extracellular_fluid_volume"/>
      </component_ref>
   </group>
   
</model>