12.2.3 Simplifying with MathematicaAfter the constraints and loads used to build the Mech model have been chosen as carefully as possible to simplify the model, Mathematica's Simplify or Expand functions can be applied to all of the internal expressions generated by Mech by setting $MechProcessFunction equal to Simplify, Expand, TrigExpand, or any other routine designed to simplify expressions or optimize them for efficient evaluation. Because many of the internal expressions generated by MechanicalSystems are very large, applying Simplify to all of them can be quite computationally expensive in itself. The performance of SetConstraints and related model-building functions can be degraded significantly in exchange for better performance from SolveMech. This will cause Simplify and Chop to be applied to all internal expressions generated by Mech.
Out[15]= | |
|