02-orientflipflip_rxn.mdl 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /****************************************************************************
  2. * Regression test 02: In a grid mol + vol mol reaction V' + G' -> V, + G,
  3. * (i.e. where both molecules are preserved and change orientation), the
  4. * updated orientation of the grid molecule is not counted.
  5. *
  6. * Failure: a_inner != b_outward or a_outer != b_inward
  7. *
  8. * Success: a_inner == b_outward && a_outer == b_inward
  9. * a_inner + a_outer == a_total == 1000
  10. * b_inward + b_outward == b_total == 1000
  11. *
  12. * Author: Jed Wing <[email protected]>
  13. * Date: 2008-09-05
  14. ****************************************************************************/
  15. ITERATIONS = 1000
  16. TIME_STEP = 1e-6
  17. DEFINE_MOLECULES
  18. {
  19. a { DIFFUSION_CONSTANT_3D = 2e-6 }
  20. b { DIFFUSION_CONSTANT_2D = 0 }
  21. }
  22. DEFINE_REACTIONS
  23. {
  24. a' + b' -> a, + b, [3e6]
  25. }
  26. INSTANTIATE world OBJECT
  27. {
  28. box_outer BOX
  29. {
  30. CORNERS = [-0.25, -0.25, -0.25], [0.25, 0.25, 0.25]
  31. }
  32. box_inner BOX
  33. {
  34. CORNERS = [-0.24, -0.24, -0.24], [0.24, 0.24, 0.24]
  35. DEFINE_SURFACE_REGIONS
  36. {
  37. all {
  38. INCLUDE_ELEMENTS = [ ALL_ELEMENTS ]
  39. MOLECULE_NUMBER { b, = 1000 }
  40. }
  41. }
  42. }
  43. rs1 RELEASE_SITE
  44. {
  45. SHAPE = SPHERICAL
  46. SITE_RADIUS = 0
  47. LOCATION = [0, 0, 0]
  48. MOLECULE = a
  49. NUMBER_TO_RELEASE = 1000
  50. }
  51. }
  52. REACTION_DATA_OUTPUT
  53. {
  54. OUTPUT_BUFFER_SIZE = 100
  55. STEP = 1e-5
  56. HEADER = "# "
  57. {
  58. COUNT[a, world.box_inner] : "a_inner",
  59. COUNT[a, world.box_outer] - COUNT[a, world.box_inner] : "a_outer",
  60. COUNT[a, WORLD] : "a_total",
  61. COUNT[b{1}, world.box_inner] : "b_inward",
  62. COUNT[b{-1}, world.box_inner] : "b_outward",
  63. COUNT[b, WORLD] : "b_total"
  64. } => "counts.txt"
  65. }
  66. VIZ_OUTPUT
  67. {
  68. MODE = DREAMM_V3_GROUPED
  69. FILENAME = "world"
  70. MOLECULES
  71. {
  72. NAME_LIST { ALL_MOLECULES }
  73. TIME_POINTS { ALL_DATA @ [0, 1] }
  74. }
  75. MESHES
  76. {
  77. NAME_LIST { ALL_MESHES }
  78. TIME_POINTS { ALL_DATA @ [0] }
  79. }
  80. }