chrono::FmuChronoUnit Class Reference

Description

Extension of FmuUnit class for Chrono FMUs.

#include <ChFmuToolsImport.h>

Inherits FmuUnit.

Public Member Functions

fmi2Status GetVecVariable (const std::string &name, ChVector3d &v)
 Load the given ChVector3d from the FMU variable with the specified name.
 
fmi2Status SetVecVariable (const std::string &name, const ChVector3d &v)
 Set the FMU variable with specified name to the values of the given ChVector3d.
 
fmi2Status GetQuatVariable (const std::string &name, ChQuaternion<> &q)
 Load the given ChQuaternion from the FMU variable with the specified name.
 
fmi2Status SetQuatVariable (const std::string &name, const ChQuaternion<> &q)
 Set the FMU variable with specified name to the values of the given ChQuaternion.
 
fmi2Status GetCoordsysVariable (const std::string &name, ChCoordsysd &csys)
 Load the given ChCoordsys from the FMU variable with the specified name.
 
fmi2Status SetCoordsysVariable (const std::string &name, const ChCoordsysd &csys)
 Set the FMU variable with specified name to the values of the given ChQuaternion.
 
fmi2Status GetFrameVariable (const std::string &name, ChFrame<> &frame)
 Load the given ChFrame from the FMU variable with the specified name.
 
fmi2Status SetFrameVariable (const std::string &name, const ChFrame<> &frame)
 Set the FMU variable with specified name to the values of the given ChFrame. More...
 
fmi2Status GetFrameMovingVariable (const std::string &name, ChFrameMoving<> &frame)
 Load the given ChFrameMoving from FMU variables with the specified name.
 
fmi2Status SetFrameMovingVariable (const std::string &name, const ChFrameMoving<> &frame)
 Set the FMU variable with specified name to the values of the given ChgFrameMoving. More...
 

Member Function Documentation

◆ SetFrameMovingVariable()

fmi2Status chrono::FmuChronoUnit::SetFrameMovingVariable ( const std::string &  name,
const ChFrameMoving<> &  frame 
)
inline

Set the FMU variable with specified name to the values of the given ChgFrameMoving.

Note that only the base data members of the FMU's ChFrameMoving object are set (namely, the position vector and orientation quaternion and their time derivatives). If the rotation matrix of the ChFrameMoving object is needed, it must be explicitly calculated before use through a call to ChFrame::Set_A_quaternion (e.g., in a pre-step callback).

◆ SetFrameVariable()

fmi2Status chrono::FmuChronoUnit::SetFrameVariable ( const std::string &  name,
const ChFrame<> &  frame 
)
inline

Set the FMU variable with specified name to the values of the given ChFrame.

Note that only the base data members of the FMU's ChFrame object are set (namely, the position vector and orientation quaternion). If the rotation matrix of the ChFrame object is needed, it must be explicitly calculated before use through a call to ChFrame::Set_A_quaternion (e.g., in a pre-step callback).


The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono_fmi/fmi2/ChFmuToolsImport.h