*SetMotion() - symmetric motion pair for command sets

Creates a set motion for a pair.

Syntax

*SetMotion(motion_pair, LEFT/RIGHT, DISP/VEL/ACCL, `motion_expr`)

Arguments

motionpair
The variable name of the set motion.
Type: Varname
LEFT/RIGHT
LEFT
The properties are assigned to the left set motion, and the right is made symmetric to the left.
RIGHT
The properties are assigned to the right set motion, and the left properties are made symmetric to the right.
Type: Boolean
DISP/VEL/ACCL
This argument identifies whether a displacement, velocity, or acceleration is being specified.
Type: Argument
`motion_expr`
A number or MDL expression for the motion.
Type: Argument

Example

*BeginMDL(the_model, "Example model")
*Analysis(the_analysis, "The analysis", andef)
*DefineAnalysis(andef)
  *MotionPair(crank_rot, "Crank rotation", j_crank_pivot)
  *SetMotion(crank_rot, LEFT, DISP, 29)
  *CommandSet(the_commandset, "Simple command set", evdef, frc_0, tpl_begin, tpl_end)
  *Template(tpl_begin, "Begin template", USER, tpldef_commandset_begin)
  *Template(tpl_end, "End template", USER, tpldef_commandset_end)
  *Template(tpl_superfluous, "Should be ignored", ACF, tpldef_commandset_begin)
*EndDefine()
*DefineCommandSet(evdef, local_frc_0, local_tpl_begin, local_tpl_end)
  *Write(local_tpl_begin)
  *SetMotion(crank_rot, LEFT, DISP, 25)
  *Write(local_tpl_end)
*EndDefine()
*DefineTemplate(tpldef_commandset_begin)
{AbsToRelative(Solver_File_basename.path, Solver_File_basename.value + 
".adm")}
PREFERENCES/SIMFAIL=STOPCF
*EndDefine()
*DefineTemplate(tpldef_commandset_end)
STOP
*EndDefine()
*EndMDL()

Context

*BeginMDL()

*DefineCommandSet()

Comments

This statement is similar to the *SetMotion() statement for a model except that it sets the motion or motionpair contents within the solver command file.