Container for all external influences on a voxel such as forces and prescribed displacements.
More...
Public Member Functions |
| ~CVX_External () |
| destructor
|
| CVX_External (const CVX_External &eIn) |
| Copy constructor.
|
CVX_External & | operator= (const CVX_External &eIn) |
| Equals operator.
|
bool | operator== (const CVX_External &b) |
| comparison operator
|
void | reset () |
| Resets this external to defaults - i.e., no effect on a voxel (forces, fixed, displacements, etc)
|
bool | isEmpty () |
| returns true if this external is empty - i.e is exerting no effect on a voxel
|
bool | isFixed (dofComponent dof) const |
| Returns true if the specified degree of freedom is fixed for this voxel.
|
bool | isFixedAll () const |
| Returns true if all 6 degrees of freedom are fixed for this voxel.
|
bool | isFixedAllTranslation () const |
| Returns true if all translational degrees of freedom are fixed.
|
bool | isFixedAllRotation () const |
| Returns true if all rotationsl degrees of freedom are fixed.
|
bool | isFixedAny () const |
| Returns true if any of the 6 degrees of freedom are fixed for this voxel.
|
bool | isFixedAnyTranslation () const |
| Returns true if any of the three translational degrees of freedom are fixed.
|
bool | isFixedAnyRotation () const |
| Returns true if any of the three rotational degrees of freedom are fixed.
|
Vec3D< double > | translation () const |
| Returns any external translation that has been applied to this external.
|
Vec3D< double > | rotation () const |
| Returns any external rotation that has been applied to this external as a rotation vector.
|
Quat3D< double > | rotationQuat () const |
| Returns any external rotation that has been applied to this external as a quaternion.
|
void | setFixed (bool xTranslate, bool yTranslate, bool zTranslate, bool xRotate, bool yRotate, bool zRotate) |
| Sets any of the degrees of freedom specified as "true" to fixed for this voxel. (GCS)
|
void | setFixed (dofComponent dof, bool fixed=true) |
| Sets the specified degree of freedom to either fixed or free, depending on the value of fixed. Either way, sets the translational or rotational displacement of this degree of freedom to zero.
|
void | setFixedAll (bool fixed=true) |
| Sets all 6 degrees of freedom to either fixed or free depending on the value of fixed. Either way, sets all displacements to zero.
|
void | setDisplacement (dofComponent dof, double displacement=0.0) |
| Fixes the specified degree of freedom and applies the prescribed displacement if specified.
|
void | setDisplacementAll (const Vec3D< double > &translation=Vec3D< double >(0, 0, 0), const Vec3D< double > &rotation=Vec3D< double >(0, 0, 0)) |
| Fixes the all degrees of freedom and applies the specified translation and rotation.
|
void | clearDisplacement (dofComponent dof) |
| Clears any prescribed displacement from this degree of freedom and unfixes it, too.
|
void | clearDisplacementAll () |
| Clears all prescribed displacement from this voxel and completely unfixes it, too.
|
Vec3D< float > | force () const |
| Returns the current applied external force in newtons.
|
Vec3D< float > | moment () const |
| Returns the current applied external moment in N-m.
|
void | setForce (const float xForce, const float yForce, const float zForce) |
| Applies forces to this voxel in the global coordinate system. Has no effect in any fixed degrees of freedom.
|
void | setForce (const Vec3D< float > &force) |
| Convenience function for setExternalForce(float, float, float).
|
void | setMoment (const float xMoment, const float yMoment, const float zMoment) |
| Applies moments to this voxel in the global coordinate system. All rotations according to the right-hand rule. Has no effect in any fixed degrees of freedom.
|
void | setMoment (const Vec3D< float > &moment) |
| Convenience function for setExternalMoment(float, float, float).
|
void | addForce (const float xForce, const float yForce, const float zForce) |
| Applies forces to this voxel in the global coordinate system. Has no effect in any fixed degrees of freedom.
|
void | addForce (const Vec3D< float > &force) |
| Convenience function for setExternalForce(float, float, float).
|
void | addMoment (const float xMoment, const float yMoment, const float zMoment) |
| Applies moments to this voxel in the global coordinate system. All rotations according to the right-hand rule. Has no effect in any fixed degrees of freedom.
|
void | addMoment (const Vec3D< float > &moment) |
| Convenience function for setExternalMoment(float, float, float).
|
void | clearForce () |
| Clears all applied forces from this voxel.
|
void | clearMoment () |
| Clears all applied moments from this voxel.
|
Container for all external influences on a voxel such as forces and prescribed displacements.
dof = degree(s) of freedom (three translational, three rotational = 6 total)