ソースを参照

Deployed 5278898 with MkDocs version: 1.1.2

Gilbert Brault 5 年 前
コミット
98a4d75ef1
90 ファイル変更682 行追加245 行削除
  1. 0 0
      404.html
  2. 0 0
      Gallery/car.svg
  3. 0 0
      Gallery/car.yml
  4. 0 0
      Gallery/dryfriction.svg
  5. 98 98
      Gallery/dryfriction.yml
  6. 0 0
      Gallery/jet_pump.svg
  7. 0 0
      Gallery/jet_pump.yml
  8. 0 0
      Gallery/pendulum.svg
  9. 0 0
      Gallery/pendulum.yml
  10. 0 0
      Gallery/springdashpotmass.svg
  11. 0 0
      Gallery/springdashpotmass.yml
  12. 0 0
      Gallery/springmass.svg
  13. 0 0
      Gallery/springmass.yml
  14. 0 0
      about/index.html
  15. 0 0
      assets/images/favicon.png
  16. 0 0
      assets/javascripts/bundle.f9edbbd5.min.js
  17. 0 0
      assets/javascripts/bundle.f9edbbd5.min.js.map
  18. 0 0
      assets/javascripts/lunr/min/lunr.ar.min.js
  19. 0 0
      assets/javascripts/lunr/min/lunr.da.min.js
  20. 0 0
      assets/javascripts/lunr/min/lunr.de.min.js
  21. 0 0
      assets/javascripts/lunr/min/lunr.du.min.js
  22. 0 0
      assets/javascripts/lunr/min/lunr.es.min.js
  23. 0 0
      assets/javascripts/lunr/min/lunr.fi.min.js
  24. 0 0
      assets/javascripts/lunr/min/lunr.fr.min.js
  25. 0 0
      assets/javascripts/lunr/min/lunr.hu.min.js
  26. 0 0
      assets/javascripts/lunr/min/lunr.it.min.js
  27. 0 0
      assets/javascripts/lunr/min/lunr.ja.min.js
  28. 0 0
      assets/javascripts/lunr/min/lunr.jp.min.js
  29. 0 0
      assets/javascripts/lunr/min/lunr.multi.min.js
  30. 0 0
      assets/javascripts/lunr/min/lunr.nl.min.js
  31. 0 0
      assets/javascripts/lunr/min/lunr.no.min.js
  32. 0 0
      assets/javascripts/lunr/min/lunr.pt.min.js
  33. 0 0
      assets/javascripts/lunr/min/lunr.ro.min.js
  34. 0 0
      assets/javascripts/lunr/min/lunr.ru.min.js
  35. 0 0
      assets/javascripts/lunr/min/lunr.stemmer.support.min.js
  36. 0 0
      assets/javascripts/lunr/min/lunr.sv.min.js
  37. 0 0
      assets/javascripts/lunr/min/lunr.tr.min.js
  38. 0 0
      assets/javascripts/lunr/min/lunr.vi.min.js
  39. 0 0
      assets/javascripts/lunr/tinyseg.min.js
  40. 0 0
      assets/javascripts/vendor.c3dc8c49.min.js
  41. 0 0
      assets/javascripts/vendor.c3dc8c49.min.js.map
  42. 0 0
      assets/javascripts/worker/search.8e2cddea.min.js
  43. 0 0
      assets/javascripts/worker/search.8e2cddea.min.js.map
  44. 0 0
      assets/stylesheets/main.947af8d5.min.css
  45. 0 0
      assets/stylesheets/main.947af8d5.min.css.map
  46. 0 0
      assets/stylesheets/palette.7f672a1f.min.css
  47. 0 0
      assets/stylesheets/palette.7f672a1f.min.css.map
  48. 0 0
      gallerydoc/index.html
  49. 0 0
      images/dotdryfriction.svg
  50. 0 0
      images/dotfriction.png
  51. 0 0
      images/dryfriction.png
  52. 0 0
      images/dryfriction.svg
  53. 0 0
      images/github.png
  54. 0 0
      images/github_small.png
  55. 0 0
      index.html
  56. 0 0
      learningbyexample/index.html
  57. 0 0
      presentation/index.html
  58. 0 0
      reference/arc.svg
  59. 0 0
      reference/arcwtext.svg
  60. 0 0
      reference/arrow1.svg
  61. 0 0
      reference/axis.svg
  62. 0 0
      reference/circle.svg
  63. 0 0
      reference/cross.svg
  64. 0 0
      reference/curve.svg
  65. 0 0
      reference/dashpot.svg
  66. 0 0
      reference/distancewithtext.svg
  67. 97 97
      reference/dryfriction.yml
  68. 0 0
      reference/force.svg
  69. 0 0
      reference/gravity.svg
  70. 0 0
      reference/home.png
  71. 0 0
      reference/line.svg
  72. 0 0
      reference/moment.svg
  73. 0 0
      reference/rectangle.svg
  74. 0 0
      reference/spring.svg
  75. 0 0
      reference/text.svg
  76. 0 0
      reference/textwarrow.svg
  77. 354 0
      reference/trajectory.svg
  78. 0 0
      reference/triangle.svg
  79. 0 0
      reference/wall.svg
  80. 0 0
      reference/wheel.svg
  81. 0 0
      reference/yamlpysketchergrammar.svg
  82. 0 0
      resources/DryFriction copy.ipynb
  83. 0 0
      resources/DryFriction.html
  84. 0 0
      resources/DryFriction.ipynb
  85. 0 0
      resources/yamlpysketchergrammar.drawio
  86. 1 1
      search/search_index.json
  87. 125 42
      shapereference/index.html
  88. 7 7
      sitemap.xml
  89. BIN
      sitemap.xml.gz
  90. 0 0
      yamlsketcher/index.html

