26.07.2013 Views

Matematisk Model for Mavesækkens Tømning - Danmarks Tekniske ...

Matematisk Model for Mavesækkens Tømning - Danmarks Tekniske ...

Matematisk Model for Mavesækkens Tømning - Danmarks Tekniske ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

104 MATLAB kode til simulering af <strong>for</strong>søgsscenarie<br />

68 VI = par.VI; % Insulin distribution volume [L]<br />

69 VG = par.VG; % Glucose distribution volume [L]<br />

70 EGP0 = par.EGP0; % Liver glucose production at zero insulin [mmol/min]<br />

71 F01 = par.F01; % Insulin independent glucose consumption [mmol/min]<br />

72 MwG = par.MwG; % Molecular weight of glucose [g/mol]<br />

73<br />

74 gamma = par.gamma; % [kg*mU/min*pmol]<br />

75 K = par.K; % [mU/mmol]<br />

76 alpha = par.alpha; % [1/min]<br />

77 beta = par.beta; % [L*mU/min*mmol]<br />

78 Sb = par.Sb; % [mU/min]<br />

79 Gss = par.Gss; % [mmol/L]<br />

80<br />

81<br />

82 %% <strong>Model</strong><br />

83 % =========================================================================<br />

84 % CHO absorption<br />

85 % =========================================================================<br />

86 D = (1000/MwG)*d; % CHO input rate in glucose equivalents [mmol/min]<br />

87 UG1 = D1/tauD; % Glucose flux from compartment 1 to 2 [mmol/min]<br />

88 UG = D2/tauD; % Glucose flux from stomach/gut to blood [mmol/min]<br />

89 D1dot = AG*D−UG1; % Stomach/gut compartment 1 balance [mmol/min]<br />

90 D2dot = UG1−UG; % Stomach/gut compartment 2 balance [mmol/min]<br />

91<br />

92 % =========================================================================<br />

93 % Insulin infusion<br />

94 % =========================================================================<br />

95 UI = u;<br />

96<br />

97 % =========================================================================<br />

98 % Glucose subsystem<br />

99 % =========================================================================<br />

100 G = Q1/VG; % Plasma glucose concentration [mmol/L]<br />

101<br />

102 % Non−insulin dependent glucose consumption [mmol/min]<br />

103 if G ≥ 4.5<br />

104 F01c = F01;<br />

105 else<br />

106 F01c = F01*G/4.5;<br />

107 end<br />

108<br />

109 % Renal glucose excretion [mmol/min]<br />

110 if G ≥ 9.0<br />

111 FR = 0.003*(G−9.0)*VG;<br />

112 else<br />

113 FR = 0.0;<br />

114 end<br />

115<br />

116 % Mass balances <strong>for</strong> the two glucose compartments<br />

117 Q12 = x1*Q1; % Glucose transport/distrubtion [mmol/min]<br />

118 Q21 = k12*Q2; % Glucose transport distribution [mmol/min]<br />

119 Q2out = x2*Q2; % Glucose disposal in adipose tissue [mmol/min]<br />

120 EGP = EGP0*(1.0−x3); % Endogenous Glucose Production [mmol/min]<br />

121<br />

122 Q1dot = UG + ug − F01c − FR − Q12 + Q21 + EGP; % Compartment 1 [mmol/min]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!