initialize_rigid_body Subroutine

public pure subroutine initialize_rigid_body(bdy, m, inertia, cg)

Initializes a rigid_body object.

Arguments

Type IntentOptional Attributes Name
class(rigid_body), intent(inout) :: bdy

The rigid_body object.

real(kind=real64), intent(in), optional :: m

The mass of the body. If no mass is specified, a value of 1 is used.

real(kind=real64), intent(in), optional :: inertia(3,3)

The 3-by-3 inertia tensor. If not supplied, an identity matrix is used.

real(kind=real64), intent(in), optional :: cg(3)

The x-y-z location of the CG relative to the body coordinate frame. If not supplied, the CG is set to (0, 0, 0).


Contents