+ 0 - 0
404.html


+ 0 - 0
Gallery/car.svg


+ 0 - 0
Gallery/car.yml


+ 0 - 0
Gallery/dryfriction.svg


+ 98 - 98
Gallery/dryfriction.yml

@@ -1,98 +1,98 @@
-!!omap
-- name: unknown
-- parts:
-  - name: head
-    shapes:
-      libraries: ['from math import tan, radians, sin, cos', from pysketcher import
-          *]
-  - name: constants
-    shapes:
-      fontsize: 18       # size of the characters
-      g: 9.81            # constant gravity
-      theta: 30.0        # inclined plane angle
-      L: 10.0            # sketch sizing parameter
-      a: 1.0             #
-      xmin: 0.0          # sketech min Abscissa
-      ymin: -3.0         # sketech min Ordinate     
-      rl: 2.0            # rectangle width
-      rL: 1.0            # rectangle length
-  - name: frame
-    shapes:
-      setframe:          # sketch setup
-        action: drawing_tool.set_coordinate_system(xmin=xmin-L/5, xmax=xmin+1.5*L,ymin=ymin,
-          ymax=ymin+1.5*L,instruction_file='tmp_mpl_friction.py')
-      setblackline:      # default frame values and actions
-        action: drawing_tool.set_linecolor('black')
-      B: point(a+L,0)                    # wall right end
-      A: point(a,tan(radians(theta))*L)  # wall left end
-      normal_vec: point(sin(radians(theta)),cos(radians(theta)))   # Vector normal to wall
-      tangent_vec: point(cos(radians(theta)),-sin(radians(theta))) # Vector tangent to wall
-      help_line: Line(A,B)               # wall line
-      x: a + 3*L/10.                     # contact point Abscissa
-      y: help_line(x=x)                  # contact point Ordinate
-      contact: point(x, y)               # contact point: middle of the rectangle bottom edge
-      c: contact + rL/2*normal_vec
-  - name: body
-    shapes:
-      rectangle:
-        formula: Rectangle(contact, rl, rL)
-        style:
-          linecolor: blue
-          filled_curves: 
-              color: blue
-        transform: ['rotate(-theta, contact)', translate(-rl/2*tangent_vec)]
-      N:
-        formula: Force(contact - rl*normal_vec, contact, r'$N$', text_pos='start')
-        style:
-          linecolor: black
-      wheel:
-        formula: "Composition({'outer': rectangle})"
-        style:
-          shadow: 1
-      mc:
-        formula: Text(r'$c$', c)
-      body:
-        formula: "Composition({'wheel': wheel, 'N': N, 'mc': mc})"
-        style:
-          linecolor: black
-  - name: plan
-    shapes:
-      mB:
-        formula: Text(r'$B$',B)
-      mA:
-        formula: Text(r'$A$', A)
-      wall:
-        formula: Wall(x=[A[0], B[0]], y=[A[1], B[1]], thickness=-0.25,transparent=False)
-        style:
-          linecolor: black
-      x_const:
-        formula: Line(contact, contact + point(0,4))
-        style:
-          linestyle: dotted
-        transform: rotate(-theta, contact)
-      x_axis:
-        formula: Axis(start=contact+ 2*rl*normal_vec, length=2*rl,label='$x$', rotation_angle=-theta)
-      plan:
-        formula: "Composition({'body': body, 'inclined wall': wall, 'x start': x_const,\
-          \ 'x axis': x_axis, 'mA': mA, 'mB': mB})"
-  - name: friction
-    shapes:
-      mg:
-        formula: Gravity(c, rl, text='$Mg$')
-        style:
-          linecolor: black
-      angle:
-        formula: Arc_wText(r'$<bslash>theta$', center=B, radius=3, start_angle=180-theta,
-          arc_angle=theta, fontsize=fontsize)
-        style:
-          linecolor: black
-          linewidth: 1
-      ground:
-        formula: Line((B[0]-L/10., 0), (B[0]-L/2.,0))
-        stlye:
-          linecolor: black
-          linestyle: dashed
-          linewidth: 1
-      friction:
-        formula: "Composition({'plan': plan, 'ground': ground, 'mg': mg, 'angle':\
-          \ angle})"
+!!omap
+- name: unknown
+- parts:
+  - name: head
+    shapes:
+      libraries: ['from math import tan, radians, sin, cos', from pysketcher import
+          *]
+  - name: constants
+    shapes:
+      fontsize: 18       # size of the characters
+      g: 9.81            # constant gravity
+      theta: 30.0        # inclined plane angle
+      L: 10.0            # sketch sizing parameter
+      a: 1.0             #
+      xmin: 0.0          # sketech min Abscissa
+      ymin: -3.0         # sketech min Ordinate     
+      rl: 2.0            # rectangle width
+      rL: 1.0            # rectangle length
+  - name: frame
+    shapes:
+      setframe:          # sketch setup
+        action: drawing_tool.set_coordinate_system(xmin=xmin-L/5, xmax=xmin+1.5*L,ymin=ymin,
+          ymax=ymin+1.5*L,instruction_file='tmp_mpl_friction.py')
+      setblackline:      # default frame values and actions
+        action: drawing_tool.set_linecolor('black')
+      B: point(a+L,0)                    # wall right end
+      A: point(a,tan(radians(theta))*L)  # wall left end
+      normal_vec: point(sin(radians(theta)),cos(radians(theta)))   # Vector normal to wall
+      tangent_vec: point(cos(radians(theta)),-sin(radians(theta))) # Vector tangent to wall
+      help_line: Line(A,B)               # wall line
+      x: a + 3*L/10.                     # contact point Abscissa
+      y: help_line(x=x)                  # contact point Ordinate
+      contact: point(x, y)               # contact point: middle of the rectangle bottom edge
+      c: contact + rL/2*normal_vec
+  - name: body
+    shapes:
+      rectangle:
+        formula: Rectangle(contact, rl, rL)
+        style:
+          linecolor: blue
+          filled_curves: 
+              color: blue
+        transform: ['rotate(-theta, contact)', translate(-rl/2*tangent_vec)]
+      N:
+        formula: Force(contact - rl*normal_vec, contact, r'$N$', text_pos='start')
+        style:
+          linecolor: black
+      wheel:
+        formula: "Composition({'outer': rectangle})"
+        style:
+          shadow: 1
+      mc:
+        formula: Text(r'$c$', c)
+      body:
+        formula: "Composition({'wheel': wheel, 'N': N, 'mc': mc})"
+        style:
+          linecolor: black
+  - name: plan
+    shapes:
+      mB:
+        formula: Text(r'$B$',B)
+      mA:
+        formula: Text(r'$A$', A)
+      wall:
+        formula: Wall(x=[A[0], B[0]], y=[A[1], B[1]], thickness=-0.25,transparent=False)
+        style:
+          linecolor: black
+      x_const:
+        formula: Line(contact, contact + point(0,4))
+        style:
+          linestyle: dotted
+        transform: rotate(-theta, contact)
+      x_axis:
+        formula: Axis(start=contact+ 2*rl*normal_vec, length=2*rl,label='$x$', rotation_angle=-theta)
+      plan:
+        formula: "Composition({'body': body, 'inclined wall': wall, 'x start': x_const,\
+          \ 'x axis': x_axis, 'mA': mA, 'mB': mB})"
+  - name: friction
+    shapes:
+      mg:
+        formula: Gravity(c, rl, text='$Mg$')
+        style:
+          linecolor: black
+      angle:
+        formula: Arc_wText(r'$<bslash>theta$', center=B, radius=3, start_angle=180-theta,
+          arc_angle=theta, fontsize=fontsize)
+        style:
+          linecolor: black
+          linewidth: 1
+      ground:
+        formula: Line((B[0]-L/10., 0), (B[0]-L/2.,0))
+        stlye:
+          linecolor: black
+          linestyle: dashed
+          linewidth: 1
+      friction:
+        formula: "Composition({'plan': plan, 'ground': ground, 'mg': mg, 'angle':\
+          \ angle})"

