Prescrided force on a specific point application
Posted: Thu Feb 02, 2023 2:21 am
Hello,
I work on osim file (opensim 4.4) for my body and I would like to add a prescrided force on my rifght shoulder with a force equal to y=-10N
so you can see my body, and I want to apply a force on a blue contact sphere ( I just add this contact sphere for having the localisation of the point)
So this is my script :
<PrescribedForce name="PrescribedForce">
<appliesForce>true</appliesForce>
<!--Path to a Component that satisfies the Socket 'frame' of type PhysicalFrame (description: The frame onto which this force is applied.).-->
<socket_frame>/bodyset/torso</socket_frame>
<!--Flag indicating whether the quantities (specified in force/torqueFunctions) is in global frame.-->
<forceIsGlobal>false</forceIsGlobal>
<appliesForce>true</appliesForce>
<FunctionSet name="forceFunctions">
<objects>
<Constant>
<value>0</value>
</Constant>
<Constant>
<value>-10</value>
</Constant>
<Constant>
<value>0</value>
</Constant>
</objects>
<groups />
</FunctionSet>
<FunctionSet name="pointFunctions">
<objects>
<Constant>
<value>0</value>
</Constant>
<Constant>
<value>0.39</value>
</Constant>
<Constant>
<value>0.14</value>
</Constant>
</objects>
<groups />
</FunctionSet>
</PrescribedForce>
So when I launch the simulation on opensim, my body disappears so I think there is an error but idk...
Thank you for you help
I work on osim file (opensim 4.4) for my body and I would like to add a prescrided force on my rifght shoulder with a force equal to y=-10N
so you can see my body, and I want to apply a force on a blue contact sphere ( I just add this contact sphere for having the localisation of the point)
So this is my script :
<PrescribedForce name="PrescribedForce">
<appliesForce>true</appliesForce>
<!--Path to a Component that satisfies the Socket 'frame' of type PhysicalFrame (description: The frame onto which this force is applied.).-->
<socket_frame>/bodyset/torso</socket_frame>
<!--Flag indicating whether the quantities (specified in force/torqueFunctions) is in global frame.-->
<forceIsGlobal>false</forceIsGlobal>
<appliesForce>true</appliesForce>
<FunctionSet name="forceFunctions">
<objects>
<Constant>
<value>0</value>
</Constant>
<Constant>
<value>-10</value>
</Constant>
<Constant>
<value>0</value>
</Constant>
</objects>
<groups />
</FunctionSet>
<FunctionSet name="pointFunctions">
<objects>
<Constant>
<value>0</value>
</Constant>
<Constant>
<value>0.39</value>
</Constant>
<Constant>
<value>0.14</value>
</Constant>
</objects>
<groups />
</FunctionSet>
</PrescribedForce>
So when I launch the simulation on opensim, my body disappears so I think there is an error but idk...
Thank you for you help