main_sketcher.do.txt 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. % if FORMAT == 'sphinx':
  2. # Sphinx can only have title with less than 63 chars...
  3. TITLE: Pysketcher: Create Principal Sketches of Physics Problems
  4. % else:
  5. TITLE: Using Pysketcher to Create Principal Sketches of Physics Problems
  6. % endif
  7. AUTHOR: Hans Petter Langtangen at Center for Biomedical Computing, Simula Research Laboratory & Department of Informatics, University of Oslo
  8. DATE: today
  9. <%
  10. #src_path_tut = 'http://hplgit.github.com/pysketcher/doc/src/tut'
  11. src_path_tut = 'http://tinyurl.com/oou9lp7'
  12. #src_path_pysketcher = 'https://github.com/hplgit/pysketcher/tree/master/doc/src/tut/src-tut'
  13. src_path_pysketcher = 'http://tinyurl.com/ot733jn'
  14. %>
  15. !bbox
  16. This document is derived from Chapter 9 in the book
  17. "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,
  18. 4th edition, Springer, 2014.
  19. !ebox
  20. __Abstract.__
  21. Pysketcher is a Python package which allows principal sketches of
  22. physics and mechanics problems to be realized through short programs
  23. instead of interactive (and potentially tedious and inaccurate)
  24. drawing. Elements of the sketch, such as lines, circles, angles,
  25. forces, coordinate systems, etc., are realized as objects and
  26. collected in hierarchical structures. Parts of the hierarchical
  27. structures can easily change line styles and colors, or be copied,
  28. scaled, translated, and rotated. These features make it
  29. straightforward to move parts of the sketch to create animation,
  30. usually in accordance with the physics of the underlying problem.
  31. Exact dimensioning of the elements in the sketch is trivial to obtain
  32. since distances are specified in computer code.
  33. Pysketcher is easy to learn from a number of examples. Beyond
  34. essential Python programming and a knowledge about mechanics problems,
  35. no further background is required.
  36. # Task (can be questions): make sketches of physical problems, see fig
  37. # through user-friendly composition of basic shapes
  38. # Desired knowledge: plotting curves, basic OO (ch. X.Y, ...)
  39. # Required knowledge?
  40. # Learning Goals: these targets the inner workings of pysketcher,
  41. # which is just a part of this document...
  42. !split
  43. TOC: on
  44. !split
  45. # #include "basics.do.txt"
  46. !split
  47. # #include "examples.do.txt"
  48. !split
  49. # #include "classes.do.txt"
  50. !split
  51. # #include "implementation.do.txt"