+ 0 - 0
Gallery/jet_pump.svg


+ 0 - 0
Gallery/jet_pump.yml


+ 0 - 0
Gallery/pendulum.svg


+ 0 - 0
Gallery/pendulum.yml


+ 0 - 0
Gallery/springdashpotmass.svg


+ 0 - 0
Gallery/springdashpotmass.yml


+ 0 - 0
Gallery/springmass.svg


+ 0 - 0
Gallery/springmass.yml


+ 0 - 0
about/index.html


+ 0 - 0
assets/images/favicon.png


+ 0 - 0
assets/javascripts/bundle.f9edbbd5.min.js


+ 0 - 0
assets/javascripts/bundle.f9edbbd5.min.js.map


+ 0 - 0
assets/javascripts/lunr/min/lunr.ar.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.da.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.de.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.du.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.es.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.fi.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.fr.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.hu.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.it.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.ja.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.jp.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.multi.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.nl.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.no.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.pt.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.ro.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.ru.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.stemmer.support.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.sv.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.tr.min.js


+ 0 - 0
assets/javascripts/lunr/min/lunr.vi.min.js


+ 0 - 0
assets/javascripts/lunr/tinyseg.min.js


+ 0 - 0
assets/javascripts/vendor.c3dc8c49.min.js


+ 0 - 0
assets/javascripts/vendor.c3dc8c49.min.js.map


+ 0 - 0
assets/javascripts/worker/search.8e2cddea.min.js


+ 0 - 0
assets/javascripts/worker/search.8e2cddea.min.js.map


+ 0 - 0
assets/stylesheets/main.947af8d5.min.css


+ 0 - 0
assets/stylesheets/main.947af8d5.min.css.map


+ 0 - 0
assets/stylesheets/palette.7f672a1f.min.css


+ 0 - 0
assets/stylesheets/palette.7f672a1f.min.css.map


+ 0 - 0
gallerydoc/index.html


+ 0 - 0
images/dotdryfriction.svg


+ 0 - 0
images/dotfriction.png


+ 0 - 0
images/dryfriction.png


+ 0 - 0
images/dryfriction.svg


+ 0 - 0
images/github.png


+ 0 - 0
images/github_small.png


+ 0 - 0
index.html


+ 0 - 0
learningbyexample/index.html


+ 0 - 0
presentation/index.html


+ 0 - 0
reference/arc.svg


