*SetForce() - translational and rotational for command sets
Creates a set force with torque.
Syntax
*SetForce(fortor, fx, fy, fz, tx, ty, tz)
Arguments
- fortor
- The descriptive label of the set force.
- fx, fy, fz, tx, ty, tz
- Numbers, MDL expressions, or solver expressions that determine the values of the translational and rotational X, Y, and Z components of the force.
Example
*BeginMDL(the_model, "Example model")
*Analysis(the_analysis, "The analysis", andef)
*DefineAnalysis(andef)
*ActionOnlyForce(frc_wc,
"Applied force on left wheel center",
TRANS_ROT,
b_wheel.l,
p_wc.l)
*SetForce(frc_wc, 10.0, 11.0, 12.0,
7.0, 7.5, 8.0)
*SetForce(frc_wc, ds1.real1.value *
ds1.real2.value,
10.3,
ds1.real3.value,
ds2.real1.value,
ds2.real2.value,
ds2.real3.value)
*SetForce(frc_wc, 0.0,
0.0,
‘100*sin(2*PI*TIME)‘,
4.0,
8.0,
‘100*cos(2*PI*TIME)‘)
*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(frc_wc, 13.0, 14.0, 15.0,
5.0, 5.5, 6.0)
*SetForce(frc_wc, ds1.real4.value *
ds1.real5.value,
9.3,
ds1.real6.value,
ds2.real4.value,
ds2.real5.value,
ds2.real6.value)
*SetForce(frc_wc, 1.0,
2.0,
‘100*sin(2*PI*TIME)‘,
6.0,
12.0,
‘100*cos(2*PI*TIME)‘)
*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 *SetForce() statement for a model except that it sets the force or forcepair contents within the solver command file.