StepMech 2D/3D• StepMech[t] steps the constraint equations through one iteration of the Newton-Rhapson solution block with time set to t, regardless of any convergence criteria. • StepMech[] uses no value of time. • StepMech[rules] takes the supplied list of rules and uses them as initial values for the next step. • StepMech can be used to help diagnose nonconvergent models by examining the direction that Newton's method steps the solution vector. • The following options can be given:
• See also: SolveMech. Further Examples Load the Modeler2D package and define a simple model. Because the model is dependent on time, T, SolveMech can be called with a single argument giving the value of time.
Out[2]= | ![](/applications/mechsystems/FunctionIndex/HTMLImages/StepMech.en/StepMech.en_4.gif) |
If given a list of time values, SolveMech seeks a solution at each value, or at each time value plus additional time values evenly dispersed among those explicitly given.
Out[3]= | ![](/applications/mechsystems/FunctionIndex/HTMLImages/StepMech.en/StepMech.en_6.gif) |
Out[4]= | ![](/applications/mechsystems/FunctionIndex/HTMLImages/StepMech.en/StepMech.en_8.gif) |
The Solution option controls what order solution is sought, and whether to solve for the Lagrange multipliers.
Out[5]= | ![](/applications/mechsystems/FunctionIndex/HTMLImages/StepMech.en/StepMech.en_10.gif) |
Out[6]= | ![](/applications/mechsystems/FunctionIndex/HTMLImages/StepMech.en/StepMech.en_12.gif) |
Solution rules can also be output as InterpolatingFunction objects. Note that constant values are recognized and not interpolated.
Out[7]= | ![](/applications/mechsystems/FunctionIndex/HTMLImages/StepMech.en/StepMech.en_14.gif) |
Out[8]= | ![](/applications/mechsystems/FunctionIndex/HTMLImages/StepMech.en/StepMech.en_16.gif) |
By changing the ZeroTest we can make SolveMech seek a more accurate solution.
Out[9]= | ![](/applications/mechsystems/FunctionIndex/HTMLImages/StepMech.en/StepMech.en_18.gif) |
Out[10]= | ![](/applications/mechsystems/FunctionIndex/HTMLImages/StepMech.en/StepMech.en_20.gif) |
Or we can iterate toward the solution one step at a time with StepMech.
Out[11]= | ![](/applications/mechsystems/FunctionIndex/HTMLImages/StepMech.en/StepMech.en_22.gif) |
Out[12]= | ![](/applications/mechsystems/FunctionIndex/HTMLImages/StepMech.en/StepMech.en_24.gif) |
Out[13]= | ![](/applications/mechsystems/FunctionIndex/HTMLImages/StepMech.en/StepMech.en_26.gif) |
See HelpModel2D.
|