+ 0 - 0
reference/arcwtext.svg


+ 0 - 0
reference/arrow1.svg


+ 0 - 0
reference/axis.svg


+ 0 - 0
reference/circle.svg


+ 0 - 0
reference/cross.svg


+ 0 - 0
reference/curve.svg


+ 0 - 0
reference/dashpot.svg


+ 0 - 0
reference/distancewithtext.svg


+ 97 - 97
reference/dryfriction.yml

@@ -1,97 +1,97 @@
-!!omap
-- name: unknown
-- parts:
-  - name: head
-    shapes:
-      libraries: ['from math import tan, radians, sin, cos', from pysketcher import
-          *]
-  - name: constants
-    shapes:
-      fontsize: 18       # size of the characters
-      g: 9.81            # constant gravity
-      theta: 30.0        # inclined plane angle
-      L: 10.0            # sketch sizing parameter
-      a: 1.0             #
-      xmin: 0.0          # sketech min Abscissa
-      ymin: -3.0         # sketech min Ordinate     
-      rl: 2.0            # rectangle width
-      rL: 1.0            # rectangle length
-  - name: frame
-    shapes:
-      setframe:          # sketch setup
-        action: drawing_tool.set_coordinate_system(xmin=xmin-L/5, xmax=xmin+1.5*L,ymin=ymin,
-          ymax=ymin+1.5*L,instruction_file='tmp_mpl_friction.py')
-      setblackline:      # default frame values and actions
-        action: drawing_tool.set_linecolor('black')
-      B: point(a+L,0)                    # wall right end
-      A: point(a,tan(radians(theta))*L)  # wall left end
-      normal_vec: point(sin(radians(theta)),cos(radians(theta)))   # Vector normal to wall
-      tangent_vec: point(cos(radians(theta)),-sin(radians(theta))) # Vector tangent to wall
-      help_line: Line(A,B)               # wall line
-      x: a + 3*L/10.                     # contact point Abscissa
-      y: help_line(x=x)                  # contact point Ordinate
-      contact: point(x, y)               # contact point: middle of the rectangle bottom edge
-      c: contact + rL/2*normal_vec
-  - name: body
-    shapes:
-      rectangle:
-        formula: Rectangle(contact, rl, rL)
-        style:
-          linecolor: blue
-          filled_curves: blue
-        transform: ['rotate(-theta, contact)', translate(-rl/2*tangent_vec)]
-      N:
-        formula: Force(contact - rl*normal_vec, contact, r'$N$', text_pos='start')
-        style:
-          linecolor: black
-      wheel:
-        formula: "Composition({'outer': rectangle})"
-        style:
-          shadow: 1
-      mc:
-        formula: Text(r'$c$', c)
-      body:
-        formula: "Composition({'wheel': wheel, 'N': N, 'mc': mc})"
-        style:
-          linecolor: black
-  - name: plan
-    shapes:
-      mB:
-        formula: Text(r'$B$',B)
-      mA:
-        formula: Text(r'$A$', A)
-      wall:
-        formula: Wall(x=[A[0], B[0]], y=[A[1], B[1]], thickness=-0.25,transparent=False)
-        style:
-          linecolor: black
-      x_const:
-        formula: Line(contact, contact + point(0,4))
-        style:
-          linestyle: dotted
-        transform: rotate(-theta, contact)
-      x_axis:
-        formula: Axis(start=contact+ 2*rl*normal_vec, length=2*rl,label='$x$', rotation_angle=-theta)
-      plan:
-        formula: "Composition({'body': body, 'inclined wall': wall, 'x start': x_const,\
-          \ 'x axis': x_axis, 'mA': mA, 'mB': mB})"
-  - name: friction
-    shapes:
-      mg:
-        formula: Gravity(c, rl, text='$Mg$')
-        style:
-          linecolor: black
-      angle:
-        formula: Arc_wText(r'$<bslash>theta$', center=B, radius=3, start_angle=180-theta,
-          arc_angle=theta, fontsize=fontsize)
-        style:
-          linecolor: black
-          linewidth: 1
-      ground:
-        formula: Line((B[0]-L/10., 0), (B[0]-L/2.,0))
-        stlye:
-          linecolor: black
-          linestyle: dashed
-          linewidth: 1
-      friction:
-        formula: "Composition({'plan': plan, 'ground': ground, 'mg': mg, 'angle':\
-          \ angle})"
+!!omap
+- name: unknown
+- parts:
+  - name: head
+    shapes:
+      libraries: ['from math import tan, radians, sin, cos', from pysketcher import
+          *]
+  - name: constants
+    shapes:
+      fontsize: 18       # size of the characters
+      g: 9.81            # constant gravity
+      theta: 30.0        # inclined plane angle
+      L: 10.0            # sketch sizing parameter
+      a: 1.0             #
+      xmin: 0.0          # sketech min Abscissa
+      ymin: -3.0         # sketech min Ordinate     
+      rl: 2.0            # rectangle width
+      rL: 1.0            # rectangle length
+  - name: frame
+    shapes:
+      setframe:          # sketch setup
+        action: drawing_tool.set_coordinate_system(xmin=xmin-L/5, xmax=xmin+1.5*L,ymin=ymin,
+          ymax=ymin+1.5*L,instruction_file='tmp_mpl_friction.py')
+      setblackline:      # default frame values and actions
+        action: drawing_tool.set_linecolor('black')
+      B: point(a+L,0)                    # wall right end
+      A: point(a,tan(radians(theta))*L)  # wall left end
+      normal_vec: point(sin(radians(theta)),cos(radians(theta)))   # Vector normal to wall
+      tangent_vec: point(cos(radians(theta)),-sin(radians(theta))) # Vector tangent to wall
+      help_line: Line(A,B)               # wall line
+      x: a + 3*L/10.                     # contact point Abscissa
+      y: help_line(x=x)                  # contact point Ordinate
+      contact: point(x, y)               # contact point: middle of the rectangle bottom edge
+      c: contact + rL/2*normal_vec
+  - name: body
+    shapes:
+      rectangle:
+        formula: Rectangle(contact, rl, rL)
+        style:
+          linecolor: blue
+          filled_curves: blue
+        transform: ['rotate(-theta, contact)', translate(-rl/2*tangent_vec)]
+      N:
+        formula: Force(contact - rl*normal_vec, contact, r'$N$', text_pos='start')
+        style:
+          linecolor: black
+      wheel:
+        formula: "Composition({'outer': rectangle})"
+        style:
+          shadow: 1
+      mc:
+        formula: Text(r'$c$', c)
+      body:
+        formula: "Composition({'wheel': wheel, 'N': N, 'mc': mc})"
+        style:
+          linecolor: black
+  - name: plan
+    shapes:
+      mB:
+        formula: Text(r'$B$',B)
+      mA:
+        formula: Text(r'$A$', A)
+      wall:
+        formula: Wall(x=[A[0], B[0]], y=[A[1], B[1]], thickness=-0.25,transparent=False)
+        style:
+          linecolor: black
+      x_const:
+        formula: Line(contact, contact + point(0,4))
+        style:
+          linestyle: dotted
+        transform: rotate(-theta, contact)
+      x_axis:
+        formula: Axis(start=contact+ 2*rl*normal_vec, length=2*rl,label='$x$', rotation_angle=-theta)
+      plan:
+        formula: "Composition({'body': body, 'inclined wall': wall, 'x start': x_const,\
+          \ 'x axis': x_axis, 'mA': mA, 'mB': mB})"
+  - name: friction
+    shapes:
+      mg:
+        formula: Gravity(c, rl, text='$Mg$')
+        style:
+          linecolor: black
+      angle:
+        formula: Arc_wText(r'$<bslash>theta$', center=B, radius=3, start_angle=180-theta,
+          arc_angle=theta, fontsize=fontsize)
+        style:
+          linecolor: black
+          linewidth: 1
+      ground:
+        formula: Line((B[0]-L/10., 0), (B[0]-L/2.,0))
+        stlye:
+          linecolor: black
+          linestyle: dashed
+          linewidth: 1
+      friction:
+        formula: "Composition({'plan': plan, 'ground': ground, 'mg': mg, 'angle':\
+          \ angle})"

