*SetForce() - symmetric single component rotation for command sets

Sets the value for a symmetric single component rotational action-reaction force pair.

Syntax

*SetForce(force_name, LEFT|RIGHT, expr)

Arguments

force_name
The variable name of an existing SC_ROT action-reaction force pair.
Type: Varname
LEFT/RIGHT
LEFT
If specified, the properties are assigned to the left force, and the right force properties are made symmetric to the left force.
RIGHT
If specified, the properties are assigned to the right force, and the left force properties are made symmetric to the right force.
expr
A number or MDL expression that determines the value of the force.
Type: real or string

Example

*BeginMDL(the_model, "Example model")
*Analysis(the_analysis, "The analysis", andef)
*DefineAnalysis(andef)
  *ActionReactionForcePair(frc_jnc_bmp, 
                           "Jounce Bumper Force",
                           SC_ROT,
                           b_frame,
                           b_uca,
                           p_jnc_frame,
                           p_jnc_uca)
  *SetForce(force_jnc_bmp, LEFT, ds.real1.value + ds.real2.value)
  *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(force_jnc_bmp, LEFT, ds.real1.value + ds.real3.value)
  *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()

*DefineSystem()

Comments

Solver expressions, curve data, or user subroutines cannot be used for symmetric force pairs.