Ticket #40436: patch-Drosophila-python.em.diff
File patch-Drosophila-python.em.diff, 5.7 KB (added by ynaito@…, 11 years ago) |
---|
-
./doc/samples/Drosophila/Drosophila-python.em
old new 4 4 5 5 @{ 6 6 VOLUME = 1e-18 7 N_A = 6.02 e+237 N_A = 6.0221367e+23 8 8 } 9 9 10 10 Stepper ODEStepper( DE ) … … 28 28 StepperID DE; 29 29 30 30 Variable Variable( SIZE ) 31 32 33 31 { 32 Value @(VOLUME); 33 } 34 34 35 35 Variable Variable( M ) 36 36 { … … 59 59 60 60 Process PythonProcess( R_toy1 ) 61 61 { 62 IsContinuous 1; 63 InitializeMethod "vs = 0.76; KI = 1;"; 64 FireMethod "self.Flux = ( (vs*KI) / (KI + (C0.variable.MolarConc * C0.variable.MolarConc * C0.variable.MolarConc) ) * self.superSystem.SizeN_A )"; 65 66 VariableReferenceList [ P0 Variable:.:M 1 ] [ C0 Variable:.:Pn ]; 62 IsContinuous 1; 63 VariableReferenceList 64 [ P0 Variable:.:M 1 ] 65 [ C0 Variable:.:Pn 0 ]; 66 67 InitializeMethod ''' 68 vs = 0.76 69 KI = 1.0 70 vC0 = C0.variable 71 '''; 72 73 FireMethod ''' 74 CC0 = vC0.MolarConc 75 self.Flux = ( vs * KI ) / ( KI + ( CC0 * CC0 * CC0 )) * self.superSystem.SizeN_A 76 '''; 67 77 } 68 78 69 79 Process PythonProcess( R_toy2 ) 70 80 { 71 IsContinuous 1; 72 InitializeMethod "vm = 0.65; Km = 0.5;"; 73 FireMethod "self.Flux = ( (vm * S0.variable.MolarConc) / ( Km + S0.variable.MolarConc) * self.superSystem.SizeN_A )"; 81 IsContinuous 1; 82 VariableReferenceList 83 [ S0 Variable:.:M -1 ]; 84 85 InitializeMethod ''' 86 vm = 0.65 87 Km = 0.5 88 vS0 = S0.variable 89 '''; 90 91 FireMethod ''' 92 self.Flux = ( vm * vS0.Value ) / ( Km + vS0.MolarConc ) 93 '''; 74 94 75 VariableReferenceList [ S0 Variable:.:M -1 ];76 95 } 77 96 78 97 Process PythonProcess( R_toy3 ) 79 98 { 80 IsContinuous 1; 81 InitializeMethod "Ks = 0.38;"; 82 FireMethod "self.Flux = ( (Ks * C0.variable.MolarConc) * self.superSystem.SizeN_A )"; 99 IsContinuous 1; 100 VariableReferenceList 101 [ P0 Variable:.:P0 1 ] 102 [ C0 Variable:.:M 0 ]; 103 104 InitializeMethod ''' 105 Ks = 0.38 106 vC0 = C0.variable 107 '''; 108 109 FireMethod ''' 110 self.Flux = Ks * vC0.Value 111 '''; 83 112 84 VariableReferenceList [ P0 Variable:.:P0 1 ] [ C0 Variable:.:M 0 ];85 113 } 86 114 87 115 Process PythonProcess( R_toy4 ) 88 116 { 89 IsContinuous 1; 90 InitializeMethod "V1 = 3.2; K1 = 2;"; 91 FireMethod "self.Flux = ( ( V1 * S0.variable.MolarConc) / (K1 + S0.variable.MolarConc) * self.superSystem.SizeN_A )"; 117 IsContinuous 1; 118 VariableReferenceList 119 [ P0 Variable:.:P1 1 ] 120 [ S0 Variable:.:P0 -1 ]; 121 122 InitializeMethod ''' 123 V1 = 3.2 124 K1 = 2.0 125 vS0 = S0.variable 126 '''; 127 128 FireMethod ''' 129 self.Flux = ( V1 * vS0.Value ) / ( K1 + vS0.MolarConc ) 130 '''; 92 131 93 VariableReferenceList [ P0 Variable:.:P1 1 ] [ S0 Variable:.:P0 -1 ];94 132 } 95 133 96 134 Process PythonProcess( R_toy5 ) 97 135 { 98 IsContinuous 1; 99 InitializeMethod "V2 = 1.58; K2 = 2;"; 100 FireMethod "self.Flux = ( (V2 * S0.variable.MolarConc) / (K2 + S0.variable.MolarConc) * self.superSystem.SizeN_A )"; 136 IsContinuous 1; 137 VariableReferenceList 138 [ P0 Variable:.:P0 1 ] 139 [ S0 Variable:.:P1 -1 ]; 140 141 InitializeMethod ''' 142 V2 = 1.58 143 K2 = 2.0 144 vS0 = S0.variable 145 '''; 146 147 FireMethod ''' 148 self.Flux = ( V2 * vS0.Value ) / ( K2 + vS0.MolarConc ) 149 '''; 101 150 102 VariableReferenceList [ P0 Variable:.:P0 1 ] [ S0 Variable:.:P1 -1 ];103 151 } 104 152 105 153 Process PythonProcess( R_toy6 ) 106 154 { 107 IsContinuous 1; 108 InitializeMethod "V3 = 5; K3 = 2;"; 109 FireMethod "self.Flux = ( ( V3 * S0.variable.MolarConc) / (K3 + S0.variable.MolarConc) * self.superSystem.SizeN_A )"; 155 IsContinuous 1; 156 VariableReferenceList 157 [ P0 Variable:.:P2 1 ] 158 [ S0 Variable:.:P1 -1]; 159 160 InitializeMethod ''' 161 V3 = 5.0 162 K3 = 2.0 163 vS0 = S0.variable 164 '''; 165 166 FireMethod ''' 167 self.Flux = ( V3 * vS0.Value ) / ( K3 + vS0.MolarConc ) 168 '''; 110 169 111 VariableReferenceList [ P0 Variable:.:P2 1 ] [ S0 Variable:.:P1 -1];112 170 } 113 171 114 172 Process PythonProcess( R_toy7 ) 115 173 { 116 IsContinuous 1; 117 InitializeMethod "V4 = 2.5; K4 = 2;"; 118 FireMethod "self.Flux = ( (V4 * S0.variable.MolarConc) / (K4 + S0.variable.MolarConc) * self.superSystem.SizeN_A )"; 174 IsContinuous 1; 175 VariableReferenceList 176 [ P0 Variable:.:P1 1 ] 177 [ S0 Variable:.:P2 -1 ]; 178 179 InitializeMethod ''' 180 V4 = 2.5 181 K4 = 2.0 182 vS0 = S0.variable 183 '''; 184 185 FireMethod ''' 186 self.Flux = ( V4 * vS0.Value ) / ( K4 + vS0.MolarConc ) 187 '''; 119 188 120 VariableReferenceList [ P0 Variable:.:P1 1 ] [ S0 Variable:.:P2 -1 ];121 189 } 122 190 123 191 Process PythonProcess( R_toy8 ) 124 192 { 125 IsContinuous 1; 126 InitializeMethod "k1 = 1.9;"; 127 FireMethod "self.Flux = ( ( k1 * S0.variable.MolarConc) * self.superSystem.SizeN_A )"; 193 IsContinuous 1; 194 VariableReferenceList 195 [ P0 Variable:.:Pn 1 ] 196 [ S0 Variable:.:P2 -1 ]; 197 198 InitializeMethod ''' 199 k1 = 1.9 200 vS0 = S0.variable 201 '''; 202 203 FireMethod ''' 204 self.Flux = k1 * vS0.Value 205 '''; 128 206 129 VariableReferenceList [ P0 Variable:.:Pn 1 ] [ S0 Variable:.:P2 -1 ];130 207 } 131 208 132 209 Process PythonProcess( R_toy9 ) 133 210 { 134 IsContinuous 1; 135 InitializeMethod "k2 = 1.3;"; 136 FireMethod "self.Flux = ( (k2 * S0.variable.MolarConc) * self.superSystem.SizeN_A )"; 211 IsContinuous 1; 212 VariableReferenceList 213 [ P0 Variable:.:P2 1 ] 214 [ S0 Variable:.:Pn -1 ]; 215 216 InitializeMethod ''' 217 k2 = 1.3 218 vS0 = S0.variable 219 '''; 220 221 FireMethod ''' 222 self.Flux = k2 * vS0.Value 223 '''; 137 224 138 VariableReferenceList [ P0 Variable:.:P2 1 ] [ S0 Variable:.:Pn -1 ];139 225 } 140 226 141 227 Process PythonProcess( R_toy10 ) 142 228 { 143 IsContinuous 1; 144 InitializeMethod "vd = 0.95; Kd = 0.2;"; 145 FireMethod "self.Flux = ( ( vd * S0.variable.MolarConc) / (Kd + S0.variable.MolarConc) * self.superSystem.SizeN_A )"; 229 IsContinuous 1; 230 VariableReferenceList 231 [ S0 Variable:.:P2 -1 ]; 232 233 InitializeMethod ''' 234 vd = 0.95 235 Kd = 0.2 236 vS0 = S0.variable 237 '''; 238 239 FireMethod ''' 240 self.Flux = ( vd * vS0.Value) / ( Kd + vS0.MolarConc ) 241 '''; 146 242 147 VariableReferenceList [ S0 Variable:.:P2 -1 ];148 243 } 149 244 150 245 }