+ 0 - 0
reference/force.svg


+ 0 - 0
reference/gravity.svg


+ 0 - 0
reference/home.png


+ 0 - 0
reference/line.svg


+ 0 - 0
reference/moment.svg


+ 0 - 0
reference/rectangle.svg


+ 0 - 0
reference/spring.svg


+ 0 - 0
reference/text.svg


+ 0 - 0
reference/textwarrow.svg


ファイルの差分が大きいため隠しています
+ 354 - 0
reference/trajectory.svg


+ 0 - 0
reference/triangle.svg


+ 0 - 0
reference/wall.svg


+ 0 - 0
reference/wheel.svg


+ 0 - 0
reference/yamlpysketchergrammar.svg


+ 0 - 0
resources/DryFriction copy.ipynb


+ 0 - 0
resources/DryFriction.html


+ 0 - 0
resources/DryFriction.ipynb


+ 0 - 0
resources/yamlpysketchergrammar.drawio


ファイルの差分が大きいため隠しています
+ 1 - 1
search/search_index.json


+ 125 - 42
shapereference/index.html

@@ -612,6 +612,33 @@
       </ul>
     </nav>
   
+</li>
+      
+        <li class="md-nav__item">
+  <a href="#trajectory" class="md-nav__link">
+    Trajectory
+  </a>
+  
+    <nav class="md-nav" aria-label="Trajectory">
+      <ul class="md-nav__list">
+        
+          <li class="md-nav__item">
+  <a href="#yaml_14" class="md-nav__link">
+    Yaml
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#python_14" class="md-nav__link">
+    Python
+  </a>
+  
+</li>
+        
+      </ul>
+    </nav>
+  
 </li>
       
         <li class="md-nav__item">
@@ -623,14 +650,14 @@
       <ul class="md-nav__list">
         
           <li class="md-nav__item">
-  <a href="#yaml_14" class="md-nav__link">
+  <a href="#yaml_15" class="md-nav__link">
     Yaml
   </a>
   
 </li>
         
           <li class="md-nav__item">
-  <a href="#python_14" class="md-nav__link">
+  <a href="#python_15" class="md-nav__link">
     Python
   </a>
   
@@ -650,14 +677,14 @@
       <ul class="md-nav__list">
         
           <li class="md-nav__item">
-  <a href="#yaml_15" class="md-nav__link">
+  <a href="#yaml_16" class="md-nav__link">
     Yaml
   </a>
   
 </li>
         
           <li class="md-nav__item">
-  <a href="#python_15" class="md-nav__link">
+  <a href="#python_16" class="md-nav__link">
     Python
   </a>
   
