MBSVT 1.0
|
Module of solver state variables, subroutines and functions. It creates, manages and updates the state variables of the model. More...
Functions/Subroutines | |
subroutine | STATE_Setup |
subroutine | setDOF (dof_in, zp_in, zs_in) |
Define the degrees of freedom of the system and the speed of such degree of freedom. | |
REAL(8), dimension(3) | rg (body) |
Function to ask the coordinates of the CG of a body. | |
REAL(8) | rgx (body) |
Function to ask the x-coordinate of the CG of a body. | |
REAL(8) | rgy (body) |
Function to ask the y-coordinate of the CG of a body. | |
REAL(8) | rgz (body) |
Function to ask the z-coordinate of the CG of a body. | |
REAL(8), dimension(3) | rgp (body) |
Function to ask the velocity of the CG of a body. | |
REAL(8) | rgpx (body) |
Function to ask the x-velocity of the CG of a body. | |
REAL(8) | rgpy (body) |
Function to ask the y-velocity of the CG of a body. | |
REAL(8) | rgpz (body) |
Function to ask the z-velocity of the CG of a body. | |
REAL(8), dimension(3) | rgs (body) |
Function to ask the acceleration of the CG of a body. | |
REAL(8) | rgsx (body) |
Function to ask the x-acceleration of the CG of a body. | |
REAL(8) | rgsy (body) |
Function to ask the y-acceleration of the CG of a body. | |
REAL(8) | rgsz (body) |
Function to ask the z-acceleration of the CG of a body. | |
REAL(8), dimension(4) | Eul (body) |
Function to ask the Euler parameters of a body. | |
REAL(8), dimension(4) | Eulp (body) |
Function to ask the first derivatives of the Euler parameters of a body. | |
REAL(8), dimension(4) | Euls (body) |
Function to ask the second derivatives of the Euler parameters of a body. | |
REAL(8), dimension(3, 3) | RotMatrix (body) |
Function to ask the rotation matrix of a body. | |
Variables | |
REAL(8), dimension(:), allocatable | q |
REAL(8), dimension(:), allocatable | qp |
REAL(8), dimension(:), allocatable | qs |
REAL(8), dimension(:), allocatable | qp_g |
REAL(8), dimension(:), allocatable | qs_g |
REAL(8), dimension(:), allocatable | zp |
REAL(8), dimension(:), allocatable | zs |
REAL(8), dimension(:), allocatable | lambda |
REAL(8), dimension(:), allocatable | pos |
REAL(8), dimension(:), allocatable | vel |
REAL(8), dimension(:), allocatable | ace |
INTEGER, dimension(:), allocatable | gdl |
Module of solver state variables, subroutines and functions. It creates, manages and updates the state variables of the model.
REAL(8),dimension(4) STATE::Eul | ( | INTEGER,intent(in) | body | ) |
Function to ask the Euler parameters of a body.
body | body involved. |
REAL(8),dimension(4) STATE::Eulp | ( | INTEGER,intent(in) | body | ) |
Function to ask the first derivatives of the Euler parameters of a body.
body | body involved. |
REAL(8),dimension(4) STATE::Euls | ( | INTEGER,intent(in) | body | ) |
Function to ask the second derivatives of the Euler parameters of a body.
body | body involved. |
REAL(8),dimension(3) STATE::rg | ( | INTEGER,intent(in) | body | ) |
Function to ask the coordinates of the CG of a body.
body | body involved. |
REAL(8),dimension(3) STATE::rgp | ( | INTEGER,intent(in) | body | ) |
Function to ask the velocity of the CG of a body.
body | body involved. |
REAL(8) STATE::rgpx | ( | INTEGER,intent(in) | body | ) |
Function to ask the x-velocity of the CG of a body.
body | body involved. |
REAL(8) STATE::rgpy | ( | INTEGER,intent(in) | body | ) |
Function to ask the y-velocity of the CG of a body.
body | body involved. |
REAL(8) STATE::rgpz | ( | INTEGER,intent(in) | body | ) |
Function to ask the z-velocity of the CG of a body.
body | body involved. |
REAL(8),dimension(3) STATE::rgs | ( | INTEGER,intent(in) | body | ) |
Function to ask the acceleration of the CG of a body.
body | body involved. |
REAL(8) STATE::rgsx | ( | INTEGER,intent(in) | body | ) |
Function to ask the x-acceleration of the CG of a body.
body | body involved. |
REAL(8) STATE::rgsy | ( | INTEGER,intent(in) | body | ) |
Function to ask the y-acceleration of the CG of a body.
body | body involved. |
REAL(8) STATE::rgsz | ( | INTEGER,intent(in) | body | ) |
Function to ask the z-acceleration of the CG of a body.
body | body involved. |
REAL(8) STATE::rgx | ( | INTEGER,intent(in) | body | ) |
Function to ask the x-coordinate of the CG of a body.
body | body involved. |
REAL(8) STATE::rgy | ( | INTEGER,intent(in) | body | ) |
Function to ask the y-coordinate of the CG of a body.
body | body involved. |
REAL(8) STATE::rgz | ( | INTEGER,intent(in) | body | ) |
Function to ask the z-coordinate of the CG of a body.
body | body involved. |
REAL(8),dimension(3,3) STATE::RotMatrix | ( | INTEGER,intent(in) | body | ) |
Function to ask the rotation matrix of a body.
body | body involved. |
subroutine STATE::setDOF | ( | INTEGER,dimension(:),intent(in) | dof_in, |
REAL(8),dimension(:),intent(in) | zp_in, | ||
REAL(8),dimension(:),intent(in),optional | zs_in | ||
) |
Define the degrees of freedom of the system and the speed of such degree of freedom.
dof_in | positions of the vector of generalized coordinates that you want to define as degree of freedom. |
zp_in | velocities of the vector of generalized coordinates that you want to define as degree of freedom. |
zs_in | accelerations of the vector of generalized coordinates that you want to define as degree of freedom. |
subroutine STATE::STATE_Setup | ( | ) |
REAL(8),dimension(:),allocatable STATE::ace |
INTEGER,dimension(:),allocatable STATE::gdl |
REAL(8),dimension(:),allocatable STATE::lambda |
REAL(8),dimension(:),allocatable STATE::pos |
REAL(8),dimension(:),allocatable STATE::q |
REAL(8),dimension(:),allocatable STATE::qp |
REAL(8),dimension(:),allocatable STATE::qp_g |
REAL(8),dimension(:),allocatable STATE::qs |
REAL(8),dimension(:),allocatable STATE::qs_g |
REAL(8),dimension(:),allocatable STATE::vel |
REAL(8),dimension(:),allocatable STATE::zp |
REAL(8),dimension(:),allocatable STATE::zs |