README.do.txt 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. ======= Pysketcher =======
  2. Tool for defining sketches of physics problems in terms of Python code.
  3. ===== Purpose =====
  4. Pysketcher can typically be used to draw figures like
  5. FIGURE: [doc/src/tut/fig-tut/wheel_on_inclined_plane, width=600 frac=0.6]
  6. Such figures can easily be *interactively* made using a lot of drawing programs.
  7. A Pysketcher figure, however, is defined in terms of computer code. This gives
  8. a great advantage: geometric features can be parameterized in term
  9. of variables, as here:
  10. FIGURE: [doc/src/tut/fig-tut/vehicle0_dim, width=600 frac=0.6]
  11. One can then quickly change parameters, here to
  12. `R=0.5; L=5; H=2` and `R=2; L=7; H=1`, and get new figures that would be
  13. tedious to draw manually in an interactive tool.
  14. FIGURE: [doc/src/tut/fig-tut/vehicle_v23, width=800]
  15. Another major feature of Pysketcher is the ability to let animate the
  16. sketch. Here is an example of a very simple vehicle on a bumpy road,
  17. where the solution of a differential equation (upper blue line) is fed
  18. back to the sketch to make a vertical displacement of the spring and
  19. other objects in the vehicle, "view animation": "http://hplgit.github.io/bumpy/doc/src/mov-bumpy/m2_k1_5_b0_2/index.html".
  20. FIGURE: [http://hplgit.github.io/bumpy/doc/src/mov-bumpy/m2_k1_5_b0_2/tmp_frame_0030.png, width=600]
  21. ===== Tutorial =====
  22. For an introduction to Pysketcher, see the tutorial in "HTML": "http://hplgit.github.io/pysketcher/doc/pub/pysketcher.html", "Sphinx": "http://hplgit.github.io/pysketcher/doc/pub/html/index.html", or "PDF": "http://hplgit/github.io/pysketcher/doc/pub/pysketcher.pdf" format (or a simplified version of
  23. the tutorial in Chapter 9 in "A Primer on Scientific Programming with Python": "http://www.amazon.com/Scientific-Programming-Computational-Science-Engineering/dp/3642549586/ref=sr_1_2?s=books&ie=UTF8&qid=1407225588&sr=1-2&keywords=langtangen", by H. P. Langtangen, Springer, 2014).
  24. ===== Citation =====
  25. If you use Pysketcher and want to cite it, you can either cite this
  26. web site or the book
  27. that has the original documentation of the tool.
  28. BibTeX format:
  29. !bc
  30. @book{Langtangen_2014,
  31. title = {A Primer on Scientific Programming With {P}ython},
  32. author = {H. P. Langtangen},
  33. year = {2014},
  34. publisher = {Springer},
  35. edition = {Fourth},
  36. }
  37. @misc{Pysketcher,
  38. title = {{P}ysketcher: {D}rawing tool for making sketches},
  39. author = {H. P. Langtangen},
  40. url = {https://github.com/hplgit/pysketcher},
  41. key = {Pysketcher},
  42. note = {\url{https://github.com/hplgit/pysketcher}},
  43. }
  44. !ec
  45. Publish format:
  46. !bc
  47. * books
  48. ** A Primer on Scientific Programming With {P}ython
  49. key: Langtangen_2014
  50. author: H. P. Langtangen
  51. year: 2014
  52. publisher: Springer
  53. status: published
  54. edition: Fourth
  55. entrytype: book
  56. * misc
  57. ** {P}ysketcher: {D}rawing tool for making sketches
  58. key: Pysketcher
  59. author: H. P. Langtangen
  60. url: https://github.com/hplgit/pysketcher
  61. status: published
  62. sortkey: Pysketcher
  63. note: \url{https://github.com/hplgit/pysketcher}
  64. !ec