⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ---electron_transport.nlogo

📁 NETLOGO
💻 NLOGO
📖 第 1 页 / 共 2 页
字号:
; add model procedures hereglobals [rat atp total_atp nad total_nad time]to setupcaset total_atp [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]set total_nad [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]ask patches with [(pxcor = (-1 * screen-edge-x))] [set pcolor white] ask patches with [(pxcor = screen-edge-x)] [set pcolor white]ask patches with [(pycor = (-1 * screen-edge-y))] [set pcolor white]ask patches with [(pycor = screen-edge-y)] [set pcolor white]ask patches with [pycor = 0] [set pcolor white]ask patches with [(pycor = 0) and (pxcor = -16)] [set pcolor blue] ;FeS1ask patches with [(pycor = 0) and (pxcor = -14)] [set pcolor red] ;CytAask patches with [(pycor = 0) and (pxcor = -12)] [set pcolor blue] ;FeS2ask patches with [(pycor = 0) and (pxcor = -10)] [set pcolor red] ;CytAask patches with [(pycor = 0) and (pxcor = -8)] [set pcolor blue] ;CytAask patches with [(pycor = 0) and (pxcor = -6)] [set pcolor red] ;CytAask patches with [(pycor = 0) and (pxcor = -4)] [set pcolor blue] ;CytAask patches with [(pycor = 0) and (pxcor = -2)] [set pcolor red] ;CytAask patches with [(pycor = 0) and (pxcor = 16)] [set pcolor blue] ;ATP Synthaseask patches with [(pycor = 0) and (pxcor = 14)] [set pcolor red] ;ATP Synthaseask patches with [(pycor = 0) and (pxcor = 12)] [set pcolor blue] ;ATP Synthaseask patches with [(pycor = 0) and (pxcor = 10)] [set pcolor red] ;ATP Synthaseask patches with [(pycor = 0) and (pxcor = 8)] [set pcolor blue] ;ATP Synthaseask patches with [(pycor = 0) and (pxcor = 6)] [set pcolor red] ;ATP Synthaseask patches with [(pycor = 0) and (pxcor = 4)] [set pcolor blue] ;ATP Synthaseask patches with [(pycor = 0) and (pxcor = 2)] [set pcolor red] ;ATP Synthasecct 100 [set shape "circle" set size 1 set color yellow set heading random 360 fd random 10]endto go locals[nad_cnt atp_cnt]set nad_cnt 0set atp_cnt 0set rat count turtles with [ycor > 0]ask turtles [  fd 1  rt random 60   lt random 60   if (pcolor-of patch-at dx dy = white) and (NOT uncouplers) [set heading heading - 180]  if (pcolor-of patch-at dx dy = blue) [if (heading >= 270 or heading < 90 ) [ifelse (NOT poison_et) and (random 90 > rat) and (50 - nad > 0) [fd 2 set nad nad + 1 set nad_cnt nad_cnt + 1] [set heading heading - 180] ] ]  if (pcolor-of patch-at dx dy = blue) [if (heading  >= 90 and heading < 270 ) [set heading heading - 180]]  if (pcolor-of patch-at dx dy = red)  [if (heading  >= 90 and heading < 270 )  [ifelse (NOT poison_as) and (rat > 60 ) and (50 - atp > 0)[ fd 2  if (atp < 50) [set atp atp + 1 set atp_cnt atp_cnt + 1]] [set heading heading - 180] ] ]  if (pcolor-of patch-at dx dy = red)  [if (heading >= 270 or heading < 90) [set heading heading - 180]]  ]  if (random 200 < atp_consumption) and (atp > 1) [set atp atp - 1]  if (random 200 < nad_consumption) and (nad > 1) [set nad nad - 1]  no-display  plot-levels  plot-atp  set total_nad replace-item time total_nad nad_cnt  set total_atp replace-item time total_atp atp_cnt    set time time + 1  if(time >= 40) [set time 0]  plot-rates   displayendto plot-levels ;; this creates creates the bar graph     set-current-plot "Proton Gradient"    clear-plot    ppd    set-current-plot-pen "matrix"    plotxy 1 count turtles with [ycor < 0]     set-current-plot-pen "intermembrane"  plotxy 2 rat endto plot-atp ;; this creates creates the bar graph     set-current-plot "ADP-ATP NADH-NAD+"    clear-plot    ppd    set-current-plot-pen "adp"    plotxy 1 (50 - atp)     set-current-plot-pen "atp"    plotxy 2 atp     set-current-plot-pen "nadh"    plotxy 4 (50 - nad)     set-current-plot-pen "nad+"    plotxy 5 nadendto plot-rates ;; this creates creates a line graph     set-current-plot "ATP and NAD Rates"    ppd    set-current-plot-pen "atp"    plot ((sum total_atp) / 40)     set-current-plot-pen "nad"    plot ((sum total_nad) / 40) end; Copyright 2004 by Steven Brewer.  All rights reserved.;; Permission to use, modify or redistribute this model is hereby granted,; provided that both of the following requirements are followed:; a) this copyright notice is included.; b) this model will not be redistributed for profit without permission;    from the authors.; Contact the authors for appropriate licenses for redistribution for; profit.;; To refer to this model in academic publications, please use:; Brewer, S.D. (2004).  Electron Transport: Simulating Proton Gradient,; ADP-ATP, and NADH-NAD+ Interactions.  ; http://bcrc.bio.umass.edu/netlogo/models/ElectronTransport/; Biology Computer Resource Center;; In other publications, please use:; Copyright 2004 by Steven Brewer.  All rights reserved.  See; http://bcrc.bio.umass.edu/netlogo/models/ElectronTransport/@#$#@#$#@GRAPHICS-WINDOW3221064723017109.0110111CC-WINDOW11428337495Command CenterBUTTON13107943NILsetupNIL1TOBSERVERTBUTTON1011016443NILgoT1TOBSERVERTSWITCH1901031843Poison_ASPoison_AS11-1000SWITCH1904831981Poison_ETPoison_ET11-1000PLOT14119250239Proton GradientNILNIL0.04.00.0100.0truetruePENS"matrix" 1.0 1 -16777216 true"intermembrane" 1.0 1 -65536 truePLOT12241249424ADP-ATP NADH-NAD+NILNIL0.05.00.050.0truetruePENS"ADP" 1.0 1 -16777216 true"ATP" 1.0 1 -65536 true"NADH" 1.0 1 -16711681 true"NAD+" 1.0 1 -16776961 trueSLIDER134818581atp_consumptionatp_consumption0100011NILSLIDER1284184117nad_consumptionnad_consumption0100011NILSWITCH18984319117uncouplersuncouplers11-1000PLOT255243645427ATP and NAD RatesNILNIL0.020.00.01.0truetruePENS"ATP" 1.0 0 -65536 true"NAD" 1.0 0 -16776961 trueTEXTBOX331206446224mitochondrial matrixTEXTBOX3303745255intermembrane regionBUTTON254203

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -