Annotation: Difference between revisions

From Mechanomy Composer Wiki
Jump to navigation Jump to search
(Created page with "The annotation object adds meta information to the model or component. == Model Annotation == When used to annotate a model, the annotation comes after the equation section...")
 
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
== Model Annotation ==
== Model Annotation ==
When used to annotate a model, the annotation comes after the equation section and before the final end.
When used to annotate a model, the annotation comes after the equation section and before the final end.
It is most often used to provide the [[experiment]] and [[__Mechanomy_analyze]] options.
It is most often used to provide the [[experiment]] and [[__Mechanomy_analyze]] options.
[[experiment]] configures the simulation by specifying the start and stop times, solution tolerance, and step size or number of intervals.
[[experiment]] configures the simulation by specifying the start and stop times, solution tolerance, and step size or number of intervals.
[[__Mechanomy_analyze]] provides quick plotting of simulation results.
[[__Mechanomy_analyze]] provides quick plotting of simulation results.
Successive entries should be comma separated.
=== Example ===
annotation(
  experiment(StartTime=0, StopTime=1, Tolerance=0.01, NumberOfIntervals=20),
  __Mechanomy_analyze( plot2D={x:time, y:revWL.phi} ),
  __Mechanomy_analyze( plot2D={x:time, y:revWL.frame_a.f[1]} )
);

Latest revision as of 17:45, 3 January 2020

The annotation object adds meta information to the model or component.

Model Annotation[edit]

When used to annotate a model, the annotation comes after the equation section and before the final end.

It is most often used to provide the experiment and __Mechanomy_analyze options. experiment configures the simulation by specifying the start and stop times, solution tolerance, and step size or number of intervals. __Mechanomy_analyze provides quick plotting of simulation results.

Successive entries should be comma separated.

Example[edit]

annotation(
  experiment(StartTime=0, StopTime=1, Tolerance=0.01, NumberOfIntervals=20),
  __Mechanomy_analyze( plot2D={x:time, y:revWL.phi} ),
  __Mechanomy_analyze( plot2D={x:time, y:revWL.frame_a.f[1]} )
);