*CommandSet()

Creates a command set.

Syntax

*CommandSet(varname, label, commandset_definition, args)

Arguments

varname
The variable name of the command set.
Type: varname
label
The descriptive label of the command set.
Type: label
commandset_definition
The definition of the command set.
Type: definition
arg1, arg2,..., arg_n
The arguments of the command set.
Type: arguments

Example

*BeginMDL(the_model, "Example model")
*Analysis(the_analysis, "The analysis", andef)
*DefineAnalysis(andef)
  *ActionOnlyForcePair(frc_0, "Force 0", TRANS, B_Ground,
                       P_Global_Origin, 
                       Global_Frame)
  *SetForce(frc_0, ,1,2,3,4,5,6)
  *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)
  *SetForce(local_frc_0, ,7,8,9,10,11,12)
  *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()

*DefineAnalysis()

Comments

Command sets can be Joints, Forces, Motions, or Templex templates.

The *CommandSet() statement creates an instance of the command set described in the commandset_definition. An unlimited number of command sets can be created based on one commandset_definition. Command sets represent blocks of commands for a solver command file.

MotionSolve allows only one command set to be active at a time.