@@ -677,14 +704,14 @@
       <ul class="md-nav__list">
         
           <li class="md-nav__item">
-  <a href="#yaml_16" class="md-nav__link">
+  <a href="#yaml_17" class="md-nav__link">
     Yaml
   </a>
   
 </li>
         
           <li class="md-nav__item">
-  <a href="#python_16" class="md-nav__link">
+  <a href="#python_17" class="md-nav__link">
     Python
   </a>
   
@@ -704,14 +731,14 @@
       <ul class="md-nav__list">
         
           <li class="md-nav__item">
-  <a href="#yaml_17" class="md-nav__link">
+  <a href="#yaml_18" class="md-nav__link">
     Yaml
   </a>
   
 </li>
         
           <li class="md-nav__item">
-  <a href="#python_17" class="md-nav__link">
+  <a href="#python_18" class="md-nav__link">
     Python
   </a>
   
@@ -731,14 +758,14 @@
       <ul class="md-nav__list">
         
           <li class="md-nav__item">
-  <a href="#yaml_18" class="md-nav__link">
+  <a href="#yaml_19" class="md-nav__link">
     Yaml
   </a>
   
 </li>
         
           <li class="md-nav__item">
-  <a href="#python_18" class="md-nav__link">
+  <a href="#python_19" class="md-nav__link">
     Python
   </a>
   
@@ -758,14 +785,14 @@
       <ul class="md-nav__list">
         
           <li class="md-nav__item">
-  <a href="#yaml_19" class="md-nav__link">
+  <a href="#yaml_20" class="md-nav__link">
     Yaml
   </a>
   
 </li>
         
           <li class="md-nav__item">
-  <a href="#python_19" class="md-nav__link">
+  <a href="#python_20" class="md-nav__link">
     Python
   </a>
   
@@ -785,14 +812,14 @@
       <ul class="md-nav__list">
         
           <li class="md-nav__item">
-  <a href="#yaml_20" class="md-nav__link">
+  <a href="#yaml_21" class="md-nav__link">
     Yaml
   </a>
   
 </li>
         
           <li class="md-nav__item">
-  <a href="#python_20" class="md-nav__link">
+  <a href="#python_21" class="md-nav__link">
     Python
   </a>
   
@@ -1240,6 +1267,33 @@
       </ul>
     </nav>
   
+</li>
+      
+        <li class="md-nav__item">
+  <a href="#trajectory" class="md-nav__link">
+    Trajectory
+  </a>
+  
+    <nav class="md-nav" aria-label="Trajectory">
+      <ul class="md-nav__list">
+        
+          <li class="md-nav__item">
+  <a href="#yaml_14" class="md-nav__link">
+    Yaml
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#python_14" class="md-nav__link">
+    Python
+  </a>
+  
+</li>
+        
+      </ul>
+    </nav>
+  
 </li>
       
         <li class="md-nav__item">
@@ -1251,14 +1305,14 @@
       <ul class="md-nav__list">
         
           <li class="md-nav__item">
-  <a href="#yaml_14" class="md-nav__link">
+  <a href="#yaml_15" class="md-nav__link">
     Yaml
   </a>
   
 </li>
         
           <li class="md-nav__item">
-  <a href="#python_14" class="md-nav__link">
+  <a href="#python_15" class="md-nav__link">
     Python
   </a>
   
@@ -1278,14 +1332,14 @@
       <ul class="md-nav__list">
         
           <li class="md-nav__item">
-  <a href="#yaml_15" class="md-nav__link">
+  <a href="#yaml_16" class="md-nav__link">
     Yaml
   </a>
   
 </li>
         
           <li class="md-nav__item">
-  <a href="#python_15" class="md-nav__link">
+  <a href="#python_16" class="md-nav__link">
     Python
   </a>
   
@@ -1305,14 +1359,14 @@
       <ul class="md-nav__list">
         
           <li class="md-nav__item">
-  <a href="#yaml_16" class="md-nav__link">
+  <a href="#yaml_17" class="md-nav__link">
     Yaml
   </a>
   
 </li>
         
           <li class="md-nav__item">
-  <a href="#python_16" class="md-nav__link">
+  <a href="#python_17" class="md-nav__link">
     Python
   </a>
   
@@ -1332,14 +1386,14 @@
       <ul class="md-nav__list">
         
           <li class="md-nav__item">
-  <a href="#yaml_17" class="md-nav__link">
+  <a href="#yaml_18" class="md-nav__link">
     Yaml
   </a>
   
 </li>
         
           <li class="md-nav__item">
-  <a href="#python_17" class="md-nav__link">
+  <a href="#python_18" class="md-nav__link">
     Python
   </a>
   
@@ -1359,14 +1413,14 @@
       <ul class="md-nav__list">
         
           <li class="md-nav__item">
-  <a href="#yaml_18" class="md-nav__link">
+  <a href="#yaml_19" class="md-nav__link">
     Yaml
   </a>
   
 </li>
         
           <li class="md-nav__item">
-  <a href="#python_18" class="md-nav__link">
+  <a href="#python_19" class="md-nav__link">
     Python
   </a>
   
@@ -1386,14 +1440,14 @@
       <ul class="md-nav__list">
         
           <li class="md-nav__item">
-  <a href="#yaml_19" class="md-nav__link">
+  <a href="#yaml_20" class="md-nav__link">
     Yaml
   </a>
   
 </li>
         
           <li class="md-nav__item">
