04-rx_flipflip.mdl 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /****************************************************************************
  2. * Regression test 04: When two surface molecules undergo a reaction in which
  3. * both reagents are preserved, and in which both reagents change
  4. * orientation, counting does not occur properly.
  5. *
  6. * Failure: as flippy increases, a000- and b000- remain 0
  7. *
  8. * Success: a000- and b000- increase to non-zero values
  9. * flippy increases
  10. * at all times a000- + a000+ == 300
  11. * at all times b000- + b000+ == 300
  12. *
  13. * Author: Jed Wing <[email protected]>
  14. * Date: 2008-09-10
  15. ****************************************************************************/
  16. ITERATIONS = 5000
  17. TIME_STEP = 1e-6
  18. VACANCY_SEARCH_DISTANCE = 2
  19. DEFINE_MOLECULES
  20. {
  21. a000 { DIFFUSION_CONSTANT_2D = 2e-6 }
  22. b000 { DIFFUSION_CONSTANT_2D = 2e-6 }
  23. }
  24. DEFINE_REACTIONS
  25. {
  26. a000' + b000' -> a000, + b000, [>1e6] : flippy
  27. }
  28. INSTANTIATE world OBJECT
  29. {
  30. box000 BOX
  31. {
  32. CORNERS = [0, 0, 0], [0.1, 0.1, 0.1]
  33. }
  34. rs000a RELEASE_SITE
  35. {
  36. SHAPE = world.box000
  37. MOLECULE = a000'
  38. NUMBER_TO_RELEASE = 300
  39. }
  40. rs000b RELEASE_SITE
  41. {
  42. SHAPE = world.box000
  43. MOLECULE = b000'
  44. NUMBER_TO_RELEASE = 300
  45. }
  46. }
  47. REACTION_DATA_OUTPUT
  48. {
  49. OUTPUT_BUFFER_SIZE = 50
  50. STEP = 1e-4
  51. HEADER = "# "
  52. {
  53. COUNT[b000{1}, world.box000] : "b000+",
  54. COUNT[b000{-1}, world.box000] : "b000-",
  55. COUNT[a000{1}, world.box000] : "a000+",
  56. COUNT[a000{-1}, world.box000] : "a000-",
  57. COUNT[flippy, world.box000] : "flippy"
  58. } => "counts.txt"
  59. }