Moved static functions in finiteRotation to public interface

This commit is contained in:
Vuko Vukcevic 2017-03-13 12:34:47 +01:00 committed by Hrvoje Jasak
parent 0a13a399e7
commit 658362e122
2 changed files with 15 additions and 15 deletions

View file

@ -34,7 +34,7 @@ Author
#include "objectRegistry.H" #include "objectRegistry.H"
#include "finiteRotation.H" #include "finiteRotation.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * Static Functions * * * * * * * * * * * * * //
Foam::vector Foam::finiteRotation::rotVector(const tensor& rotT) Foam::vector Foam::finiteRotation::rotVector(const tensor& rotT)
{ {

View file

@ -62,20 +62,6 @@ class finiteRotation
tensor rotIncrementTensor_; tensor rotIncrementTensor_;
// Private Member Functions
//- Calculate unit rotation vector from given rotation tensor
static vector rotVector(const tensor& rotT);
//- Calculate rotation angle from given rotation tensor
static scalar rotAngle(const tensor& rotT);
//- Calculate Euler angles (x-y-z (roll-pitch-yaw) convention by Bryan)
// given the rotation tensor (global-to-local transformation).
// Reference: Nikravesh: Computer-Aided Analysis of Mechanical Systems
static vector eulerAngles(const tensor& rotT);
public: public:
// Constructors // Constructors
@ -99,6 +85,20 @@ public:
~finiteRotation(); ~finiteRotation();
// Static Functions
//- Calculate unit rotation vector from given rotation tensor
static vector rotVector(const tensor& rotT);
//- Calculate rotation angle from given rotation tensor
static scalar rotAngle(const tensor& rotT);
//- Calculate Euler angles (x-y-z (roll-pitch-yaw) convention by Bryan)
// given the rotation tensor (global-to-local transformation).
// Reference: Nikravesh: Computer-Aided Analysis of Mechanical Systems
static vector eulerAngles(const tensor& rotT);
// Member Functions // Member Functions
//- Update rotation given rotation tensor //- Update rotation given rotation tensor