-  <a href="#python_19" class="md-nav__link">
+  <a href="#python_20" class="md-nav__link">
     Python
   </a>
   
@@ -1413,14 +1467,14 @@
       <ul class="md-nav__list">
         
           <li class="md-nav__item">
-  <a href="#yaml_20" class="md-nav__link">
+  <a href="#yaml_21" class="md-nav__link">
     Yaml
   </a>
   
 </li>
         
           <li class="md-nav__item">
-  <a href="#python_20" class="md-nav__link">
+  <a href="#python_21" class="md-nav__link">
     Python
   </a>
   
@@ -1466,6 +1520,7 @@
 <li><a href="#force">Force</a>: defines an Indication of a force by an arrow and a text (symbol)</li>
 <li><a href="#wall">Wall</a>: defines an hached box given starting, ending point and thickness, filled with a pattern</li>
 <li><a href="#curve">Curve</a>: defines a general curve as a sequence of (x,y) coordinates</li>
+<li><a href="#trajectory">Trajectory</a>: defines a general curve as a sequence of Point (subclass Curve)</li>
 <li><a href="#gravity">Gravity</a>: defines a downward-pointing gravity arrow with the symbol g or user given symbol.</li>
 <li><a href="#moment">Moment</a>: defines a Moment arrow with text given text, center and radius</li>
 <li><a href="#text_warrow">Text_wArrow</a>: defines Text, but an arrow is drawn from the mid part of the text to some point arrow_tip</li>
@@ -1740,9 +1795,37 @@ curve.set_name(&quot;curve&quot;)
 </code></pre>
 
 <p><img alt="Curve" src="../reference/curve.svg" /></p>
+<h2 id="trajectory">Trajectory</h2>
+<p><a href="#list-of-shapes">home</a> defines a general curve as a sequence of Point (subclass Curve)</p>
+<h3 id="yaml_14">Yaml</h3>
+<pre><code class="yaml">trajectory=&quot;&quot;&quot;\
+name: trajectory
+shapes:
+    P1: Point(1,-1)
+    P2: P1 + Point(0,2)
+    P3: P2 + Point(-2,0)
+    P4: P3 + Point(0,-2)
+    psq: |
+       [P1,P2,P3,P4]  
+    trajectory: Trajectory(psq)
+&quot;&quot;&quot;
+</code></pre>
+
+<h3 id="python_14">Python</h3>
+<pre><code class="python">P1 = Point(1,-1)
+P2 = P1 + Point(0,2)
+P3 = P2 + Point(-2,0)
+P4 = P3 + Point(0,-2)
+psq = [P1,P2,P3,P4]
+trajectory = Trajectory(psq)
+trajectory.draw()
+curve.set_name(&quot;trajectory&quot;)
+</code></pre>
+
+<p><img alt="Curve" src="../reference/trajectory.svg" /></p>
 <h2 id="gravity">Gravity</h2>
 <p><a href="#list-of-shapes">home</a> defines a downward-pointing gravity arrow with the symbol g or user given symbol.</p>
-<h3 id="yaml_14">Yaml</h3>
+<h3 id="yaml_15">Yaml</h3>
 <pre><code class="yaml">gravity=&quot;&quot;&quot;
 name: gravity
 shapes:
@@ -1753,7 +1836,7 @@ shapes:
 &quot;&quot;&quot;
 </code></pre>
 
-<h3 id="python_14">Python</h3>
+<h3 id="python_15">Python</h3>
 <pre><code class="python">c = point(0,0)
 r = 2
 gravity = Gravity(c, r, text='$Mg$')
@@ -1763,7 +1846,7 @@ gravity.set_name(&quot;gravity&quot;)
 <p><img alt="Gravity" src="../reference/gravity.svg" /></p>
 <h2 id="moment">Moment</h2>
 <p><a href="#list-of-shapes">home</a> defines a Moment arrow with text given text, center and radius.</p>
-<h3 id="yaml_15">Yaml</h3>
+<h3 id="yaml_16">Yaml</h3>
 <pre><code class="yaml">moment=&quot;&quot;&quot;
 name: moment
 shapes:
@@ -1771,7 +1854,7 @@ shapes:
 &quot;&quot;&quot;
 </code></pre>
 
-<h3 id="python_15">Python</h3>
+<h3 id="python_16">Python</h3>
 <pre><code class="python">moment = Moment(&quot;$T$&quot;, point(0,0), 2)
 moment.shape_name=&quot;moment&quot;
 </code></pre>
@@ -1779,7 +1862,7 @@ moment.shape_name=&quot;moment&quot;
 <p><img alt="Moment" src="../reference/moment.svg" /></p>
 <h2 id="text_warrow">Text_wArrow</h2>
 <p><a href="#list-of-shapes">home</a> Text, but an arrow is drawn from the mid part of the text to some point arrow_tip</p>
-<h3 id="yaml_16">Yaml</h3>
+<h3 id="yaml_17">Yaml</h3>
 <pre><code class="yaml">txtarrow=&quot;&quot;&quot;
 name: txtarrow
 shapes:
@@ -1787,7 +1870,7 @@ shapes:
 &quot;&quot;&quot;
 </code></pre>
 
-<h3 id="python_16">Python</h3>
+<h3 id="python_17">Python</h3>
 <pre><code class="python">txtarrow = Text_wArrow(&quot;$Text$&quot;, point(0,0), point(2,2))
 txtarrow.set_name(&quot;txtarrow&quot;)
 </code></pre>
