| MULTIBODY SIMULATION SOFTWARE - API documentation |
#include <CHforce.h>


Public Member Functions | |
| void | Copy (ChForce *source) |
| ChBody * | GetBody () |
| void | SetBody (ChBody *newRB) |
| void | SetMode (int m_mode) |
| int | GetMode () |
| void | SetAlign (int m_align) |
| int | GetAlign () |
| void | SetFrame (int m_frame) |
| int | GetFrame () |
| Vector | GetVpoint () |
| Vector | GetVrelpoint () |
| void | SetVpoint (Vector mypoint) |
| void | SetVrelpoint (Vector myrelpoint) |
| Vector | GetDir () |
| Vector | GetRelDir () |
| void | SetDir (Vector newf) |
| void | SetRelDir (Vector newf) |
| void | SetMforce (double newf) |
| double | GetMforce () |
| void | SetModulation (ChFunction *m_funct) |
| ChFunction * | GetModulation () |
| void | SetMove_x (ChFunction *m_funct) |
| ChFunction * | GetMove_x () |
| void | SetMove_y (ChFunction *m_funct) |
| ChFunction * | GetMove_y () |
| void | SetMove_z (ChFunction *m_funct) |
| ChFunction * | GetMove_z () |
| void | SetF_x (ChFunction *m_funct) |
| ChFunction * | GetF_x () |
| void | SetF_y (ChFunction *m_funct) |
| ChFunction * | GetF_y () |
| void | SetF_z (ChFunction *m_funct) |
| ChFunction * | GetF_z () |
| Vector | GetForce () |
| Vector | GetRelForce () |
| double | GetForceMod () |
| ChMatrix * | GetQf () |
| void | GetBodyForceTorque (Vector *body_force, Vector *body_torque) |
| void | UpdateTime (double mytime) |
| void | UpdateState () |
| void | Update (double mytime) |
| void | UpdateExternalGeometry () |
| void | StreamOUT (ChStreamOutAscii &mstream) |
| void | StreamIN (ChStreamInBinary &mstream) |
| void | StreamOUT (ChStreamOutBinary &mstream) |
Forces are objects which must be attached to rigid bodies in order to apply torque or force to such body. ChForce objects are able to represent either forces and torques, depending on a flag.
Gets force-torque applied to rigid body, as force vector (in absol.coords) and torque vector (in body coords).
| void chrono::ChForce::SetAlign | ( | int | m_align | ) |
Sets the alignment method: FDIR_BODY or FDIR_WORLD. (the force will rotate together with this reference.
| void chrono::ChForce::SetFrame | ( | int | m_frame | ) |
Sets the alignment method: FPOS_BODY or FPOS_WORLD. (the force application point will follow this reference)
| void chrono::ChForce::StreamIN | ( | ChStreamInBinary & | mstream | ) | [virtual] |
Method to allow deserializing a persistent binary archive (ex: a file) into transient data.
Reimplemented from chrono::ChObj.
| void chrono::ChForce::StreamOUT | ( | ChStreamOutAscii & | mstream | ) | [virtual] |
Method to allow serialization of transient data in ascii, as a readable item, for example "chrono::GetLog() << myobject;"
Reimplemented from chrono::ChObj.
| void chrono::ChForce::StreamOUT | ( | ChStreamOutBinary & | mstream | ) | [virtual] |
Method to allow serializing transient data into a persistent binary archive (ex: a file).
Reimplemented from chrono::ChObj.
| void chrono::ChForce::UpdateExternalGeometry | ( | ) |
Tells to the associated external object ChExternalObject() ,if any, that its 3D shape must be updated in order to syncronize to ChForce coordinates
CHRONO::ENGINE