@@ -1795,7 +1878,7 @@ txtarrow.set_name(&quot;txtarrow&quot;)
 <p><img alt="Text_wArrow" src="../reference/textwarrow.svg" /></p>
 <h2 id="wheel">Wheel</h2>
 <p><a href="#list-of-shapes">home</a> Hub and spokes Wheel given center, radius, spokes (default 10), inner_radius(default 1/5 of radius)</p>
-<h3 id="yaml_17">Yaml</h3>
+<h3 id="yaml_18">Yaml</h3>
 <pre><code class="yaml">wheel=&quot;&quot;&quot;
 name: wheel
 shapes:
@@ -1803,7 +1886,7 @@ shapes:
 &quot;&quot;&quot;
 </code></pre>
 
-<h3 id="python_17">Python</h3>
+<h3 id="python_18">Python</h3>
 <pre><code class="python">wheel = Wheel(point(0,0), 5)
 wheel.set_name(&quot;wheel&quot;)
 </code></pre>
@@ -1811,7 +1894,7 @@ wheel.set_name(&quot;wheel&quot;)
 <p><img alt="Wheel" src="../reference/wheel.svg" /></p>
 <h2 id="spring">Spring</h2>
 <p><a href="#list-of-shapes">home</a> Specify a vertical spring, starting at start and with length as total vertical length</p>
-<h3 id="yaml_18">Yaml</h3>
+<h3 id="yaml_19">Yaml</h3>
 <pre><code class="yaml">spring=&quot;&quot;&quot;
 name: spring
 shapes: 
@@ -1823,7 +1906,7 @@ shapes:
 &quot;&quot;&quot;
 </code></pre>
 
-<h3 id="python_18">Python</h3>
+<h3 id="python_19">Python</h3>
 <pre><code class="python">spring = Spring(point(0,0),5)
 spring.set_linecolor('black')
 spring.set_linewidth(1)
@@ -1833,7 +1916,7 @@ spring.set_name(&quot;spring&quot;)
 <p><img alt="Spring" src="../reference/spring.svg" /></p>
 <h2 id="dashpot">Dashpot</h2>
 <p><a href="#list-of-shapes">home</a> Defines a vertical dashpot of height <code>total_length</code> and <code>start</code> as bottom/starting point.</p>
-<h3 id="yaml_19">Yaml</h3>
+<h3 id="yaml_20">Yaml</h3>
 <pre><code class="yaml">dashpot=&quot;&quot;&quot;
 name: dashpot
 shapes:
@@ -1841,7 +1924,7 @@ shapes:
 &quot;&quot;&quot;
 </code></pre>
 
-<h3 id="python_19">Python</h3>
+<h3 id="python_20">Python</h3>
 <pre><code class="python">dashpot = Dashpot(point(0,0),5)
 dashpot.set_name(&quot;dashpot&quot;)
 </code></pre>
@@ -1866,7 +1949,7 @@ sketch.append(head)
 </code></pre>
 
 <p>The above code initialize myfig sketch space loading into it libraries references so samples can use tan, radians, si, cos and all the objects defined in pysketcher (the module name of jupytersketcher) and numpy as well: this is used by the yaml definition of shapes</p>
-<h3 id="yaml_20">Yaml</h3>
+<h3 id="yaml_21">Yaml</h3>
 <pre><code class="python">myfig={}
 sketch=&quot;&quot;&quot;
 # put here the yaml 'object' definition
@@ -1879,7 +1962,7 @@ drawing_tool.display()
 display(SVG(Sketch.matplotlib2SVG()))
 </code></pre>
 
-<h3 id="python_20">Python</h3>
+<h3 id="python_21">Python</h3>
 <pre><code class="python">drawing_tool.erase()
 # put the code of the object case here
 # replace object by the actual name line, rectangle, circle...

+ 7 - 7
sitemap.xml

@@ -1,31 +1,31 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url>
      <loc>None</loc>
-     <lastmod>2020-08-10</lastmod>
+     <lastmod>2020-08-11</lastmod>
      <changefreq>daily</changefreq>
     </url><url>
      <loc>None</loc>
-     <lastmod>2020-08-10</lastmod>
+     <lastmod>2020-08-11</lastmod>
      <changefreq>daily</changefreq>
     </url><url>
      <loc>None</loc>
-     <lastmod>2020-08-10</lastmod>
+     <lastmod>2020-08-11</lastmod>
      <changefreq>daily</changefreq>
     </url><url>
      <loc>None</loc>
-     <lastmod>2020-08-10</lastmod>
+     <lastmod>2020-08-11</lastmod>
      <changefreq>daily</changefreq>
     </url><url>
      <loc>None</loc>
-     <lastmod>2020-08-10</lastmod>
+     <lastmod>2020-08-11</lastmod>
      <changefreq>daily</changefreq>
     </url><url>
      <loc>None</loc>
-     <lastmod>2020-08-10</lastmod>
+     <lastmod>2020-08-11</lastmod>
      <changefreq>daily</changefreq>
     </url><url>
      <loc>None</loc>
-     <lastmod>2020-08-10</lastmod>
+     <lastmod>2020-08-11</lastmod>
      <changefreq>daily</changefreq>
     </url>
 </urlset>

BIN
sitemap.xml.gz


+ 0 - 0
yamlsketcher/index.html